forked from OSchip/llvm-project
parent
20c88dfd1b
commit
6b037909ff
|
@ -1902,6 +1902,10 @@ public:
|
|||
<< ".getValue(" << CInfo.getNumResults() << "))) goto P"
|
||||
<< PatternNo << "Fail; // Already selected for a chain use?\n";
|
||||
}
|
||||
if (!FoundChain) {
|
||||
OS << " SDOperand Chain = " << RootName << ".getOperand(0);\n";
|
||||
FoundChain = true;
|
||||
}
|
||||
}
|
||||
|
||||
for (unsigned i = 0, e = N->getNumChildren(); i != e; ++i, ++OpNo) {
|
||||
|
@ -1975,13 +1979,6 @@ public:
|
|||
}
|
||||
}
|
||||
|
||||
if (HasChain) {
|
||||
if (!FoundChain) {
|
||||
OS << " SDOperand Chain = " << RootName << ".getOperand(0);\n";
|
||||
FoundChain = true;
|
||||
}
|
||||
}
|
||||
|
||||
// If there is a node predicate for this, emit the call.
|
||||
if (!N->getPredicateFn().empty())
|
||||
OS << " if (!" << N->getPredicateFn() << "(" << RootName
|
||||
|
|
Loading…
Reference in New Issue