[GHC] #15536: Unify unlifted pointer equality primitives

GHC ghc-devs at haskell.org
Fri Aug 17 23:25:19 UTC 2018


#15536: Unify unlifted pointer equality primitives
-------------------------------------+-------------------------------------
           Reporter:  dfeuer         |             Owner:  (none)
               Type:  feature        |            Status:  new
  request                            |
           Priority:  normal         |         Milestone:  8.8.1
          Component:  Compiler       |           Version:  8.4.3
           Keywords:                 |  Operating System:  Unknown/Multiple
       Architecture:                 |   Type of failure:  None/Unknown
  Unknown/Multiple                   |
          Test Case:                 |        Blocked By:
           Blocking:                 |   Related Tickets:
Differential Rev(s):                 |         Wiki Page:
-------------------------------------+-------------------------------------
 We have a bunch of different primops to test pointer equality between
 various unlifted pointer types (`MutableArray#`, `MutVar#`, etc.). Now
 that we have the necessary type machinery, I believe we should be able to
 get away with just one:

 {{{#!hs
 unliftedPtrEquality#
   :: forall (a :: TYPE 'UnliftedRep).
      a -> a -> Int#
 }}}

 All the rest can then be defined as regular functions in `GHC.Exts` or
 some such.

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


More information about the ghc-tickets mailing list