[llvm-commits] CVS: llvm/lib/Target/SparcV8/SparcV8TargetMachine.cpp
Brian Gaeke
gaeke at cs.uiuc.edu
Fri Dec 10 21:19:18 PST 2004
Changes in directory llvm/lib/Target/SparcV8:
SparcV8TargetMachine.cpp updated: 1.21 -> 1.22
---
Log message:
Bools are *also* not ints. Sigh. Furthermore, most of the TargetMachine
ctor parameters can be defaulted.
Print the transformed llvm code input to the instruction selector
when -print-machineinstrs is on, just like V9.
---
Diffs of the changes: (+6 -1)
Index: llvm/lib/Target/SparcV8/SparcV8TargetMachine.cpp
diff -u llvm/lib/Target/SparcV8/SparcV8TargetMachine.cpp:1.21 llvm/lib/Target/SparcV8/SparcV8TargetMachine.cpp:1.22
--- llvm/lib/Target/SparcV8/SparcV8TargetMachine.cpp:1.21 Fri Dec 10 02:39:30 2004
+++ llvm/lib/Target/SparcV8/SparcV8TargetMachine.cpp Fri Dec 10 23:19:04 2004
@@ -12,6 +12,7 @@
#include "SparcV8TargetMachine.h"
#include "SparcV8.h"
+#include "llvm/Assembly/PrintModulePass.h"
#include "llvm/Module.h"
#include "llvm/PassManager.h"
#include "llvm/CodeGen/MachineFunction.h"
@@ -31,7 +32,7 @@
///
SparcV8TargetMachine::SparcV8TargetMachine(const Module &M,
IntrinsicLowering *IL)
- : TargetMachine("SparcV8", IL, false, 4, 4, 8, 4, 8, 4, 2, 1, 4),
+ : TargetMachine("SparcV8", IL, false, 4, 4),
FrameInfo(TargetFrameInfo::StackGrowsDown, 8, 0), JITInfo(*this) {
}
@@ -78,6 +79,10 @@
// FIXME: implement the select instruction in the instruction selector.
PM.add(createLowerSelectPass());
+
+ // Print LLVM code input to instruction selector:
+ if (PrintMachineCode)
+ PM.add(new PrintModulePass());
PM.add(createSparcV8SimpleInstructionSelector(*this));
More information about the llvm-commits
mailing list