ghc-7.0.3: The GHC API

CmmUtils

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.