Instead of printing "INTRINSIC" on intrinsic node, print the intrinsic name.

llvm-svn: 27164
This commit is contained in:
Chris Lattner 2006-03-27 06:45:25 +00:00
parent 42e0ba09aa
commit 52fcad3a37
1 changed files with 5 additions and 1 deletions

View File

@ -14,6 +14,7 @@
#include "llvm/CodeGen/SelectionDAG.h" #include "llvm/CodeGen/SelectionDAG.h"
#include "llvm/Constants.h" #include "llvm/Constants.h"
#include "llvm/GlobalValue.h" #include "llvm/GlobalValue.h"
#include "llvm/Intrinsics.h"
#include "llvm/Assembly/Writer.h" #include "llvm/Assembly/Writer.h"
#include "llvm/CodeGen/MachineBasicBlock.h" #include "llvm/CodeGen/MachineBasicBlock.h"
#include "llvm/Support/MathExtras.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::FrameIndex: return "FrameIndex";
case ISD::ConstantPool: return "ConstantPool"; case ISD::ConstantPool: return "ConstantPool";
case ISD::ExternalSymbol: return "ExternalSymbol"; 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::BUILD_VECTOR: return "BUILD_VECTOR";
case ISD::TargetConstant: return "TargetConstant"; case ISD::TargetConstant: return "TargetConstant";