mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-20 16:17:38 +00:00
fix a long standing wart: all the ComplexPattern's were being
passed the root of the match, even though only a few patterns actually needed this (one in X86, several in ARM [which should be refactored anyway], and some in CellSPU that I don't feel like detangling). Instead of requiring all ComplexPatterns to take the dead root, have targets opt into getting the root by putting SDNPWantRoot on the ComplexPattern. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114471 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -407,6 +407,10 @@ ComplexPattern::ComplexPattern(Record *R) {
|
||||
Properties |= 1 << SDNPMemOperand;
|
||||
} else if (PropList[i]->getName() == "SDNPVariadic") {
|
||||
Properties |= 1 << SDNPVariadic;
|
||||
} else if (PropList[i]->getName() == "SDNPWantRoot") {
|
||||
Properties |= 1 << SDNPWantRoot;
|
||||
} else if (PropList[i]->getName() == "SDNPWantParent") {
|
||||
Properties |= 1 << SDNPWantParent;
|
||||
} else {
|
||||
errs() << "Unsupported SD Node property '" << PropList[i]->getName()
|
||||
<< "' on ComplexPattern '" << R->getName() << "'!\n";
|
||||
|
||||
Reference in New Issue
Block a user