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

Chris Lattner lattner at cs.uiuc.edu
Wed Apr 23 11:26:01 PDT 2003


Changes in directory llvm/lib/Target/Sparc:

Sparc.cpp updated: 1.60 -> 1.61

---
Log message:

Add support for the Switch instruction by running the lowerSwitch pass first


---
Diffs of the changes:

Index: llvm/lib/Target/Sparc/Sparc.cpp
diff -u llvm/lib/Target/Sparc/Sparc.cpp:1.60 llvm/lib/Target/Sparc/Sparc.cpp:1.61
--- llvm/lib/Target/Sparc/Sparc.cpp:1.60	Tue Jan 14 15:59:15 2003
+++ llvm/lib/Target/Sparc/Sparc.cpp	Wed Apr 23 11:24:53 2003
@@ -143,6 +143,9 @@
 //
 bool UltraSparc::addPassesToEmitAssembly(PassManager &PM, std::ostream &Out)
 {
+  // FIXME: implement the switch instruction in the instruction selector.
+  PM.add(createLowerSwitchPass());
+
   // Construct and initialize the MachineFunction object for this fn.
   PM.add(createMachineCodeConstructionPass(*this));
 





More information about the llvm-commits mailing list