summaryrefslogtreecommitdiff
path: root/compiler/codeGen
diff options
context:
space:
mode:
authorDuncan Coutts <duncan@well-typed.com>2009-06-09 10:59:45 +0000
committerDuncan Coutts <duncan@well-typed.com>2009-06-09 10:59:45 +0000
commit5b7e2a875b089f31cd8dedb52d47ef9a93f276be (patch)
tree35b3fd54bd396584f44074bde8f1b314fa67d465 /compiler/codeGen
parent2da37f4f15790377900fa6c38ff8fdcd394dfaa2 (diff)
downloadhaskell-5b7e2a875b089f31cd8dedb52d47ef9a93f276be.tar.gz
Desugaring for "foreign import prim"
Unlike normal foreign imports which desugar into a separate worker and wrapper, we use just a single wrapper decleration. The representation in Core of the call is currently as a foreign call. This means the args are all treated as fully strict. This is ok at the moment because we restrict the types for foreign import prim to be of unboxed types, however in future we may want to make prim imports be the normal cmm calling convention for Haskell functions, in which case we would not be able to assume all args are strict. At that point it may make more sense to represent cmm/prim calls distinct from foreign calls, and more like the we the existing PrimOp calls are handled.
Diffstat (limited to 'compiler/codeGen')
0 files changed, 0 insertions, 0 deletions