ghc-7.6.3: The GHC API

Safe HaskellNone

CmmUtils

Contents

Synopsis

Documentation

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

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

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 -> CmmExpr

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

Operations that probably don't belong here

modifyGraph :: (Graph n C C -> Graph n' C C) -> GenCmmGraph n -> GenCmmGraph n'

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 -> a

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