From f5aeb1a8e4cf272c7348376d185ef8d8267653e0 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Fri, 12 Sep 2008 16:56:44 +0000 Subject: Rename ConstantSDNode::getValue to getZExtValue, for consistency with ConstantInt. This led to fixing a bug in TargetLowering.cpp using getValue instead of getAPIntValue. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56159 91177308-0d34-0410-b5e6-96231b3b80d8 --- utils/TableGen/DAGISelEmitter.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'utils/TableGen') diff --git a/utils/TableGen/DAGISelEmitter.cpp b/utils/TableGen/DAGISelEmitter.cpp index 36e18ab..3bc7dc2 100644 --- a/utils/TableGen/DAGISelEmitter.cpp +++ b/utils/TableGen/DAGISelEmitter.cpp @@ -781,7 +781,7 @@ public: } emitCode("SDValue " + TmpVar + " = CurDAG->getTargetConstant(((" + CastType + - ") cast(" + Val + ")->getValue()), " + + ") cast(" + Val + ")->getZExtValue()), " + getEnumName(N->getTypeNum(0)) + ");"); // Add Tmp to VariableMap, so that we don't multiply select this // value if used multiple times by this pattern result. @@ -1839,7 +1839,7 @@ void DAGISelEmitter::EmitInstructionSelector(std::ostream &OS) { OS << " N.getNode()->dump(CurDAG);\n"; } else { OS << " unsigned iid = cast(N.getOperand(" - "N.getOperand(0).getValueType() == MVT::Other))->getValue();\n" + "N.getOperand(0).getValueType() == MVT::Other))->getZExtValue();\n" << " cerr << \"intrinsic %\"<< " "Intrinsic::getName((Intrinsic::ID)iid);\n"; } @@ -1914,7 +1914,7 @@ void DAGISelEmitter::EmitInstructionSelector(std::ostream &OS) { OS << "SDNode *Select_EXTRACT_SUBREG(const SDValue &N) {\n" << " SDValue N0 = N.getOperand(0);\n" << " SDValue N1 = N.getOperand(1);\n" - << " unsigned C = cast(N1)->getValue();\n" + << " unsigned C = cast(N1)->getZExtValue();\n" << " SDValue Tmp = CurDAG->getTargetConstant(C, MVT::i32);\n" << " AddToISelQueue(N0);\n" << " return CurDAG->SelectNodeTo(N.getNode(), TargetInstrInfo::EXTRACT_SUBREG,\n" @@ -1925,7 +1925,7 @@ void DAGISelEmitter::EmitInstructionSelector(std::ostream &OS) { << " SDValue N0 = N.getOperand(0);\n" << " SDValue N1 = N.getOperand(1);\n" << " SDValue N2 = N.getOperand(2);\n" - << " unsigned C = cast(N2)->getValue();\n" + << " unsigned C = cast(N2)->getZExtValue();\n" << " SDValue Tmp = CurDAG->getTargetConstant(C, MVT::i32);\n" << " AddToISelQueue(N1);\n" << " AddToISelQueue(N0);\n" @@ -2036,7 +2036,8 @@ void DAGISelEmitter::EmitInstructionSelector(std::ostream &OS) { << " N.getNode()->dump(CurDAG);\n" << " } else {\n" << " unsigned iid = cast(N.getOperand(" - "N.getOperand(0).getValueType() == MVT::Other))->getValue();\n" + "N.getOperand(0).getValueType() == " + "MVT::Other))->getZExtValue();\n" << " cerr << \"intrinsic %\"<< " "Intrinsic::getName((Intrinsic::ID)iid);\n" << " }\n" -- cgit v1.1