[llvm-commits] CVS: llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
Chris Lattner
lattner at cs.uiuc.edu
Sun Mar 26 22:45:38 PST 2006
Changes in directory llvm/lib/CodeGen/SelectionDAG:
SelectionDAG.cpp updated: 1.284 -> 1.285
---
Log message:
Instead of printing "INTRINSIC" on intrinsic node, print the intrinsic name.
---
Diffs of the changes: (+5 -1)
SelectionDAG.cpp | 6 +++++-
1 files changed, 5 insertions(+), 1 deletion(-)
Index: llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:1.284 llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:1.285
--- llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:1.284 Sun Mar 26 03:50:58 2006
+++ llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp Mon Mar 27 00:45:25 2006
@@ -14,6 +14,7 @@
#include "llvm/CodeGen/SelectionDAG.h"
#include "llvm/Constants.h"
#include "llvm/GlobalValue.h"
+#include "llvm/Intrinsics.h"
#include "llvm/Assembly/Writer.h"
#include "llvm/CodeGen/MachineBasicBlock.h"
#include "llvm/Support/MathExtras.h"
@@ -2665,7 +2666,10 @@
case ISD::FrameIndex: return "FrameIndex";
case ISD::ConstantPool: return "ConstantPool";
case ISD::ExternalSymbol: return "ExternalSymbol";
- case ISD::INTRINSIC: return "INTRINSIC";
+ case ISD::INTRINSIC:
+ bool hasChain = getOperand(0).getValueType() == MVT::Other;
+ unsigned IID = cast<ConstantSDNode>(getOperand(hasChain))->getValue();
+ return Intrinsic::getName((Intrinsic::ID)IID);
case ISD::BUILD_VECTOR: return "BUILD_VECTOR";
case ISD::TargetConstant: return "TargetConstant";
More information about the llvm-commits
mailing list