ghc-7.4.2: 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

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

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