diff options
author | Abhiroop Sarkar <asiamgenius@gmail.com> | 2018-11-05 12:06:58 -0500 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2018-11-17 10:03:17 -0500 |
commit | 36fcf9edee31513db2ddbf716ee0aa79766cbe69 (patch) | |
tree | 76d3bf5734d852b53caea24c70b024f1b24204d5 /compiler/cmm | |
parent | 0e7790abf7d19d19f84c86dc95e50beb65462d12 (diff) | |
download | haskell-36fcf9edee31513db2ddbf716ee0aa79766cbe69.tar.gz |
Introduce Int16# and Word16#
This builds off of D4475.
Bumps binary submodule.
Reviewers: carter, AndreasK, hvr, goldfire, bgamari, simonmar
Subscribers: rwbarton, thomie
Differential Revision: https://phabricator.haskell.org/D5006
Diffstat (limited to 'compiler/cmm')
-rw-r--r-- | compiler/cmm/CmmUtils.hs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/cmm/CmmUtils.hs b/compiler/cmm/CmmUtils.hs index 11e4df5bf4..a5d1a8e375 100644 --- a/compiler/cmm/CmmUtils.hs +++ b/compiler/cmm/CmmUtils.hs @@ -99,6 +99,8 @@ primRepCmmType dflags IntRep = bWord dflags primRepCmmType dflags WordRep = bWord dflags primRepCmmType _ Int8Rep = b8 primRepCmmType _ Word8Rep = b8 +primRepCmmType _ Int16Rep = b16 +primRepCmmType _ Word16Rep = b16 primRepCmmType _ Int64Rep = b64 primRepCmmType _ Word64Rep = b64 primRepCmmType dflags AddrRep = bWord dflags @@ -134,9 +136,11 @@ primRepForeignHint LiftedRep = AddrHint primRepForeignHint UnliftedRep = AddrHint primRepForeignHint IntRep = SignedHint primRepForeignHint Int8Rep = SignedHint +primRepForeignHint Int16Rep = SignedHint primRepForeignHint Int64Rep = SignedHint primRepForeignHint WordRep = NoHint primRepForeignHint Word8Rep = NoHint +primRepForeignHint Word16Rep = NoHint primRepForeignHint Word64Rep = NoHint primRepForeignHint AddrRep = AddrHint -- NB! AddrHint, but NonPtrArg primRepForeignHint FloatRep = NoHint |