@@ -17,12 +17,12 @@ using namespace llvm;
17
17
18
18
void Matcher::anchor () {}
19
19
20
- void Matcher::dump () const { print (errs (), 0 ); }
20
+ void Matcher::dump () const { print (errs ()); }
21
21
22
- void Matcher::print (raw_ostream &OS, unsigned indent ) const {
23
- printImpl (OS, indent );
22
+ void Matcher::print (raw_ostream &OS, unsigned Indent ) const {
23
+ printImpl (OS, Indent );
24
24
if (Next)
25
- return Next->print (OS, indent );
25
+ return Next->print (OS, Indent );
26
26
}
27
27
28
28
void Matcher::printOne (raw_ostream &OS) const { printImpl (OS, 0 ); }
@@ -111,156 +111,156 @@ unsigned CheckPredicateMatcher::getOperandNo(unsigned i) const {
111
111
112
112
// printImpl methods.
113
113
114
- void ScopeMatcher::printImpl (raw_ostream &OS, unsigned indent ) const {
115
- OS.indent (indent ) << " Scope\n " ;
114
+ void ScopeMatcher::printImpl (raw_ostream &OS, unsigned Indent ) const {
115
+ OS.indent (Indent ) << " Scope\n " ;
116
116
for (const Matcher *C : Children) {
117
117
if (!C)
118
- OS.indent (indent + 1 ) << " NULL POINTER\n " ;
118
+ OS.indent (Indent + 1 ) << " NULL POINTER\n " ;
119
119
else
120
- C->print (OS, indent + 2 );
120
+ C->print (OS, Indent + 2 );
121
121
}
122
122
}
123
123
124
- void RecordMatcher::printImpl (raw_ostream &OS, unsigned indent ) const {
125
- OS.indent (indent ) << " Record\n " ;
124
+ void RecordMatcher::printImpl (raw_ostream &OS, unsigned Indent ) const {
125
+ OS.indent (Indent ) << " Record\n " ;
126
126
}
127
127
128
- void RecordChildMatcher::printImpl (raw_ostream &OS, unsigned indent ) const {
129
- OS.indent (indent ) << " RecordChild: " << ChildNo << ' \n ' ;
128
+ void RecordChildMatcher::printImpl (raw_ostream &OS, unsigned Indent ) const {
129
+ OS.indent (Indent ) << " RecordChild: " << ChildNo << ' \n ' ;
130
130
}
131
131
132
- void RecordMemRefMatcher::printImpl (raw_ostream &OS, unsigned indent ) const {
133
- OS.indent (indent ) << " RecordMemRef\n " ;
132
+ void RecordMemRefMatcher::printImpl (raw_ostream &OS, unsigned Indent ) const {
133
+ OS.indent (Indent ) << " RecordMemRef\n " ;
134
134
}
135
135
136
136
void CaptureGlueInputMatcher::printImpl (raw_ostream &OS,
137
- unsigned indent ) const {
138
- OS.indent (indent ) << " CaptureGlueInput\n " ;
137
+ unsigned Indent ) const {
138
+ OS.indent (Indent ) << " CaptureGlueInput\n " ;
139
139
}
140
140
141
- void MoveChildMatcher::printImpl (raw_ostream &OS, unsigned indent ) const {
142
- OS.indent (indent ) << " MoveChild " << ChildNo << ' \n ' ;
141
+ void MoveChildMatcher::printImpl (raw_ostream &OS, unsigned Indent ) const {
142
+ OS.indent (Indent ) << " MoveChild " << ChildNo << ' \n ' ;
143
143
}
144
144
145
145
void MoveSiblingMatcher::printImpl (raw_ostream &OS, unsigned Indent) const {
146
146
OS.indent (Indent) << " MoveSibling " << SiblingNo << ' \n ' ;
147
147
}
148
148
149
- void MoveParentMatcher::printImpl (raw_ostream &OS, unsigned indent ) const {
150
- OS.indent (indent ) << " MoveParent\n " ;
149
+ void MoveParentMatcher::printImpl (raw_ostream &OS, unsigned Indent ) const {
150
+ OS.indent (Indent ) << " MoveParent\n " ;
151
151
}
152
152
153
- void CheckSameMatcher::printImpl (raw_ostream &OS, unsigned indent ) const {
154
- OS.indent (indent ) << " CheckSame " << MatchNumber << ' \n ' ;
153
+ void CheckSameMatcher::printImpl (raw_ostream &OS, unsigned Indent ) const {
154
+ OS.indent (Indent ) << " CheckSame " << MatchNumber << ' \n ' ;
155
155
}
156
156
157
- void CheckChildSameMatcher::printImpl (raw_ostream &OS, unsigned indent ) const {
158
- OS.indent (indent ) << " CheckChild" << ChildNo << " Same\n " ;
157
+ void CheckChildSameMatcher::printImpl (raw_ostream &OS, unsigned Indent ) const {
158
+ OS.indent (Indent ) << " CheckChild" << ChildNo << " Same\n " ;
159
159
}
160
160
161
161
void CheckPatternPredicateMatcher::printImpl (raw_ostream &OS,
162
- unsigned indent ) const {
163
- OS.indent (indent ) << " CheckPatternPredicate " << Predicate << ' \n ' ;
162
+ unsigned Indent ) const {
163
+ OS.indent (Indent ) << " CheckPatternPredicate " << Predicate << ' \n ' ;
164
164
}
165
165
166
- void CheckPredicateMatcher::printImpl (raw_ostream &OS, unsigned indent ) const {
167
- OS.indent (indent ) << " CheckPredicate " << getPredicate ().getFnName () << ' \n ' ;
166
+ void CheckPredicateMatcher::printImpl (raw_ostream &OS, unsigned Indent ) const {
167
+ OS.indent (Indent ) << " CheckPredicate " << getPredicate ().getFnName () << ' \n ' ;
168
168
}
169
169
170
- void CheckOpcodeMatcher::printImpl (raw_ostream &OS, unsigned indent ) const {
171
- OS.indent (indent ) << " CheckOpcode " << Opcode.getEnumName () << ' \n ' ;
170
+ void CheckOpcodeMatcher::printImpl (raw_ostream &OS, unsigned Indent ) const {
171
+ OS.indent (Indent ) << " CheckOpcode " << Opcode.getEnumName () << ' \n ' ;
172
172
}
173
173
174
- void SwitchOpcodeMatcher::printImpl (raw_ostream &OS, unsigned indent ) const {
175
- OS.indent (indent ) << " SwitchOpcode: {\n " ;
174
+ void SwitchOpcodeMatcher::printImpl (raw_ostream &OS, unsigned Indent ) const {
175
+ OS.indent (Indent ) << " SwitchOpcode: {\n " ;
176
176
for (const auto &C : Cases) {
177
- OS.indent (indent ) << " case " << C.first ->getEnumName () << " :\n " ;
178
- C.second ->print (OS, indent + 2 );
177
+ OS.indent (Indent ) << " case " << C.first ->getEnumName () << " :\n " ;
178
+ C.second ->print (OS, Indent + 2 );
179
179
}
180
- OS.indent (indent ) << " }\n " ;
180
+ OS.indent (Indent ) << " }\n " ;
181
181
}
182
182
183
- void CheckTypeMatcher::printImpl (raw_ostream &OS, unsigned indent ) const {
184
- OS.indent (indent ) << " CheckType " << getEnumName (Type) << " , ResNo=" << ResNo
183
+ void CheckTypeMatcher::printImpl (raw_ostream &OS, unsigned Indent ) const {
184
+ OS.indent (Indent ) << " CheckType " << getEnumName (Type) << " , ResNo=" << ResNo
185
185
<< ' \n ' ;
186
186
}
187
187
188
- void SwitchTypeMatcher::printImpl (raw_ostream &OS, unsigned indent ) const {
189
- OS.indent (indent ) << " SwitchType: {\n " ;
188
+ void SwitchTypeMatcher::printImpl (raw_ostream &OS, unsigned Indent ) const {
189
+ OS.indent (Indent ) << " SwitchType: {\n " ;
190
190
for (const auto &C : Cases) {
191
- OS.indent (indent ) << " case " << getEnumName (C.first ) << " :\n " ;
192
- C.second ->print (OS, indent + 2 );
191
+ OS.indent (Indent ) << " case " << getEnumName (C.first ) << " :\n " ;
192
+ C.second ->print (OS, Indent + 2 );
193
193
}
194
- OS.indent (indent ) << " }\n " ;
194
+ OS.indent (Indent ) << " }\n " ;
195
195
}
196
196
197
- void CheckChildTypeMatcher::printImpl (raw_ostream &OS, unsigned indent ) const {
198
- OS.indent (indent ) << " CheckChildType " << ChildNo << " " << getEnumName (Type)
197
+ void CheckChildTypeMatcher::printImpl (raw_ostream &OS, unsigned Indent ) const {
198
+ OS.indent (Indent ) << " CheckChildType " << ChildNo << " " << getEnumName (Type)
199
199
<< ' \n ' ;
200
200
}
201
201
202
- void CheckIntegerMatcher::printImpl (raw_ostream &OS, unsigned indent ) const {
203
- OS.indent (indent ) << " CheckInteger " << Value << ' \n ' ;
202
+ void CheckIntegerMatcher::printImpl (raw_ostream &OS, unsigned Indent ) const {
203
+ OS.indent (Indent ) << " CheckInteger " << Value << ' \n ' ;
204
204
}
205
205
206
206
void CheckChildIntegerMatcher::printImpl (raw_ostream &OS,
207
- unsigned indent ) const {
208
- OS.indent (indent ) << " CheckChildInteger " << ChildNo << " " << Value << ' \n ' ;
207
+ unsigned Indent ) const {
208
+ OS.indent (Indent ) << " CheckChildInteger " << ChildNo << " " << Value << ' \n ' ;
209
209
}
210
210
211
- void CheckCondCodeMatcher::printImpl (raw_ostream &OS, unsigned indent ) const {
212
- OS.indent (indent ) << " CheckCondCode ISD::" << CondCodeName << ' \n ' ;
211
+ void CheckCondCodeMatcher::printImpl (raw_ostream &OS, unsigned Indent ) const {
212
+ OS.indent (Indent ) << " CheckCondCode ISD::" << CondCodeName << ' \n ' ;
213
213
}
214
214
215
215
void CheckChild2CondCodeMatcher::printImpl (raw_ostream &OS,
216
- unsigned indent ) const {
217
- OS.indent (indent ) << " CheckChild2CondCode ISD::" << CondCodeName << ' \n ' ;
216
+ unsigned Indent ) const {
217
+ OS.indent (Indent ) << " CheckChild2CondCode ISD::" << CondCodeName << ' \n ' ;
218
218
}
219
219
220
- void CheckValueTypeMatcher::printImpl (raw_ostream &OS, unsigned indent ) const {
221
- OS.indent (indent ) << " CheckValueType " << getEnumName (VT) << ' \n ' ;
220
+ void CheckValueTypeMatcher::printImpl (raw_ostream &OS, unsigned Indent ) const {
221
+ OS.indent (Indent ) << " CheckValueType " << getEnumName (VT) << ' \n ' ;
222
222
}
223
223
224
- void CheckComplexPatMatcher::printImpl (raw_ostream &OS, unsigned indent ) const {
225
- OS.indent (indent ) << " CheckComplexPat " << Pattern.getSelectFunc () << ' \n ' ;
224
+ void CheckComplexPatMatcher::printImpl (raw_ostream &OS, unsigned Indent ) const {
225
+ OS.indent (Indent ) << " CheckComplexPat " << Pattern.getSelectFunc () << ' \n ' ;
226
226
}
227
227
228
- void CheckAndImmMatcher::printImpl (raw_ostream &OS, unsigned indent ) const {
229
- OS.indent (indent ) << " CheckAndImm " << Value << ' \n ' ;
228
+ void CheckAndImmMatcher::printImpl (raw_ostream &OS, unsigned Indent ) const {
229
+ OS.indent (Indent ) << " CheckAndImm " << Value << ' \n ' ;
230
230
}
231
231
232
- void CheckOrImmMatcher::printImpl (raw_ostream &OS, unsigned indent ) const {
233
- OS.indent (indent ) << " CheckOrImm " << Value << ' \n ' ;
232
+ void CheckOrImmMatcher::printImpl (raw_ostream &OS, unsigned Indent ) const {
233
+ OS.indent (Indent ) << " CheckOrImm " << Value << ' \n ' ;
234
234
}
235
235
236
236
void CheckFoldableChainNodeMatcher::printImpl (raw_ostream &OS,
237
- unsigned indent ) const {
238
- OS.indent (indent ) << " CheckFoldableChainNode\n " ;
237
+ unsigned Indent ) const {
238
+ OS.indent (Indent ) << " CheckFoldableChainNode\n " ;
239
239
}
240
240
241
241
void CheckImmAllOnesVMatcher::printImpl (raw_ostream &OS,
242
- unsigned indent ) const {
243
- OS.indent (indent ) << " CheckAllOnesV\n " ;
242
+ unsigned Indent ) const {
243
+ OS.indent (Indent ) << " CheckAllOnesV\n " ;
244
244
}
245
245
246
246
void CheckImmAllZerosVMatcher::printImpl (raw_ostream &OS,
247
- unsigned indent ) const {
248
- OS.indent (indent ) << " CheckAllZerosV\n " ;
247
+ unsigned Indent ) const {
248
+ OS.indent (Indent ) << " CheckAllZerosV\n " ;
249
249
}
250
250
251
- void EmitIntegerMatcher::printImpl (raw_ostream &OS, unsigned indent ) const {
252
- OS.indent (indent ) << " EmitInteger " << Val << " VT=" << getEnumName (VT)
251
+ void EmitIntegerMatcher::printImpl (raw_ostream &OS, unsigned Indent ) const {
252
+ OS.indent (Indent ) << " EmitInteger " << Val << " VT=" << getEnumName (VT)
253
253
<< ' \n ' ;
254
254
}
255
255
256
256
void EmitStringIntegerMatcher::printImpl (raw_ostream &OS,
257
- unsigned indent ) const {
258
- OS.indent (indent ) << " EmitStringInteger " << Val << " VT=" << getEnumName (VT)
257
+ unsigned Indent ) const {
258
+ OS.indent (Indent ) << " EmitStringInteger " << Val << " VT=" << getEnumName (VT)
259
259
<< ' \n ' ;
260
260
}
261
261
262
- void EmitRegisterMatcher::printImpl (raw_ostream &OS, unsigned indent ) const {
263
- OS.indent (indent ) << " EmitRegister " ;
262
+ void EmitRegisterMatcher::printImpl (raw_ostream &OS, unsigned Indent ) const {
263
+ OS.indent (Indent ) << " EmitRegister " ;
264
264
if (Reg)
265
265
OS << Reg->getName ();
266
266
else
@@ -269,26 +269,26 @@ void EmitRegisterMatcher::printImpl(raw_ostream &OS, unsigned indent) const {
269
269
}
270
270
271
271
void EmitConvertToTargetMatcher::printImpl (raw_ostream &OS,
272
- unsigned indent ) const {
273
- OS.indent (indent ) << " EmitConvertToTarget " << Slot << ' \n ' ;
272
+ unsigned Indent ) const {
273
+ OS.indent (Indent ) << " EmitConvertToTarget " << Slot << ' \n ' ;
274
274
}
275
275
276
276
void EmitMergeInputChainsMatcher::printImpl (raw_ostream &OS,
277
- unsigned indent ) const {
278
- OS.indent (indent ) << " EmitMergeInputChains <todo: args>\n " ;
277
+ unsigned Indent ) const {
278
+ OS.indent (Indent ) << " EmitMergeInputChains <todo: args>\n " ;
279
279
}
280
280
281
- void EmitCopyToRegMatcher::printImpl (raw_ostream &OS, unsigned indent ) const {
282
- OS.indent (indent ) << " EmitCopyToReg <todo: args>\n " ;
281
+ void EmitCopyToRegMatcher::printImpl (raw_ostream &OS, unsigned Indent ) const {
282
+ OS.indent (Indent ) << " EmitCopyToReg <todo: args>\n " ;
283
283
}
284
284
285
- void EmitNodeXFormMatcher::printImpl (raw_ostream &OS, unsigned indent ) const {
286
- OS.indent (indent ) << " EmitNodeXForm " << NodeXForm->getName ()
285
+ void EmitNodeXFormMatcher::printImpl (raw_ostream &OS, unsigned Indent ) const {
286
+ OS.indent (Indent ) << " EmitNodeXForm " << NodeXForm->getName ()
287
287
<< " Slot=" << Slot << ' \n ' ;
288
288
}
289
289
290
- void EmitNodeMatcherCommon::printImpl (raw_ostream &OS, unsigned indent ) const {
291
- OS.indent (indent );
290
+ void EmitNodeMatcherCommon::printImpl (raw_ostream &OS, unsigned Indent ) const {
291
+ OS.indent (Indent );
292
292
OS << (isa<MorphNodeToMatcher>(this ) ? " MorphNodeTo: " : " EmitNode: " )
293
293
<< CGI.Namespace << " ::" << CGI.TheDef ->getName () << " : <todo flags> " ;
294
294
@@ -300,10 +300,10 @@ void EmitNodeMatcherCommon::printImpl(raw_ostream &OS, unsigned indent) const {
300
300
OS << " )\n " ;
301
301
}
302
302
303
- void CompleteMatchMatcher::printImpl (raw_ostream &OS, unsigned indent ) const {
304
- OS.indent (indent ) << " CompleteMatch <todo args>\n " ;
305
- OS.indent (indent ) << " Src = " << Pattern.getSrcPattern () << " \n " ;
306
- OS.indent (indent ) << " Dst = " << Pattern.getDstPattern () << " \n " ;
303
+ void CompleteMatchMatcher::printImpl (raw_ostream &OS, unsigned Indent ) const {
304
+ OS.indent (Indent ) << " CompleteMatch <todo args>\n " ;
305
+ OS.indent (Indent ) << " Src = " << Pattern.getSrcPattern () << " \n " ;
306
+ OS.indent (Indent ) << " Dst = " << Pattern.getDstPattern () << " \n " ;
307
307
}
308
308
309
309
bool CheckOpcodeMatcher::isEqualImpl (const Matcher *M) const {
0 commit comments