[llvm-commits] CVS: llvm/lib/Target/SparcV8/SparcV8TargetMachine.cpp

Brian Gaeke gaeke at cs.uiuc.edu
Sat Dec 11 10:41:25 PST 2004



Changes in directory llvm/lib/Target/SparcV8:

SparcV8TargetMachine.cpp updated: 1.22 -> 1.23
---
Log message:

JIT should print LLVM each function before selecting instructions for it.


---
Diffs of the changes:  (+4 -0)

Index: llvm/lib/Target/SparcV8/SparcV8TargetMachine.cpp
diff -u llvm/lib/Target/SparcV8/SparcV8TargetMachine.cpp:1.22 llvm/lib/Target/SparcV8/SparcV8TargetMachine.cpp:1.23
--- llvm/lib/Target/SparcV8/SparcV8TargetMachine.cpp:1.22	Fri Dec 10 23:19:04 2004
+++ llvm/lib/Target/SparcV8/SparcV8TargetMachine.cpp	Sat Dec 11 12:41:09 2004
@@ -137,6 +137,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 PrintFunctionPass());
+  
   PM.add(createSparcV8SimpleInstructionSelector(TM));
 
   // Print machine instructions as they were initially generated.






More information about the llvm-commits mailing list