[clang] [llvm] [Clang][AArch64] Add customisable immediate range checking to NEON (PR #100278)
via cfe-commits
cfe-commits at lists.llvm.org
Mon Sep 2 08:45:23 PDT 2024
================
@@ -1210,18 +1196,19 @@ void SVEEmitter::createIntrinsic(
// Collate a list of range/option checks for the immediates.
SmallVector<ImmCheck, 2> ImmChecks;
for (auto *R : ImmCheckList) {
- int64_t Arg = R->getValueAsInt("Arg");
- int64_t EltSizeArg = R->getValueAsInt("EltSizeArg");
+ int64_t ArgIdx = R->getValueAsInt("ImmArgIdx");
+ int64_t EltSizeArgIdx = R->getValueAsInt("TypeContextArgIdx");
int64_t Kind = R->getValueAsDef("Kind")->getValueAsInt("Value");
- assert(Arg >= 0 && Kind >= 0 && "Arg and Kind must be nonnegative");
+ assert(ArgIdx >= 0 && Kind >= 0 &&
+ "ImmArgIdx and Kind must be nonnegative");
unsigned ElementSizeInBits = 0;
char Mod;
unsigned NumVectors;
- std::tie(Mod, NumVectors) = getProtoModifier(Proto, EltSizeArg + 1);
- if (EltSizeArg >= 0)
+ std::tie(Mod, NumVectors) = getProtoModifier(Proto, EltSizeArgIdx + 1);
----------------
SpencerAbson wrote:
Thanks, done.
https://github.com/llvm/llvm-project/pull/100278
More information about the cfe-commits
mailing list