projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add casMutVar#
[ghc-hetmet.git]
/
compiler
/
prelude
/
primops.txt.pp
diff --git
a/compiler/prelude/primops.txt.pp
b/compiler/prelude/primops.txt.pp
index
777e83f
..
7d80db4
100644
(file)
--- a/
compiler/prelude/primops.txt.pp
+++ b/
compiler/prelude/primops.txt.pp
@@
-1121,6
+1121,12
@@
primop AtomicModifyMutVarOp "atomicModifyMutVar#" GenPrimOp
out_of_line = True
has_side_effects = True
out_of_line = True
has_side_effects = True
+primop CasMutVarOp "casMutVar#" GenPrimOp
+ MutVar# s a -> a -> a -> State# s -> (# State# s, Int#, a #)
+ with
+ out_of_line = True
+ has_side_effects = True
+
------------------------------------------------------------------------
section "Exceptions"
------------------------------------------------------------------------
------------------------------------------------------------------------
section "Exceptions"
------------------------------------------------------------------------