[llvm-commits] CVS: llvm/lib/Target/PowerPC/PPCISelLowering.cpp PPCISelLowering.h
Chris Lattner
lattner at cs.uiuc.edu
Mon Jan 9 15:52:29 PST 2006
Changes in directory llvm/lib/Target/PowerPC:
PPCISelLowering.cpp updated: 1.59 -> 1.60
PPCISelLowering.h updated: 1.13 -> 1.14
---
Log message:
Give PPCISD:: nodes legible names in dumps.
---
Diffs of the changes: (+23 -0)
PPCISelLowering.cpp | 19 +++++++++++++++++++
PPCISelLowering.h | 4 ++++
2 files changed, 23 insertions(+)
Index: llvm/lib/Target/PowerPC/PPCISelLowering.cpp
diff -u llvm/lib/Target/PowerPC/PPCISelLowering.cpp:1.59 llvm/lib/Target/PowerPC/PPCISelLowering.cpp:1.60
--- llvm/lib/Target/PowerPC/PPCISelLowering.cpp:1.59 Thu Jan 5 19:04:03 2006
+++ llvm/lib/Target/PowerPC/PPCISelLowering.cpp Mon Jan 9 17:52:17 2006
@@ -139,6 +139,25 @@
computeRegisterProperties();
}
+const char *PPCTargetLowering::getTargetNodeName(unsigned Opcode) const {
+ switch (Opcode) {
+ default: return 0;
+ case PPCISD::FSEL: return "PPCISD::FSEL";
+ case PPCISD::FCFID: return "PPCISD::FCFID";
+ case PPCISD::FCTIDZ: return "PPCISD::FCTIDZ";
+ case PPCISD::FCTIWZ: return "PPCISD::FCTIWZ";
+ case PPCISD::VMADDFP: return "PPCISD::VMADDFP";
+ case PPCISD::VNMSUBFP: return "PPCISD::VNMSUBFP";
+ case PPCISD::Hi: return "PPCISD::Hi";
+ case PPCISD::Lo: return "PPCISD::Lo";
+ case PPCISD::GlobalBaseReg: return "PPCISD::GlobalBaseReg";
+ case PPCISD::SRL: return "PPCISD::SRL";
+ case PPCISD::SRA: return "PPCISD::SRA";
+ case PPCISD::SHL: return "PPCISD::SHL";
+ case PPCISD::RET_FLAG: return "PPCISD::RET_FLAG";
+ }
+}
+
/// isFloatingPointZero - Return true if this is 0.0 or -0.0.
static bool isFloatingPointZero(SDOperand Op) {
if (ConstantFPSDNode *CFP = dyn_cast<ConstantFPSDNode>(Op))
Index: llvm/lib/Target/PowerPC/PPCISelLowering.h
diff -u llvm/lib/Target/PowerPC/PPCISelLowering.h:1.13 llvm/lib/Target/PowerPC/PPCISelLowering.h:1.14
--- llvm/lib/Target/PowerPC/PPCISelLowering.h:1.13 Mon Dec 19 18:26:01 2005
+++ llvm/lib/Target/PowerPC/PPCISelLowering.h Mon Jan 9 17:52:17 2006
@@ -70,6 +70,10 @@
public:
PPCTargetLowering(TargetMachine &TM);
+ /// getTargetNodeName() - This method returns the name of a target specific
+ /// DAG node.
+ virtual const char *getTargetNodeName(unsigned Opcode) const;
+
/// LowerOperation - Provide custom lowering hooks for some operations.
///
virtual SDOperand LowerOperation(SDOperand Op, SelectionDAG &DAG);
More information about the llvm-commits
mailing list