Safe Haskell | None |
---|---|
Language | Haskell2010 |
Format
Description
Formats on this architecture A Format is a combination of width and class
TODO: Signed vs unsigned?
TODO: This module is currenly shared by all architectures because NCGMonad need to know about it to make a VReg. It would be better to have architecture specific formats, and do the overloading properly. eg SPARC doesn't care about FF80.
Documentation
floatFormat :: Width -> Format Source
Get the float format of this width.
isFloatFormat :: Format -> Bool Source
Check if a format represents a floating point value.
cmmTypeFormat :: CmmType -> Format Source
Convert a Cmm type to a Format.
formatToWidth :: Format -> Width Source
Get the Width of a Format.
formatInBytes :: Format -> Int Source