@@ -35,12 +35,12 @@ class CallingConvEmitter {
3535public:
3636 explicit CallingConvEmitter (const RecordKeeper &R) : Records(R) {}
3737
38- void run (raw_ostream &o );
38+ void run (raw_ostream &O );
3939
4040private:
41- void EmitCallingConv (const Record *CC, raw_ostream &O);
42- void EmitAction (const Record *Action, indent Indent, raw_ostream &O);
43- void EmitArgRegisterLists (raw_ostream &O);
41+ void emitCallingConv (const Record *CC, raw_ostream &O);
42+ void emitAction (const Record *Action, indent Indent, raw_ostream &O);
43+ void emitArgRegisterLists (raw_ostream &O);
4444};
4545} // End anonymous namespace
4646
@@ -75,16 +75,16 @@ void CallingConvEmitter::run(raw_ostream &O) {
7575 Records.getTimer ().startTimer (" Emit full descriptions" );
7676 for (const Record *CC : CCs) {
7777 if (!CC->getValueAsBit (" Custom" )) {
78- EmitCallingConv (CC, O);
78+ emitCallingConv (CC, O);
7979 }
8080 }
8181
82- EmitArgRegisterLists (O);
82+ emitArgRegisterLists (O);
8383
8484 O << " \n #endif // CC_REGISTER_LIST\n " ;
8585}
8686
87- void CallingConvEmitter::EmitCallingConv (const Record *CC, raw_ostream &O) {
87+ void CallingConvEmitter::emitCallingConv (const Record *CC, raw_ostream &O) {
8888 const ListInit *CCActions = CC->getValueAsListInit (" Actions" );
8989 Counter = 0 ;
9090
@@ -107,8 +107,8 @@ void CallingConvEmitter::EmitCallingConv(const Record *CC, raw_ostream &O) {
107107 << std::string (Pad, ' ' ) << " MVT LocVT, CCValAssign::LocInfo LocInfo,\n "
108108 << std::string (Pad, ' ' ) << " ISD::ArgFlagsTy ArgFlags, CCState &State) {\n " ;
109109 // Emit all of the actions, in order.
110- for (unsigned i = 0 , e = CCActions->size (); i != e ; ++i ) {
111- const Record *Action = CCActions->getElementAsRecord (i );
110+ for (unsigned I = 0 , E = CCActions->size (); I != E ; ++I ) {
111+ const Record *Action = CCActions->getElementAsRecord (I );
112112 SwiftAction =
113113 llvm::any_of (Action->getSuperClasses (),
114114 [](const std::pair<const Record *, SMRange> &Class) {
@@ -117,23 +117,23 @@ void CallingConvEmitter::EmitCallingConv(const Record *CC, raw_ostream &O) {
117117 });
118118
119119 O << " \n " ;
120- EmitAction (Action, indent (2 ), O);
120+ emitAction (Action, indent (2 ), O);
121121 }
122122
123123 O << " \n return true; // CC didn't match.\n " ;
124124 O << " }\n " ;
125125}
126126
127- void CallingConvEmitter::EmitAction (const Record *Action, indent Indent,
127+ void CallingConvEmitter::emitAction (const Record *Action, indent Indent,
128128 raw_ostream &O) {
129129 if (Action->isSubClassOf (" CCPredicateAction" )) {
130130 O << Indent << " if (" ;
131131
132132 if (Action->isSubClassOf (" CCIfType" )) {
133133 const ListInit *VTs = Action->getValueAsListInit (" VTs" );
134- for (unsigned i = 0 , e = VTs->size (); i != e ; ++i ) {
135- const Record *VT = VTs->getElementAsRecord (i );
136- if (i != 0 )
134+ for (unsigned I = 0 , E = VTs->size (); I != E ; ++I ) {
135+ const Record *VT = VTs->getElementAsRecord (I );
136+ if (I != 0 )
137137 O << " ||\n " << Indent;
138138 O << " LocVT == " << getEnumName (getValueType (VT));
139139 }
@@ -146,7 +146,7 @@ void CallingConvEmitter::EmitAction(const Record *Action, indent Indent,
146146 }
147147
148148 O << " ) {\n " ;
149- EmitAction (Action->getValueAsDef (" SubAction" ), Indent + 2 , O);
149+ emitAction (Action->getValueAsDef (" SubAction" ), Indent + 2 , O);
150150 O << Indent << " }\n " ;
151151 } else {
152152 if (Action->isSubClassOf (" CCDelegateTo" )) {
@@ -171,8 +171,8 @@ void CallingConvEmitter::EmitAction(const Record *Action, indent Indent,
171171 << " [] = {\n " ;
172172 O << Indent << " " ;
173173 ListSeparator LS;
174- for (unsigned i = 0 , e = RegList->size (); i != e ; ++i ) {
175- std::string Name = getQualifiedName (RegList->getElementAsRecord (i ));
174+ for (unsigned I = 0 , E = RegList->size (); I != E ; ++I ) {
175+ std::string Name = getQualifiedName (RegList->getElementAsRecord (I ));
176176 if (SwiftAction)
177177 AssignedSwiftRegsMap[CurrentAction].insert (Name);
178178 else
@@ -230,16 +230,16 @@ void CallingConvEmitter::EmitAction(const Record *Action, indent Indent,
230230 << " [] = {\n " ;
231231 O << Indent << " " ;
232232 ListSeparator LS;
233- for (unsigned i = 0 , e = RegList->size (); i != e ; ++i )
234- O << LS << getQualifiedName (RegList->getElementAsRecord (i ));
233+ for (unsigned I = 0 , E = RegList->size (); I != E ; ++I )
234+ O << LS << getQualifiedName (RegList->getElementAsRecord (I ));
235235 O << " \n " << Indent << " };\n " ;
236236
237237 O << Indent << " static const MCPhysReg RegList" << ShadowRegListNumber
238238 << " [] = {\n " ;
239239 O << Indent << " " ;
240240 ListSeparator LSS;
241- for (unsigned i = 0 , e = ShadowRegList->size (); i != e ; ++i )
242- O << LSS << getQualifiedName (ShadowRegList->getElementAsRecord (i ));
241+ for (unsigned I = 0 , E = ShadowRegList->size (); I != E ; ++I )
242+ O << LSS << getQualifiedName (ShadowRegList->getElementAsRecord (I ));
243243 O << " \n " << Indent << " };\n " ;
244244
245245 O << Indent << " if (MCRegister Reg = State.AllocateReg(RegList"
@@ -287,8 +287,8 @@ void CallingConvEmitter::EmitAction(const Record *Action, indent Indent,
287287 << ShadowRegListNumber << " [] = {\n " ;
288288 O << Indent << " " ;
289289 ListSeparator LS;
290- for (unsigned i = 0 , e = ShadowRegList->size (); i != e ; ++i )
291- O << LS << getQualifiedName (ShadowRegList->getElementAsRecord (i ));
290+ for (unsigned I = 0 , E = ShadowRegList->size (); I != E ; ++I )
291+ O << LS << getQualifiedName (ShadowRegList->getElementAsRecord (I ));
292292 O << " \n " << Indent << " };\n " ;
293293
294294 O << Indent << " int64_t Offset" << ++Counter << " = State.AllocateStack("
@@ -357,7 +357,7 @@ void CallingConvEmitter::EmitAction(const Record *Action, indent Indent,
357357 }
358358}
359359
360- void CallingConvEmitter::EmitArgRegisterLists (raw_ostream &O) {
360+ void CallingConvEmitter::emitArgRegisterLists (raw_ostream &O) {
361361 // Transitively merge all delegated CCs into AssignedRegsMap.
362362 using EntryTy = std::pair<std::string, std::set<std::string>>;
363363 bool Redo;
0 commit comments