Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data CmmExpr
- cmmExprType :: Platform -> CmmExpr -> CmmType
- cmmExprWidth :: Platform -> CmmExpr -> Width
- cmmExprAlignment :: CmmExpr -> Alignment
- maybeInvertCmmExpr :: CmmExpr -> Maybe CmmExpr
- data CmmReg
- cmmRegType :: Platform -> CmmReg -> CmmType
- cmmRegWidth :: Platform -> CmmReg -> Width
- data CmmLit
- cmmLitType :: Platform -> CmmLit -> CmmType
- data LocalReg = LocalReg !Unique !CmmType
- localRegType :: LocalReg -> CmmType
- data GlobalReg
- = VanillaReg !Int VGcPtr
- | FloatReg !Int
- | DoubleReg !Int
- | LongReg !Int
- | XmmReg !Int
- | YmmReg !Int
- | ZmmReg !Int
- | Sp
- | SpLim
- | Hp
- | HpLim
- | CCCS
- | CurrentTSO
- | CurrentNursery
- | HpAlloc
- | EagerBlackholeInfo
- | GCEnter1
- | GCFun
- | BaseReg
- | MachSp
- | UnwindReturnReg
- | PicBaseReg
- isArgReg :: GlobalReg -> Bool
- globalRegType :: Platform -> GlobalReg -> CmmType
- spReg :: CmmReg
- hpReg :: CmmReg
- spLimReg :: CmmReg
- hpLimReg :: CmmReg
- nodeReg :: CmmReg
- currentTSOReg :: CmmReg
- currentNurseryReg :: CmmReg
- hpAllocReg :: CmmReg
- cccsReg :: CmmReg
- node :: GlobalReg
- baseReg :: CmmReg
- data VGcPtr
- class Ord r => DefinerOfRegs r a
- class Ord r => UserOfRegs r a
- foldRegsDefd :: DefinerOfRegs r a => Platform -> (b -> r -> b) -> b -> a -> b
- foldRegsUsed :: UserOfRegs r a => Platform -> (b -> r -> b) -> b -> a -> b
- foldLocalRegsDefd :: DefinerOfRegs LocalReg a => Platform -> (b -> LocalReg -> b) -> b -> a -> b
- foldLocalRegsUsed :: UserOfRegs LocalReg a => Platform -> (b -> LocalReg -> b) -> b -> a -> b
- type RegSet r = Set r
- type LocalRegSet = RegSet LocalReg
- type GlobalRegSet = RegSet GlobalReg
- emptyRegSet :: RegSet r
- elemRegSet :: Ord r => r -> RegSet r -> Bool
- extendRegSet :: Ord r => RegSet r -> r -> RegSet r
- deleteFromRegSet :: Ord r => RegSet r -> r -> RegSet r
- mkRegSet :: Ord r => [r] -> RegSet r
- plusRegSet :: Ord r => RegSet r -> RegSet r -> RegSet r
- minusRegSet :: Ord r => RegSet r -> RegSet r -> RegSet r
- timesRegSet :: Ord r => RegSet r -> RegSet r -> RegSet r
- sizeRegSet :: RegSet r -> Int
- nullRegSet :: RegSet r -> Bool
- regSetToList :: RegSet r -> [r]
- data Area
- module GHC.Cmm.MachOp
- module GHC.Cmm.Type
Documentation
CmmLit !CmmLit | |
CmmLoad !CmmExpr !CmmType | |
CmmReg !CmmReg | |
CmmMachOp MachOp [CmmExpr] | |
CmmStackSlot Area !Int | |
CmmRegOff !CmmReg !Int |
Instances
Eq CmmExpr # | |
(Ord r, UserOfRegs r CmmReg) => UserOfRegs r CmmExpr # | |
Defined in GHC.Cmm.Expr foldRegsUsed :: Platform -> (b -> r -> b) -> b -> CmmExpr -> b Source # | |
OutputableP Platform CmmExpr # | |
cmmExprAlignment :: CmmExpr -> Alignment Source #
Returns an alignment in bytes of a CmmExpr when it's a statically known integer constant, otherwise returns an alignment of 1 byte. The caller is responsible for using with a sensible CmmExpr argument.
Instances
Outputable CmmReg # | |
Eq CmmReg # | |
Ord CmmReg # | |
DefinerOfRegs GlobalReg CmmReg # | |
Defined in GHC.Cmm.Expr | |
DefinerOfRegs LocalReg CmmReg # | |
Defined in GHC.Cmm.Expr | |
UserOfRegs GlobalReg CmmReg # | |
Defined in GHC.Cmm.Expr | |
UserOfRegs LocalReg CmmReg # | |
Defined in GHC.Cmm.Expr |
Instances
Uniquable LocalReg # | |
Outputable LocalReg # | |
Eq LocalReg # | |
Ord LocalReg # | |
Defined in GHC.Cmm.Expr | |
DefinerOfRegs LocalReg CmmReg # | |
Defined in GHC.Cmm.Expr | |
UserOfRegs LocalReg CmmReg # | |
Defined in GHC.Cmm.Expr | |
DefinerOfRegs LocalReg (CmmNode e x) # | |
Defined in GHC.Cmm.Node | |
UserOfRegs LocalReg (CmmNode e x) # | |
Defined in GHC.Cmm.Node |
localRegType :: LocalReg -> CmmType Source #
Instances
Show GlobalReg # | |
Outputable GlobalReg # | |
Eq GlobalReg # | |
Ord GlobalReg # | |
Defined in GHC.Cmm.Expr | |
DefinerOfRegs GlobalReg CmmReg # | |
Defined in GHC.Cmm.Expr | |
UserOfRegs GlobalReg CmmReg # | |
Defined in GHC.Cmm.Expr | |
OutputableP env GlobalReg # | |
DefinerOfRegs GlobalReg (CmmNode e x) # | |
Defined in GHC.Cmm.Node | |
UserOfRegs GlobalReg (CmmNode e x) # | |
Defined in GHC.Cmm.Node |
hpAllocReg :: CmmReg Source #
class Ord r => DefinerOfRegs r a Source #
Instances
DefinerOfRegs GlobalReg CmmReg # | |
Defined in GHC.Cmm.Expr | |
DefinerOfRegs LocalReg CmmReg # | |
Defined in GHC.Cmm.Expr | |
Ord r => DefinerOfRegs r r # | |
Defined in GHC.Cmm.Expr foldRegsDefd :: Platform -> (b -> r -> b) -> b -> r -> b Source # | |
DefinerOfRegs r a => DefinerOfRegs r [a] # | |
Defined in GHC.Cmm.Expr foldRegsDefd :: Platform -> (b -> r -> b) -> b -> [a] -> b Source # | |
DefinerOfRegs GlobalReg (CmmNode e x) # | |
Defined in GHC.Cmm.Node | |
DefinerOfRegs LocalReg (CmmNode e x) # | |
Defined in GHC.Cmm.Node |
class Ord r => UserOfRegs r a Source #
Instances
UserOfRegs GlobalReg CmmReg # | |
Defined in GHC.Cmm.Expr | |
UserOfRegs LocalReg CmmReg # | |
Defined in GHC.Cmm.Expr | |
(Ord r, UserOfRegs r CmmReg) => UserOfRegs r CmmExpr # | |
Defined in GHC.Cmm.Expr foldRegsUsed :: Platform -> (b -> r -> b) -> b -> CmmExpr -> b Source # | |
(Ord r, UserOfRegs r CmmReg) => UserOfRegs r ForeignTarget # | |
Defined in GHC.Cmm.Node foldRegsUsed :: Platform -> (b -> r -> b) -> b -> ForeignTarget -> b Source # | |
Ord r => UserOfRegs r r # | |
Defined in GHC.Cmm.Expr foldRegsUsed :: Platform -> (b -> r -> b) -> b -> r -> b Source # | |
UserOfRegs r a => UserOfRegs r [a] # | |
Defined in GHC.Cmm.Expr foldRegsUsed :: Platform -> (b -> r -> b) -> b -> [a] -> b Source # | |
UserOfRegs GlobalReg (CmmNode e x) # | |
Defined in GHC.Cmm.Node | |
UserOfRegs LocalReg (CmmNode e x) # | |
Defined in GHC.Cmm.Node |
foldRegsDefd :: DefinerOfRegs r a => Platform -> (b -> r -> b) -> b -> a -> b Source #
foldRegsUsed :: UserOfRegs r a => Platform -> (b -> r -> b) -> b -> a -> b Source #
foldLocalRegsDefd :: DefinerOfRegs LocalReg a => Platform -> (b -> LocalReg -> b) -> b -> a -> b Source #
foldLocalRegsUsed :: UserOfRegs LocalReg a => Platform -> (b -> LocalReg -> b) -> b -> a -> b Source #
type LocalRegSet = RegSet LocalReg Source #
type GlobalRegSet = RegSet GlobalReg Source #
emptyRegSet :: RegSet r Source #
sizeRegSet :: RegSet r -> Int Source #
nullRegSet :: RegSet r -> Bool Source #
regSetToList :: RegSet r -> [r] Source #
A stack area is either the stack slot where a variable is spilled or the stack space where function arguments and results are passed.
module GHC.Cmm.MachOp
module GHC.Cmm.Type