
#15364: Replace the atomicModifyMutVar# primop -------------------------------------+------------------------------------- Reporter: dfeuer | Owner: (none) Type: feature request | Status: new Priority: normal | Milestone: 8.8.1 Component: Runtime System | Version: 8.5 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D4884 Wiki Page: | -------------------------------------+------------------------------------- Comment (by dfeuer): We now have the first two primops. We'll need to add `atomicSwapMutVar#` in a separate commit. We don't yet support `xchg` in CMM, so we'll have to add it. I noticed, however, that we do have at least some support for it in the LLVM backend, at least (it's a case of read-modify-write). -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15364#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler