mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-05 13:26:55 +00:00
add fields to the .td files unconditionally, simplifying tblgen a bit.
Switch the ARM backend to use 'let' instead of 'set' with this change. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@119120 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -230,9 +230,9 @@ void CodeEmitterGen::run(raw_ostream &o) {
|
||||
}
|
||||
}
|
||||
|
||||
if (R->getValue("PostEncoderMethod"))
|
||||
Case += " Value = " +
|
||||
R->getValueAsString("PostEncoderMethod") + "(MI, Value);\n";
|
||||
std::string PostEmitter = R->getValueAsString("PostEncoderMethod");
|
||||
if (!PostEmitter.empty())
|
||||
Case += " Value = " + PostEmitter + "(MI, Value);\n";
|
||||
|
||||
std::vector<std::string> &InstList = CaseMap[Case];
|
||||
InstList.push_back(InstName);
|
||||
|
@@ -71,8 +71,7 @@ CGIOperandList::CGIOperandList(Record *R) : TheDef(R) {
|
||||
if (Rec->isSubClassOf("Operand")) {
|
||||
PrintMethod = Rec->getValueAsString("PrintMethod");
|
||||
// If there is an explicit encoder method, use it.
|
||||
if (Rec->getValue("EncoderMethod"))
|
||||
EncoderMethod = Rec->getValueAsString("EncoderMethod");
|
||||
EncoderMethod = Rec->getValueAsString("EncoderMethod");
|
||||
MIOpInfo = Rec->getValueAsDag("MIOperandInfo");
|
||||
|
||||
// Verify that MIOpInfo has an 'ops' root value.
|
||||
|
Reference in New Issue
Block a user