diff options
author | Chris Lattner <sabre@nondot.org> | 2006-03-28 00:40:33 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-03-28 00:40:33 +0000 |
commit | 48b61a729df6576c8833a83893d4086bddff69a5 (patch) | |
tree | a1f4b91e21bd23bc03c86b75033befa4bf175b56 /lib/CodeGen/SelectionDAG/SelectionDAG.cpp | |
parent | 0038e598037f76c2dce8b55ebb5e9147fd786330 (diff) |
Tblgen doesn't like multiple SDNode<> definitions that map to the sameenum value. Split them into separate enums.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27201 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/SelectionDAG.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index 3d22278852..218ed8997f 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp @@ -2689,9 +2689,13 @@ 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: { - bool hasChain = getOperand(0).getValueType() == MVT::Other; - unsigned IID = cast<ConstantSDNode>(getOperand(hasChain))->getValue(); + case ISD::INTRINSIC_WO_CHAIN: { + unsigned IID = cast<ConstantSDNode>(getOperand(0))->getValue(); + return Intrinsic::getName((Intrinsic::ID)IID); + } + case ISD::INTRINSIC_VOID: + case ISD::INTRINSIC_W_CHAIN: { + unsigned IID = cast<ConstantSDNode>(getOperand(1))->getValue(); return Intrinsic::getName((Intrinsic::ID)IID); } |