CmmType

ghc-7.6.3: The GHC API

Safe Haskell | None

CmmType

# Documentation

data CmmType

Instances

Outputable CmmType |

b8 :: CmmType

b16 :: CmmType

b32 :: CmmType

b64 :: CmmType

f32 :: CmmType

f64 :: CmmType

bWord :: CmmType

bHalfWord :: CmmType

gcWord :: CmmType

cInt :: CmmType

cLong :: CmmType

cmmBits :: Width -> CmmType

cmmFloat :: Width -> CmmType

typeWidth :: CmmType -> Width

cmmEqType :: CmmType -> CmmType -> Bool

cmmEqType_ignoring_ptrhood :: CmmType -> CmmType -> Bool

isFloatType :: CmmType -> Bool

isGcPtrType :: CmmType -> Bool

isWord32 :: CmmType -> Bool

isWord64 :: CmmType -> Bool

isFloat64 :: CmmType -> Bool

isFloat32 :: CmmType -> Bool

data Width

Constructors

W8 |
W16 |
W32 |
W64 |
W80 |
W128 |

Instances

Eq Width |
Ord Width |
Show Width |
Outputable Width |

widthInBits :: Width -> Int

widthInBytes :: Width -> Int

widthInLog :: Width -> Int

widthFromBytes :: Int -> Width

wordWidth :: Width

halfWordWidth :: Width

cIntWidth :: Width

cLongWidth :: Width

halfWordMask :: Integer

narrowU :: Width -> Integer -> Integer

narrowS :: Width -> Integer -> Integer