Give passes nice names!

llvm-svn: 5059
This commit is contained in:
Chris Lattner 2002-12-15 21:13:40 +00:00
parent 1499e5a92c
commit d06650ade1
4 changed files with 16 additions and 0 deletions

View File

@ -91,6 +91,10 @@ namespace {
return false; // We never modify the LLVM itself.
}
virtual const char *getPassName() const {
return "X86 Simple Instruction Selection";
}
/// visitBasicBlock - This method is called when we are visiting a new basic
/// block. This simply creates a new MachineBasicBlock to emit code into
/// and adds it to the current MachineFunction. Subsequent visit* for

View File

@ -25,6 +25,10 @@ namespace {
bool runOnFunction(Function &F);
virtual const char *getPassName() const {
return "X86 Machine Code Emitter";
}
private:
void emitBasicBlock(MachineBasicBlock &MBB);
void emitInstruction(MachineInstr &MI);

View File

@ -21,6 +21,10 @@ namespace {
Printer(TargetMachine &tm, std::ostream &o) : TM(tm), O(o) {}
virtual const char *getPassName() const {
return "X86 Assembly Printer";
}
bool runOnFunction(Function &F);
};
}

View File

@ -25,6 +25,10 @@ namespace {
bool runOnFunction(Function &F);
virtual const char *getPassName() const {
return "X86 Machine Code Emitter";
}
private:
void emitBasicBlock(MachineBasicBlock &MBB);
void emitInstruction(MachineInstr &MI);