stackframe - what is stack frame lowering in llvm? -
i'm working llvm , new it.
i'm having trouble figuring out llvm means stack frame lowering. can explain is?
any appreciated
when function runs, gets amount of space on stack store stuff stack variables , callee saved registers (csr). stack frame lowering process of calculating amount of space , layout required this, , emitting required machine instructions in prologue , epilogue (beginning , end) of function.
when variables on stack referred before prologue-epilogue insertion (pei) step, addressed using "frame indexes", arbitrary name location resolve stack-pointer relative offset. note pei happens late (after register allocation).
Comments
Post a Comment