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

Chris Lattner lattner at cs.uiuc.edu
Wed Jan 11 23:31:28 PST 2006



Changes in directory llvm/lib/Target/SparcV8:

SparcV8ISelDAGToDAG.cpp updated: 1.45 -> 1.46
---
Log message:

Give V8ISD nodes symbolic names in dumps


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

 SparcV8ISelDAGToDAG.cpp |   18 ++++++++++++++++++
 1 files changed, 18 insertions(+)


Index: llvm/lib/Target/SparcV8/SparcV8ISelDAGToDAG.cpp
diff -u llvm/lib/Target/SparcV8/SparcV8ISelDAGToDAG.cpp:1.45 llvm/lib/Target/SparcV8/SparcV8ISelDAGToDAG.cpp:1.46
--- llvm/lib/Target/SparcV8/SparcV8ISelDAGToDAG.cpp:1.45	Wed Jan 11 15:21:00 2006
+++ llvm/lib/Target/SparcV8/SparcV8ISelDAGToDAG.cpp	Thu Jan 12 01:31:15 2006
@@ -76,6 +76,8 @@
                               SelectionDAG &DAG);
     virtual MachineBasicBlock *InsertAtEndOfBasicBlock(MachineInstr *MI,
                                                        MachineBasicBlock *MBB);
+    
+    virtual const char *getTargetNodeName(unsigned Opcode) const;
   };
 }
 
@@ -161,6 +163,22 @@
   computeRegisterProperties();
 }
 
+const char *SparcV8TargetLowering::getTargetNodeName(unsigned Opcode) const {
+  switch (Opcode) {
+  case V8ISD::CMPICC:     return "V8ISD::CMPICC";
+  case V8ISD::CMPFCC:     return "V8ISD::CMPFCC";
+  case V8ISD::BRICC:      return "V8ISD::BRICC";
+  case V8ISD::BRFCC:      return "V8ISD::BRFCC";
+  case V8ISD::Hi:         return "V8ISD::Hi";
+  case V8ISD::Lo:         return "V8ISD::Lo";
+  case V8ISD::FTOI:       return "V8ISD::FTOI";
+  case V8ISD::ITOF:       return "V8ISD::ITOF";
+  case V8ISD::SELECT_ICC: return "V8ISD::SELECT_ICC";
+  case V8ISD::SELECT_FCC: return "V8ISD::SELECT_FCC";
+  case V8ISD::RET_FLAG:   return "V8ISD::RET_FLAG";
+  }
+}
+
 /// LowerArguments - V8 uses a very simple ABI, where all values are passed in
 /// either one or two GPRs, including FP values.  TODO: we should pass FP values
 /// in FP registers for fastcc functions.






More information about the llvm-commits mailing list