May 2015
Intermediate to advanced
296 pages
5h 10m
English
Inserting the prologue-epilogue code involves stack unwinding, finalizing the function layout, saving callee-saved registers and emitting the prologue and epilogue code. It also replaces abstract frame indexes with appropriate references. This pass runs after the register allocation phase.
The skeleton and the important functions defined in the PrologueEpilogueInserter class are as follows:
MachineFunctionPass class. Its constructor initializes the pass:class PEI : public MachineFunctionPass {
public:
static char ID;
PEI() : MachineFunctionPass(ID) {
initializePEIPass(*PassRegistry::getPassRegistry());
}Read now
Unlock full access