ghc-lib-9.0.1.20210205: The GHC API, decoupled from GHC versions
Safe HaskellNone
LanguageHaskell2010

GHC.Cmm.CallConv

Synopsis

Documentation

data ParamLocation Source #

Constructors

RegisterParam GlobalReg 
StackParam ByteOff 

Instances

Instances details
Outputable ParamLocation Source # 
Instance details

Defined in GHC.Cmm.CallConv

Methods

ppr :: ParamLocation -> SDoc

pprPrec :: Rational -> ParamLocation -> SDoc

assignArgumentsPos :: DynFlags -> ByteOff -> Convention -> (a -> CmmType) -> [a] -> (ByteOff, [(a, ParamLocation)]) Source #

Given a list of arguments, and a function that tells their types, return a list showing where each argument is passed

assignStack :: Platform -> ByteOff -> (a -> CmmType) -> [a] -> (ByteOff, [(a, ParamLocation)]) Source #

realArgRegsCover :: DynFlags -> [GlobalReg] Source #