X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=compiler%2Fprelude%2Fprimops.txt.pp;fp=compiler%2Fprelude%2Fprimops.txt.pp;h=a0b991ff85b61292438becce2d301a5971300126;hp=0e917f34df035c8e7aa1107d5b6faed65841a579;hb=971c88597b0972053975c9c99aa51764ab75b143;hpb=726cab79226c45945eb6e7f6ae9597a4e4f90f37 diff --git a/compiler/prelude/primops.txt.pp b/compiler/prelude/primops.txt.pp index 0e917f3..a0b991f 100644 --- a/compiler/prelude/primops.txt.pp +++ b/compiler/prelude/primops.txt.pp @@ -1544,6 +1544,13 @@ primop GetSparkOp "getSpark#" GenPrimOp has_side_effects = True out_of_line = True +primop NumSparks "numSparks#" GenPrimOp + State# s -> (# State# s, Int# #) + { Returns the number of sparks in the local spark pool. } + with + has_side_effects = True + out_of_line = True + -- HWL: The first 4 Int# in all par... annotations denote: -- name, granularity info, size of result, degree of parallelism -- Same structure as _seq_ i.e. returns Int#