Allow debugging machine instrs (by printout) before/after isel and regalloc

llvm-svn: 14416
This commit is contained in:
Misha Brukman 2004-06-25 19:57:47 +00:00
parent 26e36e5758
commit c52ea2574d
1 changed files with 7 additions and 0 deletions

View File

@ -56,12 +56,19 @@ bool PowerPCTargetMachine::addPassesToEmitAssembly(PassManager &PM,
// FIXME: Implement the switch instruction in the instruction selector!
PM.add(createLowerSwitchPass());
if (PrintMachineCode)
PM.add(createMachineFunctionPrinterPass(&std::cerr));
PM.add(createPPCSimpleInstructionSelector(*this));
if (PrintMachineCode)
PM.add(createMachineFunctionPrinterPass(&std::cerr));
PM.add(createRegisterAllocator());
if (PrintMachineCode)
PM.add(createMachineFunctionPrinterPass(&std::cerr));
PM.add(createPrologEpilogCodeInserter());
PM.add(createPPCCodePrinterPass(Out, *this));
PM.add(createMachineCodeDeleter());