[clang] [Clang][AArch64] Expose compatible SVE intrinsics with only +sme (PR #95787)

Sander de Smalen via cfe-commits cfe-commits at lists.llvm.org
Wed Jun 19 06:17:46 PDT 2024


================
@@ -1781,7 +1781,12 @@ void SVEEmitter::createStreamingAttrs(raw_ostream &OS, ACLEKind Kind) {
   uint64_t VerifyRuntimeMode = getEnumValueForFlag("VerifyRuntimeMode");
   uint64_t IsStreamingCompatibleFlag =
       getEnumValueForFlag("IsStreamingCompatible");
+
   for (auto &Def : Defs) {
+    assert((((Def->getGuard().contains("sve") +
+              Def->getGuard().contains("sme")) <= 1) ||
+            Def->isFlagSet(VerifyRuntimeMode)) &&
----------------
sdesmalen-arm wrote:

Yes that makes sense. Done.

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


More information about the cfe-commits mailing list