File tree Expand file tree Collapse file tree 2 files changed +8
-9
lines changed Expand file tree Collapse file tree 2 files changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -1564,6 +1564,10 @@ class AsmParser {
1564
1564
// method shall be called for all operands as opposed to only those
1565
1565
// that have their own specified custom parsers.
1566
1566
bit CallCustomParserForAllOperands = false;
1567
+
1568
+ // PreferSmallerInstructions - Should the assembly matcher prefer the smaller
1569
+ // instructions.
1570
+ bit PreferSmallerInstructions = false;
1567
1571
}
1568
1572
def DefaultAsmParser : AsmParser;
1569
1573
@@ -1743,11 +1747,6 @@ class Target {
1743
1747
// setting hasExtraDefRegAllocReq and hasExtraSrcRegAllocReq to 1
1744
1748
// for all opcodes if this flag is set to 0.
1745
1749
int AllowRegisterRenaming = 0;
1746
-
1747
- // PreferSmallerInstructions - Should the assembly matcher prefer the smaller
1748
- // instructions. 1 if the instruction set should sort by size,
1749
- // 0 otherwise.
1750
- bit PreferSmallerInstructions = 0;
1751
1750
}
1752
1751
1753
1752
//===----------------------------------------------------------------------===//
Original file line number Diff line number Diff line change @@ -332,10 +332,6 @@ bool CodeGenTarget::getAllowRegisterRenaming() const {
332
332
return TargetRec->getValueAsInt (" AllowRegisterRenaming" );
333
333
}
334
334
335
- bool CodeGenTarget::getPreferSmallerInstructions () const {
336
- return TargetRec->getValueAsBit (" PreferSmallerInstructions" );
337
- }
338
-
339
335
// / getAsmParser - Return the AssemblyParser definition for this target.
340
336
// /
341
337
Record *CodeGenTarget::getAsmParser () const {
@@ -346,6 +342,10 @@ Record *CodeGenTarget::getAsmParser() const {
346
342
return LI[AsmParserNum];
347
343
}
348
344
345
+ bool CodeGenTarget::getPreferSmallerInstructions () const {
346
+ return getAsmParser ()->getValueAsBit (" PreferSmallerInstructions" );
347
+ }
348
+
349
349
// / getAsmParserVariant - Return the AssemblyParserVariant definition for
350
350
// / this target.
351
351
// /
You can’t perform that action at this time.
0 commit comments