#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"
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";