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.
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.

elieux/ghc,oldmanmike/ghc,mfine/ghc,sdiehl/ghc,green-haskell/ghc,nkaretnikov/ghc,urbanslug/ghc,olsner/ghc,nathyong/microghc-ghc,nomeata/ghc,olsner/ghc,wxwxwwxxx/ghc,sdiehl/ghc,urbanslug/ghc,ghc-android/ghc,ryantm/ghc,shlevy/ghc,elieux/ghc,snoyberg/ghc,nathyong/microghc-ghc,christiaanb/ghc,nomeata/ghc,vikraman/ghc,sgillespie/ghc,ryantm/ghc,sdiehl/ghc,olsner/ghc,TomMD/ghc,mfine/ghc,oldmanmike/ghc,ghc-android/ghc,fmthoma/ghc,siddhanathan/ghc,tibbe/ghc,lukexi/ghc,spacekitteh/smcghc,ml9951/ghc,snoyberg/ghc,gridaphobe/ghc,nomeata/ghc,ghc-android/ghc,nathyong/microghc-ghc,tibbe/ghc,lukexi/ghc,siddhanathan/ghc,gcampax/ghc,frantisekfarka/ghc-dsi,tjakway/ghcjvm,oldmanmike/ghc,nkaretnikov/ghc,acowley/ghc,jstolarek/ghc,ezyang/ghc,forked-upstream-packages-for-ghcjs/ghc,fmthoma/ghc,vikraman/ghc,bitemyapp/ghc,ghc-android/ghc,wxwxwwxxx/ghc,TomMD/ghc,tjakway/ghcjvm,tjakway/ghcjvm,GaloisInc/halvm-ghc,nathyong/microghc-ghc,shlevy/ghc,mettekou/ghc,christiaanb/ghc,ghc-android/ghc,gridaphobe/ghc,acowley/ghc,lukexi/ghc-7.8-arm64,nushio3/ghc,ekmett/ghc,ryantm/ghc,bitemyapp/ghc,mettekou/ghc,shlevy/ghc,nushio3/ghc,GaloisInc/halvm-ghc,sdiehl/ghc,mcschroeder/ghc,hferreiro/replay,holzensp/ghc,lukexi/ghc,urbanslug/ghc,gridaphobe/ghc,nathyong/microghc-ghc,ml9951/ghc,da-x/ghc,acowley/ghc,green-haskell/ghc,lukexi/ghc-7.8-arm64,ghc-android/ghc,holzensp/ghc,ezyang/ghc,nkaretnikov/ghc,gridaphobe/ghc,jstolarek/ghc,spacekitteh/smcghc,anton-dessiatov/ghc,spacekitteh/smcghc,AlexanderPankiv/ghc,vikraman/ghc,sgillespie/ghc,snoyberg/ghc,ilyasergey/GHC-XAppFix,frantisekfarka/ghc-dsi,nushio3/ghc,vTurbine/ghc,spacekitteh/smcghc,oldmanmike/ghc,anton-dessiatov/ghc,nathyong/microghc-ghc,olsner/ghc,fmthoma/ghc,gcampax/ghc,oldmanmike/ghc,fmthoma/ghc,hferreiro/replay,acowley/ghc,urbanslug/ghc,mfine/ghc,gcampax/ghc,wxwxwwxxx/ghc,tibbe/ghc,TomMD/ghc,GaloisInc/halvm-ghc,ekmett/ghc,olsner/ghc,mfine/ghc,urbanslug/ghc,GaloisInc/halvm-ghc,ml9951/ghc,wxwxwwxxx/ghc,mcmaniac/ghc,sgillespie/ghc,hferreiro/replay,frantisekfarka/ghc-dsi,sgillespie/ghc,da-x/ghc,AlexanderPankiv/ghc,mcschroeder/ghc,nushio3/ghc,acowley/ghc,sdiehl/ghc,nomeata/ghc,urbanslug/ghc,siddhanathan/ghc,nkaretnikov/ghc,anton-dessiatov/ghc,snoyberg/ghc,vTurbine/ghc,christiaanb/ghc,acowley/ghc,anton-dessiatov/ghc,tjakway/ghcjvm,vTurbine/ghc,mettekou/ghc,mettekou/ghc,tjakway/ghcjvm,spacekitteh/smcghc,vTurbine/ghc,sgillespie/ghc,fmthoma/ghc,TomMD/ghc,sdiehl/ghc,hferreiro/replay,siddhanathan/ghc,lukexi/ghc,AlexanderPankiv/ghc,fmthoma/ghc,da-x/ghc,urbanslug/ghc,ezyang/ghc,vTurbine/ghc,vikraman/ghc,fmthoma/ghc,christiaanb/ghc,ezyang/ghc,vikraman/ghc,elieux/ghc,shlevy/ghc,tjakway/ghcjvm,olsner/ghc,elieux/ghc,vikraman/ghc,snoyberg/ghc,gcampax/ghc,gcampax/ghc,jstolarek/ghc,mettekou/ghc,tibbe/ghc,ekmett/ghc,mcschroeder/ghc,shlevy/ghc,gridaphobe/ghc,mcmaniac/ghc,snoyberg/ghc,wxwxwwxxx/ghc,ilyasergey/GHC-XAppFix,da-x/ghc,mfine/ghc,elieux/ghc,wxwxwwxxx/ghc,ml9951/ghc,holzensp/ghc,oldmanmike/ghc,ghc-android/ghc,mettekou/ghc,green-haskell/ghc,bitemyapp/ghc,TomMD/ghc,siddhanathan/ghc,nkaretnikov/ghc,ezyang/ghc,mcmaniac/ghc,siddhanathan/ghc,frantisekfarka/ghc-dsi,mcschroeder/ghc,AlexanderPankiv/ghc,nomeata/ghc,ryantm/ghc,lukexi/ghc-7.8-arm64,TomMD/ghc,gridaphobe/ghc,ezyang/ghc,mcschroeder/ghc,lukexi/ghc,ekmett/ghc,ml9951/ghc,wxwxwwxxx/ghc,forked-upstream-packages-for-ghcjs/ghc,sgillespie/ghc,lukexi/ghc-7.8-arm64,da-x/ghc,forked-upstream-packages-for-ghcjs/ghc,ml9951/ghc,shlevy/ghc,ml9951/ghc,vTurbine/ghc,holzensp/ghc,sgillespie/ghc,GaloisInc/halvm-ghc,ezyang/ghc,da-x/ghc,acowley/ghc,lukexi/ghc-7.8-arm64,ryantm/ghc,holzensp/ghc,tjakway/ghcjvm,shlevy/ghc,frantisekfarka/ghc-dsi,da-x/ghc,gcampax/ghc,tibbe/ghc,hferreiro/replay,ekmett/ghc,nathyong/microghc-ghc,oldmanmike/ghc,hferreiro/replay,jstolarek/ghc,AlexanderPankiv/ghc,mcmaniac/ghc,nushio3/ghc,mfine/ghc,TomMD/ghc,mcschroeder/ghc,mcschroeder/ghc,gridaphobe/ghc,siddhanathan/ghc,christiaanb/ghc,forked-upstream-packages-for-ghcjs/ghc,christiaanb/ghc,bitemyapp/ghc,anton-dessiatov/ghc,ilyasergey/GHC-XAppFix,green-haskell/ghc,mfine/ghc,olsner/ghc,vTurbine/ghc,elieux/ghc,elieux/ghc,AlexanderPankiv/ghc,nkaretnikov/ghc,jstolarek/ghc,forked-upstream-packages-for-ghcjs/ghc,mcmaniac/ghc,forked-upstream-packages-for-ghcjs/ghc,nushio3/ghc,anton-dessiatov/ghc,AlexanderPankiv/ghc,hferreiro/replay,ilyasergey/GHC-XAppFix,forked-upstream-packages-for-ghcjs/ghc,ml9951/ghc,gcampax/ghc,christiaanb/ghc,GaloisInc/halvm-ghc,nkaretnikov/ghc,anton-dessiatov/ghc,bitemyapp/ghc,vikraman/ghc,mettekou/ghc,snoyberg/ghc,nushio3/ghc,sdiehl/ghc,GaloisInc/halvm-ghc,green-haskell/ghc