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

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

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

analFwd :: Monad m => DataflowLattice f -> FwdTransfer n f -> FwdPass m n f

analBwd :: Monad m => DataflowLattice f -> BwdTransfer n f -> BwdPass m n f

analRewFwd :: Monad m => DataflowLattice f -> FwdTransfer n f -> FwdRewrite m n f -> FwdPass m n f

analRewBwd :: Monad m => DataflowLattice f -> BwdTransfer n f -> BwdRewrite m n f -> BwdPass m n f