ghc-6.12.3: The GHC APISource codeContentsIndex
CgMonad
Documentation
type Code = FCode ()Source
data FCode a Source
show/hide Instances
initC :: DynFlags -> Module -> FCode a -> IO aSource
thenC :: Code -> FCode a -> FCode aSource
thenFC :: FCode a -> (a -> FCode c) -> FCode cSource
listCs :: [Code] -> CodeSource
listFCs :: [FCode a] -> FCode [a]Source
mapCs :: (a -> Code) -> [a] -> CodeSource
mapFCs :: (a -> FCode b) -> [a] -> FCode [b]Source
returnFC :: a -> FCode aSource
fixC :: (a -> FCode a) -> FCode aSource
fixC_ :: (a -> FCode a) -> FCode ()Source
checkedAbsC :: CmmStmt -> CodeSource
stmtC :: CmmStmt -> CodeSource
stmtsC :: [CmmStmt] -> CodeSource
labelC :: BlockId -> CodeSource
emitStmts :: CmmStmts -> CodeSource
nopC :: CodeSource
whenC :: Bool -> Code -> CodeSource
newLabelC :: FCode BlockIdSource
newUnique :: FCode UniqueSource
newUniqSupply :: FCode UniqSupplySource
type CgStmts = OrdList CgStmtSource
emitCgStmts :: CgStmts -> CodeSource
forkCgStmts :: CgStmts -> FCode BlockIdSource
cgStmtsToBlocks :: CgStmts -> FCode [CmmBasicBlock]Source
getCgStmts' :: FCode a -> FCode (a, CgStmts)Source
getCgStmts :: FCode a -> FCode CgStmtsSource
noCgStmts :: CgStmtsSource
oneCgStmt :: CmmStmt -> CgStmtsSource
consCgStmt :: CmmStmt -> CgStmts -> CgStmtsSource
getCmm :: Code -> FCode CmmSource
emitData :: Section -> [CmmStatic] -> CodeSource
emitProc :: CmmInfo -> CLabel -> CmmFormals -> [CmmBasicBlock] -> CodeSource
emitSimpleProc :: CLabel -> Code -> CodeSource
forkLabelledCode :: Code -> FCode BlockIdSource
forkClosureBody :: Code -> CodeSource
forkStatics :: FCode a -> FCode aSource
forkAlts :: [FCode a] -> FCode [a]Source
forkEval :: EndOfBlockInfo -> Code -> FCode Sequel -> FCode EndOfBlockInfoSource
forkEvalHelp :: EndOfBlockInfo -> Code -> FCode a -> FCode (VirtualSpOffset, a)Source
forkProc :: Code -> FCode CgStmtsSource
codeOnly :: Code -> CodeSource
type SemiTaggingStuff = Maybe ([(ConTagZ, CmmLit)], CmmLit)Source
type ConTagZ = IntSource
data EndOfBlockInfo Source
Constructors
EndOfBlockInfo VirtualSpOffset Sequel
setEndOfBlockInfo :: EndOfBlockInfo -> Code -> CodeSource
getEndOfBlockInfo :: FCode EndOfBlockInfoSource
setSRT :: SRT -> FCode a -> FCode aSource
getSRT :: FCode SRTSource
setSRTLabel :: CLabel -> FCode a -> FCode aSource
getSRTLabel :: FCode CLabelSource
setTickyCtrLabel :: CLabel -> Code -> CodeSource
getTickyCtrLabel :: FCode CLabelSource
data StackUsage Source
Constructors
StackUsage
virtSp :: VirtualSpOffset
frameSp :: VirtualSpOffset
freeStk :: [VirtualSpOffset]
realSp :: VirtualSpOffset
hwSp :: VirtualSpOffset
data HeapUsage Source
Constructors
HeapUsage
virtHp :: VirtualHpOffset
realHp :: VirtualHpOffset
type VirtualSpOffset = WordOffSource
type VirtualHpOffset = WordOffSource
initStkUsage :: StackUsageSource
initHpUsage :: HeapUsageSource
getHpUsage :: FCode HeapUsageSource
setHpUsage :: HeapUsage -> CodeSource
heapHWM :: HeapUsage -> VirtualHpOffsetSource
getModuleName :: FCode ModuleSource
data Sequel Source
Constructors
OnStack
UpdateCode
CaseAlts CLabel SemiTaggingStuff Id
getState :: FCode CgStateSource
setState :: CgState -> FCode ()Source
getInfoDown :: FCode CgInfoDownwardsSource
getDynFlags :: FCode DynFlagsSource
getThisPackage :: FCode PackageIdSource
getStkUsage :: FCode StackUsageSource
setStkUsage :: StackUsage -> CodeSource
getBinds :: FCode CgBindingsSource
setBinds :: CgBindings -> FCode ()Source
getStaticBinds :: FCode CgBindingsSource
data CgInfoDownwards Source
Constructors
MkCgInfoDown
cgd_dflags :: DynFlags
cgd_mod :: Module
cgd_statics :: CgBindings
cgd_srt_lbl :: CLabel
cgd_srt :: SRT
cgd_ticky :: CLabel
cgd_eob :: EndOfBlockInfo
data CgState Source
Constructors
MkCgState
cgs_stmts :: OrdList CgStmt
cgs_tops :: OrdList CmmTop
cgs_binds :: CgBindings
cgs_stk_usg :: StackUsage
cgs_hp_usg :: HeapUsage
cgs_uniqs :: UniqSupply
Produced by Haddock version 2.6.1