ghc-7.6.1.20121125: The GHC API

Safe HaskellNone

CgStackery

Synopsis

Documentation

mkStkAmodes :: VirtualSpOffset -> [(CgRep, CmmExpr)] -> FCode (VirtualSpOffset, CmmStmts)Source

mkStkAmodes is a higher-level version of mkVirtStkOffsets. It starts from the tail-call locations. It returns a single list of addressing modes for the stack locations, and therefore is in the monad. It doesn't adjust the high water mark.