ghc-7.0.1: The GHC API

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.