@@ -1161,11 +1161,9 @@ void SVEEmitter::createIntrinsic(
1161
1161
uint64_t Merge = R->getValueAsInt (" Merge" );
1162
1162
StringRef MergeSuffix = R->getValueAsString (" MergeSuffix" );
1163
1163
uint64_t MemEltType = R->getValueAsInt (" MemEltType" );
1164
- std::vector<Record*> FlagsList = R->getValueAsListOfDefs (" Flags" );
1165
- std::vector<Record*> ImmCheckList = R->getValueAsListOfDefs (" ImmChecks" );
1166
1164
1167
1165
int64_t Flags = 0 ;
1168
- for (auto FlagRec : FlagsList )
1166
+ for (const Record * FlagRec : R-> getValueAsListOfConstDefs ( " Flags " ) )
1169
1167
Flags |= FlagRec->getValueAsInt (" Value" );
1170
1168
1171
1169
// Create a dummy TypeSpec for non-overloaded builtins.
@@ -1195,10 +1193,10 @@ void SVEEmitter::createIntrinsic(
1195
1193
for (auto TS : TypeSpecs) {
1196
1194
// Collate a list of range/option checks for the immediates.
1197
1195
SmallVector<ImmCheck, 2 > ImmChecks;
1198
- for (auto *R : ImmCheckList ) {
1199
- int64_t ArgIdx = R ->getValueAsInt (" ImmArgIdx" );
1200
- int64_t EltSizeArgIdx = R ->getValueAsInt (" TypeContextArgIdx" );
1201
- int64_t Kind = R ->getValueAsDef (" Kind" )->getValueAsInt (" Value" );
1196
+ for (const Record *ImmR : R-> getValueAsListOfConstDefs ( " ImmChecks " ) ) {
1197
+ int64_t ArgIdx = ImmR ->getValueAsInt (" ImmArgIdx" );
1198
+ int64_t EltSizeArgIdx = ImmR ->getValueAsInt (" TypeContextArgIdx" );
1199
+ int64_t Kind = ImmR ->getValueAsDef (" Kind" )->getValueAsInt (" Value" );
1202
1200
assert (ArgIdx >= 0 && Kind >= 0 &&
1203
1201
" ImmArgIdx and Kind must be nonnegative" );
1204
1202
0 commit comments