mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-13 04:38:24 +00:00
Added properties such as SDNPHasChain to ComplexPattern.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30890 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -362,6 +362,20 @@ ComplexPattern::ComplexPattern(Record *R) {
|
||||
NumOperands = R->getValueAsInt("NumOperands");
|
||||
SelectFunc = R->getValueAsString("SelectFunc");
|
||||
RootNodes = R->getValueAsListOfDefs("RootNodes");
|
||||
|
||||
// Parse the properties.
|
||||
Properties = 0;
|
||||
std::vector<Record*> PropList = R->getValueAsListOfDefs("Properties");
|
||||
for (unsigned i = 0, e = PropList.size(); i != e; ++i)
|
||||
if (PropList[i]->getName() == "SDNPHasChain") {
|
||||
Properties |= 1 << SDNPHasChain;
|
||||
} else if (PropList[i]->getName() == "SDNPOptInFlag") {
|
||||
Properties |= 1 << SDNPOptInFlag;
|
||||
} else {
|
||||
std::cerr << "Unsupported SD Node property '" << PropList[i]->getName()
|
||||
<< "' on ComplexPattern '" << R->getName() << "'!\n";
|
||||
exit(1);
|
||||
}
|
||||
}
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
Reference in New Issue
Block a user