ghc-7.0.3: The GHC API

TargetReg

Description

Hard wired things related to registers. This is module is preventing the native code generator being able to emit code for non-host architectures.

TODO: Do a better job of the overloading, and eliminate this module. We'd probably do better with a Register type class, and hook this to Instruction somehow.

TODO: We should also make arch specific versions of RegAlloc.Graph.TrivColorable

# Documentation

targetVirtualRegSqueeze :: RegClass -> VirtualReg -> FastInt

targetRealRegSqueeze :: RegClass -> RealReg -> FastInt

targetClassOfRealReg :: RealReg -> RegClass

targetMkVirtualReg :: Unique -> Size -> VirtualReg

targetWordSize :: Size

targetRegDotColor :: RealReg -> SDoc

targetClassOfReg :: Reg -> RegClass