Maybe test for laziness in the argument by just putting something in that goes boom when forced, e.g. 'undefined'?On Sun, Nov 23, 2014 at 2:04 PM, Carter Schonwald <carter.schonwald@gmail.com> wrote:_______________________________________________Hey All,as part of trying to get some fixups for how prefetch works into 7.10,i'm adding a "prefetchValue" primop that prefetchs the memory location of a lifted heap valuenamelyseveral operations of the following formprimop PrefetchValueOp1 "prefetchValue1#" GenPrimOpa -> State# s -> State# swith strictness = { \ _arity -> mkClosedStrictSig [botDmd, topDmd] topRes }I'd like some feedback on the strictness information design by someone who's familiar with how that piece of GHC. the idea being that prefetchValue is lazy in its polymorphic argument (it doesn't force it, it just does a prefetch on the heap location, which may or may not be evaluated).is the code in question. And i *believe* i'm testing for being lazy in that argument correctly.thoughts?many thanks!-Carter
ghc-devs mailing list
ghc-devs@haskell.org
http://www.haskell.org/mailman/listinfo/ghc-devs