summaryrefslogtreecommitdiffstats
path: root/llvm/utils/TableGen/DAGISelEmitter.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-01-04 20:31:55 +0000
committerDan Gohman <gohman@apple.com>2010-01-04 20:31:55 +0000
commitb91411c9b9be13f1c99fbfc4da2529d154c6673c (patch)
tree751d3956d9f712c9fa8d9f9e757838153795c310 /llvm/utils/TableGen/DAGISelEmitter.cpp
parentaf5b9a2d6256ea14cd0200aac27a80bf1db99b5e (diff)
downloadbcm5719-llvm-b91411c9b9be13f1c99fbfc4da2529d154c6673c.tar.gz
bcm5719-llvm-b91411c9b9be13f1c99fbfc4da2529d154c6673c.zip
Remove the CPAttrParentAsRoot code, which is unused, and inconvenient
for a refactoring I'm working on. llvm-svn: 92503
Diffstat (limited to 'llvm/utils/TableGen/DAGISelEmitter.cpp')
-rw-r--r--llvm/utils/TableGen/DAGISelEmitter.cpp12
1 files changed, 3 insertions, 9 deletions
diff --git a/llvm/utils/TableGen/DAGISelEmitter.cpp b/llvm/utils/TableGen/DAGISelEmitter.cpp
index a901fd0f128..a6bb2112c1c 100644
--- a/llvm/utils/TableGen/DAGISelEmitter.cpp
+++ b/llvm/utils/TableGen/DAGISelEmitter.cpp
@@ -610,7 +610,7 @@ public:
emitCheck(MaskPredicate + RootName + "0, Tmp" + utostr(NTmp) +
", INT64_C(" + itostr(II->getValue()) + "))");
- EmitChildMatchCode(N->getChild(0), N, RootName + utostr(0), RootName,
+ EmitChildMatchCode(N->getChild(0), N, RootName + utostr(0),
ChainSuffix + utostr(0), FoundChain);
return;
}
@@ -621,7 +621,7 @@ public:
emitInit("SDValue " + RootName + utostr(OpNo) + " = " +
RootName + ".getOperand(" +utostr(OpNo) + ");");
- EmitChildMatchCode(N->getChild(i), N, RootName + utostr(OpNo), RootName,
+ EmitChildMatchCode(N->getChild(i), N, RootName + utostr(OpNo),
ChainSuffix + utostr(OpNo), FoundChain);
}
@@ -654,7 +654,6 @@ public:
void EmitChildMatchCode(TreePatternNode *Child, TreePatternNode *Parent,
const std::string &RootName,
- const std::string &ParentRootName,
const std::string &ChainSuffix, bool &FoundChain) {
if (!Child->isLeaf()) {
// If it's not a leaf, recursively match.
@@ -719,12 +718,7 @@ public:
emitCode("SDValue " + ChainName + ";");
}
- std::string Code = Fn + "(";
- if (CP->hasAttribute(CPAttrParentAsRoot)) {
- Code += ParentRootName + ", ";
- } else {
- Code += "N, ";
- }
+ std::string Code = Fn + "(N, ";
if (CP->hasProperty(SDNPHasChain)) {
std::string ParentName(RootName.begin(), RootName.end()-1);
Code += ParentName + ", ";
OpenPOWER on IntegriCloud