[GHC] #7883: enable GHC LLVM backend to use LLVM provided CAS / Atomicity primitives?

GHC ghc-devs at haskell.org
Sat Jul 20 08:20:56 CEST 2013


#7883: enable GHC LLVM backend to use LLVM provided CAS / Atomicity primitives?
-------------------------------------+------------------------------------
        Reporter:  carter            |            Owner:  carter
            Type:  feature request   |           Status:  new
        Priority:  normal            |        Milestone:
       Component:  Compiler          |          Version:  7.7
      Resolution:                    |         Keywords:
Operating System:  Unknown/Multiple  |     Architecture:  Unknown/Multiple
 Type of failure:  None/Unknown      |       Difficulty:  Unknown
       Test Case:                    |       Blocked By:
        Blocking:                    |  Related Tickets:
-------------------------------------+------------------------------------

Comment (by rrnewton):

 A couple additional suggestions copied over from the mailing list:

   (1) we should use more unique symbols than "cas", especially for this
 rewriting trick.  How about "ghc_cas" or something?

   (2) it would be great to get at least fetch-and-add in addition to CAS
 and barriers

   (3) if we reliably provide this set of special symbols, libraries like
 atomic-primops may use them in the .cmm and benefit from the CMM->LLVM
 substitutions

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




More information about the ghc-tickets mailing list