Safe Haskell | None |
---|---|
Language | Haskell98 |
Sizes on this architecture A Size is a combination of width and class
TODO: Rename this to Format instead of Size to reflect the fact that it represents floating point vs integer.
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
isFloatSize :: Size -> Bool Source
Check if a size represents a floating point value.
cmmTypeSize :: CmmType -> Size Source
Convert a Cmm type to a Size.
sizeToWidth :: Size -> Width Source
Get the Width of a Size.
sizeInBytes :: Size -> Int Source