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