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

Paul Walker via cfe-commits cfe-commits at lists.llvm.org
Thu Jun 20 08:11:45 PDT 2024


================
@@ -1781,7 +1781,13 @@ void SVEEmitter::createStreamingAttrs(raw_ostream &OS, ACLEKind Kind) {
   uint64_t VerifyRuntimeMode = getEnumValueForFlag("VerifyRuntimeMode");
   uint64_t IsStreamingCompatibleFlag =
       getEnumValueForFlag("IsStreamingCompatible");
+
   for (auto &Def : Defs) {
+    if (!Def->isFlagSet(VerifyRuntimeMode) &&
+        (Def->getGuard().contains("sve") + Def->getGuard().contains("sme")) ==
+            2)
----------------
paulwalker-arm wrote:

Surely this is just
```
if (!Def->isFlagSet(VerifyRuntimeMode) && Def->getGuard().contains("sve") && Def->getGuard().contains("sme"))
```
isn't it?

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


More information about the cfe-commits mailing list