ghc-7.6.3: The GHC API

Safe HaskellNone

CmmUtils

Contents

Synopsis

Documentation

cmmIndex :: Width -> CmmExpr -> Int -> CmmExprSource

Useful for creating an index into an array, with a staticaly known offset. The type is the element type; used for making the multiplier

cmmIndexExpr :: Width -> CmmExpr -> CmmExpr -> CmmExprSource

Useful for creating an index into an array, with an unknown offset.

Operations that probably don't belong here

lastNode :: Block n x C -> n O CSource

replaceLastNode :: Block n x C -> n O C -> Block n x CSource

foldGraphBlocks :: (CmmBlock -> a -> a) -> a -> CmmGraph -> aSource

mapGraphNodes1 :: (forall e x. CmmNode e x -> CmmNode e x) -> CmmGraph -> CmmGraphSource