Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
GHC.CmmToAsm.X86.Instr
Documentation
Constructors
Instances
Instruction Instr # | Instruction instance for x86 instruction set. |
Defined in GHC.CmmToAsm.X86.Instr Methods regUsageOfInstr :: Platform -> Instr -> RegUsage # patchRegsOfInstr :: Instr -> (Reg -> Reg) -> Instr # isJumpishInstr :: Instr -> Bool # jumpDestsOfInstr :: Instr -> [BlockId] # patchJumpInstr :: Instr -> (BlockId -> BlockId) -> Instr # mkSpillInstr :: NCGConfig -> Reg -> Int -> Int -> Instr # mkLoadInstr :: NCGConfig -> Reg -> Int -> Int -> Instr # takeDeltaInstr :: Instr -> Maybe Int # isMetaInstr :: Instr -> Bool # mkRegRegMoveInstr :: Platform -> Reg -> Reg -> Instr # takeRegRegMoveInstr :: Instr -> Maybe (Reg, Reg) # mkJumpInstr :: BlockId -> [Instr] # mkStackAllocInstr :: Platform -> Int -> [Instr] # mkStackDeallocInstr :: Platform -> Int -> [Instr] # | |
Outputable Instr # | |
Constructors
DestBlockId BlockId | |
DestImm Imm |
getJumpDestBlockId :: JumpDest -> Maybe BlockId #
canShortcut :: Instr -> Maybe JumpDest #
shortcutStatics :: (BlockId -> Maybe JumpDest) -> (Alignment, RawCmmStatics) -> (Alignment, RawCmmStatics) #
allocMoreStack :: Platform -> Int -> NatCmmDecl statics Instr -> UniqSM (NatCmmDecl statics Instr, [(BlockId, BlockId)]) #
maxSpillSlots :: NCGConfig -> Int #
archWordFormat :: Bool -> Format #