[GHC] #9289: add anyToAddr# :: (#a#)-> Addr# primop (inverse of addrToAny#)

GHC ghc-devs at haskell.org
Wed Jul 9 20:40:30 UTC 2014


#9289: add anyToAddr# :: (#a#)-> Addr# primop (inverse of addrToAny#)
------------------------------------+-------------------------------------
       Reporter:  carter            |             Owner:
           Type:  feature request   |            Status:  new
       Priority:  normal            |         Milestone:  7.10.1
      Component:  Compiler          |           Version:  7.8.2
       Keywords:                    |  Operating System:  Unknown/Multiple
   Architecture:  Unknown/Multiple  |   Type of failure:  None/Unknown
     Difficulty:  Unknown           |         Test Case:
     Blocked By:                    |          Blocking:
Related Tickets:                    |
------------------------------------+-------------------------------------
 I was talking with Reid Barton, and he pointed out that having a primop
 with type
 {{{
 anyToAddr# :: (#a#)-> Addr#
 }}}

 would help with a lot of performance hacking.

 One use case would be running prefetch  on lifted values without
 evaluating them.

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9289>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list