summaryrefslogtreecommitdiffstats
path: root/llvm/utils/TableGen
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-09-26 21:54:37 +0000
committerDan Gohman <gohman@apple.com>2008-09-26 21:54:37 +0000
commit6e0548336ae85850b4ebca6b0204fe8406e0e788 (patch)
tree12eedd29dbfd45d7c15c6fbf4815b0dcffc865ed /llvm/utils/TableGen
parent7e763ed3aaa37ef474cdd5e4d0f20136643622cd (diff)
downloadbcm5719-llvm-6e0548336ae85850b4ebca6b0204fe8406e0e788.tar.gz
bcm5719-llvm-6e0548336ae85850b4ebca6b0204fe8406e0e788.zip
Rename ConstantSDNode's getSignExtended to getSExtValue, for
consistancy with ConstantInt, and re-implement it in terms of ConstantInt's getSExtValue. llvm-svn: 56700
Diffstat (limited to 'llvm/utils/TableGen')
-rw-r--r--llvm/utils/TableGen/DAGISelEmitter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/utils/TableGen/DAGISelEmitter.cpp b/llvm/utils/TableGen/DAGISelEmitter.cpp
index e4a3f098d35..44b6d75c0f7 100644
--- a/llvm/utils/TableGen/DAGISelEmitter.cpp
+++ b/llvm/utils/TableGen/DAGISelEmitter.cpp
@@ -437,7 +437,7 @@ public:
if (N->isLeaf()) {
if (IntInit *II = dynamic_cast<IntInit*>(N->getLeafValue())) {
emitCheck("cast<ConstantSDNode>(" + RootName +
- ")->getSignExtended() == " + itostr(II->getValue()));
+ ")->getSExtValue() == " + itostr(II->getValue()));
return;
} else if (!NodeIsComplexPattern(N)) {
assert(0 && "Cannot match this as a leaf value!");
@@ -726,7 +726,7 @@ public:
emitCheck("isa<ConstantSDNode>(" + RootName + ")");
unsigned CTmp = TmpNo++;
emitCode("int64_t CN"+utostr(CTmp)+" = cast<ConstantSDNode>("+
- RootName + ")->getSignExtended();");
+ RootName + ")->getSExtValue();");
emitCheck("CN" + utostr(CTmp) + " == " +itostr(II->getValue()));
} else {
OpenPOWER on IntegriCloud