[clang] [llvm] [Clang][AArch64] Add customisable immediate range checking to NEON (PR #100278)

Momchil Velikov via cfe-commits cfe-commits at lists.llvm.org
Mon Sep 2 03:36:52 PDT 2024


================
@@ -1541,8 +1528,9 @@ void SVEEmitter::createRangeChecks(raw_ostream &OS) {
 
     OS << "case SVE::BI__builtin_sve_" << Def->getMangledName() << ":\n";
     for (auto &Check : Def->getImmChecks())
-      OS << "ImmChecks.push_back(std::make_tuple(" << Check.getArg() << ", "
-         << Check.getKind() << ", " << Check.getElementSizeInBits() << "));\n";
+      OS << "ImmChecks.push_back(std::make_tuple(" << Check.getImmArgIdx()
----------------
momchil-velikov wrote:

Likewise, `.emplace_back(...`

https://github.com/llvm/llvm-project/pull/100278


More information about the cfe-commits mailing list