ghc-7.0.4: The GHC API

StgCmmUtils

# Documentation

cgLit :: Literal -> FCode CmmLit

mkSimpleLit :: Literal -> CmmLit

emitDataLits :: CLabel -> [CmmLit] -> FCode ()

mkDataLits :: CLabel -> [CmmLit] -> GenCmmTop CmmStatic info stmt

emitRODataLits :: CLabel -> [CmmLit] -> FCode ()

mkRODataLits :: CLabel -> [CmmLit] -> GenCmmTop CmmStatic info stmt

emitRtsCall :: PackageId -> FastString -> [(CmmExpr, ForeignHint)] -> Bool -> FCode ()

emitRtsCallWithVols :: PackageId -> FastString -> [(CmmExpr, ForeignHint)] -> [GlobalReg] -> Bool -> FCode ()

emitRtsCallWithResult :: LocalReg -> ForeignHint -> PackageId -> FastString -> [(CmmExpr, ForeignHint)] -> Bool -> FCode ()

assignTemp :: CmmExpr -> FCode LocalReg

newTemp :: CmmType -> FCode LocalReg

withTemp :: CmmType -> (LocalReg -> CmmAGraph) -> CmmAGraph

newUnboxedTupleRegs :: Type -> FCode ([LocalReg], [ForeignHint])

mkMultiAssign :: [LocalReg] -> [CmmExpr] -> CmmAGraph

mkCmmSwitch :: Bool -> CmmExpr -> [(ConTagZ, CmmAGraph)] -> Maybe CmmAGraph -> ConTagZ -> ConTagZ -> CmmAGraph

mkCmmLitSwitch :: CmmExpr -> [(Literal, CmmAGraph)] -> CmmAGraph -> CmmAGraph

emitSwitch :: CmmExpr -> [(ConTagZ, CmmAGraph)] -> Maybe CmmAGraph -> ConTagZ -> ConTagZ -> FCode ()

tagToClosure :: TyCon -> CmmExpr -> CmmExpr

mkTaggedObjectLoad :: LocalReg -> LocalReg -> WordOff -> DynTag -> CmmAGraph

callerSaveVolatileRegs :: (CmmAGraph, CmmAGraph)

get_GlobalReg_addr :: GlobalReg -> CmmExpr

cmmAndWord :: CmmExpr -> CmmExpr -> CmmExpr

cmmOrWord :: CmmExpr -> CmmExpr -> CmmExpr

cmmNegate :: CmmExpr -> CmmExpr

cmmEqWord :: CmmExpr -> CmmExpr -> CmmExpr

cmmNeWord :: CmmExpr -> CmmExpr -> CmmExpr

cmmUGtWord :: CmmExpr -> CmmExpr -> CmmExpr

cmmOffsetExprW :: CmmExpr -> CmmExpr -> CmmExpr

cmmOffsetExprB :: CmmExpr -> CmmExpr -> CmmExpr

cmmRegOffW :: CmmReg -> WordOff -> CmmExpr

cmmRegOffB :: CmmReg -> ByteOff -> CmmExpr

cmmLabelOffW :: CLabel -> WordOff -> CmmLit

cmmLabelOffB :: CLabel -> ByteOff -> CmmLit

cmmOffsetW :: CmmExpr -> WordOff -> CmmExpr

cmmOffsetB :: CmmExpr -> ByteOff -> CmmExpr

cmmOffsetLitW :: CmmLit -> WordOff -> CmmLit

cmmOffsetLitB :: CmmLit -> ByteOff -> CmmLit

cmmLoadIndexW :: CmmExpr -> Int -> CmmType -> CmmExpr

cmmConstrTag :: CmmExpr -> CmmExpr

cmmConstrTag1 :: CmmExpr -> CmmExpr

cmmUntag :: CmmExpr -> CmmExpr

cmmIsTagged :: CmmExpr -> CmmExpr

cmmGetTag :: CmmExpr -> CmmExpr

addToMem :: CmmType -> CmmExpr -> Int -> CmmAGraph

addToMemE :: CmmType -> CmmExpr -> CmmExpr -> CmmAGraph

addToMemLbl :: CmmType -> CLabel -> Int -> CmmAGraph

mkWordCLit :: StgWord -> CmmLit

mkStringCLit :: String -> FCode CmmLit

mkByteStringCLit :: [Word8] -> FCode CmmLit

packHalfWordsCLit :: (Integral a, Integral b) => a -> b -> CmmLit

blankWord :: CmmStatic

getSRTInfo :: SRT -> FCode C_SRT

clHasCafRefs :: ClosureInfo -> CafInfo

srt_escape :: StgHalfWord