diff options
author | Chris Lattner <sabre@nondot.org> | 2006-03-27 06:45:25 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-03-27 06:45:25 +0000 |
commit | 52fcad3a3740cc22a7e50f281a82baff4e9c4d84 (patch) | |
tree | 65191c413ca1651d1e3cae1486a305c031ddd7d9 /llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp | |
parent | 42e0ba09aae1a9eb6e5f4077dcc25f4fc4cb12e2 (diff) | |
download | bcm5719-llvm-52fcad3a3740cc22a7e50f281a82baff4e9c4d84.tar.gz bcm5719-llvm-52fcad3a3740cc22a7e50f281a82baff4e9c4d84.zip |
Instead of printing "INTRINSIC" on intrinsic node, print the intrinsic name.
llvm-svn: 27164
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index c0cd6467011..ecda64c220c 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp @@ -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 @@ const char *SDNode::getOperationName(const SelectionDAG *G) const { 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"; |