}
virtual bool addInstSelector();
- virtual bool addPreRegAlloc();
virtual bool addPreSched2();
virtual bool addPreEmitPass();
};
return true;
}
-bool MipsPassConfig::addPreRegAlloc() {
- // Do not restore $gp if target is Mips64.
- // In N32/64, $gp is a callee-saved register.
- if (!getMipsSubtarget().hasMips64())
- PM->add(createMipsEmitGPRestorePass(getMipsTargetMachine()));
- return true;
-}
-
bool MipsPassConfig::addPreSched2() {
PM->add(createMipsExpandPseudoPass(getMipsTargetMachine()));
return true;