@@ -167,8 +167,7 @@ struct ClassInfo {
167
167
RegisterClass0,
168
168
169
169
// / The (first) register class by hwmode, subsequent register classes by
170
- // / hwmode are
171
- // / RegisterClassByHwMode0+1, and so on.
170
+ // / hwmode are RegisterClassByHwMode0+1, and so on.
172
171
RegisterClassByHwMode0 = 1 << 12 ,
173
172
174
173
// / The (first) user defined class, subsequent user defined classes are
@@ -178,7 +177,7 @@ struct ClassInfo {
178
177
179
178
// / Kind - The class kind, which is either a predefined kind, or (UserClass0 +
180
179
// / N) for the Nth user defined class.
181
- unsigned Kind;
180
+ unsigned Kind = 0 ;
182
181
183
182
// / SuperClasses - The super classes of this class. Note that for simplicities
184
183
// / sake user operands only record their immediate super class, while register
@@ -220,7 +219,7 @@ struct ClassInfo {
220
219
std::string DiagnosticString;
221
220
222
221
// / Is this operand optional and not always required.
223
- bool IsOptional;
222
+ bool IsOptional = false ;
224
223
225
224
// / DefaultMethod - The name of the method that returns the default operand
226
225
// / for optional operand
@@ -1394,15 +1393,8 @@ void AsmMatcherInfo::buildRegisterClasses(
1394
1393
CI->ClassName = " RegByHwMode_" + ClassByHwMode->getName ().str ();
1395
1394
CI->Name = " MCK_" + CI->ClassName ;
1396
1395
CI->ValueName = ClassByHwMode->getName ();
1397
- CI->PredicateMethod = " " ; // unused
1398
1396
CI->RenderMethod = " addRegOperands" ;
1399
- // CI->Registers = RS;
1400
- // FIXME: diagnostic type.
1401
- CI->DiagnosticType = " " ;
1402
- CI->IsOptional = false ;
1403
- CI->DefaultMethod = " " ; // unused
1404
- // RegisterSetClasses.try_emplace(RS, CI);
1405
-
1397
+ // FIXME: Set diagnostic type.
1406
1398
++RegClassByHwModeIndex;
1407
1399
1408
1400
assert (CI->isRegisterClassByHwMode ());
0 commit comments