[clang] [Clang][TableGen] Change NeonEmitter to use const Record * (PR #110597)
Kazu Hirata via cfe-commits
cfe-commits at lists.llvm.org
Tue Oct 1 09:17:20 PDT 2024
================
@@ -1195,10 +1193,10 @@ void SVEEmitter::createIntrinsic(
for (auto TS : TypeSpecs) {
// Collate a list of range/option checks for the immediates.
SmallVector<ImmCheck, 2> ImmChecks;
- for (auto *R : ImmCheckList) {
- int64_t ArgIdx = R->getValueAsInt("ImmArgIdx");
- int64_t EltSizeArgIdx = R->getValueAsInt("TypeContextArgIdx");
- int64_t Kind = R->getValueAsDef("Kind")->getValueAsInt("Value");
+ for (auto ImmR : R->getValueAsListOfConstDefs("ImmChecks")) {
----------------
kazutakahirata wrote:
Likewise:
```suggestion
for (const Record *ImmR : R->getValueAsListOfConstDefs("ImmChecks")) {
```
https://github.com/llvm/llvm-project/pull/110597
More information about the cfe-commits
mailing list