@@ -955,11 +955,11 @@ void AsmWriterEmitter::EmitPrintAliasInstruction(raw_ostream &O) {
955
955
if (R->isSubClassOf (" RegisterOperand" ))
956
956
R = R->getValueAsDef (" RegClass" );
957
957
IAP.addCond (std::string (
958
- formatv (" AliasPatternCond::K_RegClass, {0 }::{1 }RegClassID" ,
958
+ formatv (" AliasPatternCond::K_RegClass, {}::{}RegClassID" ,
959
959
Namespace, R->getName ())));
960
960
} else {
961
- IAP.addCond (std::string (formatv (
962
- " AliasPatternCond::K_TiedReg, {0} " , IAP.getOpIndex (ROName))));
961
+ IAP.addCond (std::string (formatv (" AliasPatternCond::K_TiedReg, {} " ,
962
+ IAP.getOpIndex (ROName))));
963
963
}
964
964
} else {
965
965
// Assume all printable operands are desired for now. This can be
@@ -977,7 +977,7 @@ void AsmWriterEmitter::EmitPrintAliasInstruction(raw_ostream &O) {
977
977
break ; // No conditions on this operand at all
978
978
}
979
979
IAP.addCond (
980
- std::string (formatv (" AliasPatternCond::K_Custom, {0 }" , Entry)));
980
+ std::string (formatv (" AliasPatternCond::K_Custom, {}" , Entry)));
981
981
}
982
982
break ;
983
983
}
@@ -990,19 +990,19 @@ void AsmWriterEmitter::EmitPrintAliasInstruction(raw_ostream &O) {
990
990
PrintFatalError (" Matching an alias with an immediate out of the "
991
991
" range of int32_t is not supported" );
992
992
IAP.addCond (std::string (
993
- formatv (" AliasPatternCond::K_Imm, uint32_t({0 })" , Imm32)));
993
+ formatv (" AliasPatternCond::K_Imm, uint32_t({})" , Imm32)));
994
994
break ;
995
995
}
996
996
case CodeGenInstAlias::ResultOperand::K_Reg:
997
997
if (!CGA.ResultOperands [i].getRegister ()) {
998
- IAP.addCond (std::string (formatv (
999
- " AliasPatternCond::K_Reg, {0 }::NoRegister" , Namespace)));
998
+ IAP.addCond (std::string (
999
+ formatv ( " AliasPatternCond::K_Reg, {}::NoRegister" , Namespace)));
1000
1000
break ;
1001
1001
}
1002
1002
1003
1003
StringRef Reg = CGA.ResultOperands [i].getRegister ()->getName ();
1004
1004
IAP.addCond (std::string (
1005
- formatv (" AliasPatternCond::K_Reg, {0 }::{1 }" , Namespace, Reg)));
1005
+ formatv (" AliasPatternCond::K_Reg, {}::{}" , Namespace, Reg)));
1006
1006
break ;
1007
1007
}
1008
1008
@@ -1056,7 +1056,7 @@ void AsmWriterEmitter::EmitPrintAliasInstruction(raw_ostream &O) {
1056
1056
PrintFatalError (R->getLoc (), " Invalid AssemblerCondDag!" );
1057
1057
1058
1058
IAP.addCond (std::string (formatv (
1059
- " AliasPatternCond::K_{0}{1 }Feature, {2 }::{3 }" , IsOr ? " Or" : " " ,
1059
+ " AliasPatternCond::K_{}{ }Feature, {}::{}" , IsOr ? " Or" : " " ,
1060
1060
IsNeg ? " Neg" : " " , Namespace, Arg->getAsString ())));
1061
1061
}
1062
1062
// If an AssemblerPredicate with ors is used, note end of list should
@@ -1127,13 +1127,13 @@ void AsmWriterEmitter::EmitPrintAliasInstruction(raw_ostream &O) {
1127
1127
unsigned PatternStart = PatternCount;
1128
1128
1129
1129
// Insert the pattern start and opcode in the pattern list for debugging.
1130
- PatternO << formatv (" // {0 } - {1 }\n " , It->first , PatternStart);
1130
+ PatternO << formatv (" // {} - {}\n " , It->first , PatternStart);
1131
1131
1132
1132
for (IAPrinter *IAP : UniqueIAPs) {
1133
1133
// Start each condition list with a comment of the resulting pattern that
1134
1134
// we're trying to match.
1135
1135
unsigned CondStart = CondCount;
1136
- CondO << formatv (" // {0 } - {1 }\n " , IAP->getResult (), CondStart);
1136
+ CondO << formatv (" // {} - {}\n " , IAP->getResult (), CondStart);
1137
1137
for (const auto &Cond : IAP->getConds ())
1138
1138
CondO << " {" << Cond << " },\n " ;
1139
1139
CondCount += IAP->getCondCount ();
@@ -1151,12 +1151,12 @@ void AsmWriterEmitter::EmitPrintAliasInstruction(raw_ostream &O) {
1151
1151
}
1152
1152
unsigned AsmStrOffset = Insertion.first ->second ;
1153
1153
1154
- PatternO << formatv (" {{{0 }, {1 }, {2 }, {3 } },\n " , AsmStrOffset,
1155
- CondStart, IAP->getNumMIOps (), IAP->getCondCount ());
1154
+ PatternO << formatv (" {{{}, {}, {}, {} },\n " , AsmStrOffset, CondStart ,
1155
+ IAP->getNumMIOps (), IAP->getCondCount ());
1156
1156
++PatternCount;
1157
1157
}
1158
1158
1159
- OpcodeO << formatv (" {{{0 }, {1 }, {2 } },\n " , It->first , PatternStart,
1159
+ OpcodeO << formatv (" {{{}, {}, {} },\n " , It->first , PatternStart,
1160
1160
PatternCount - PatternStart);
1161
1161
}
1162
1162
0 commit comments