[clang] [Clang] Refactor diagnostics for SME builtins. (PR #78258)

Matthew Devereau via cfe-commits cfe-commits at lists.llvm.org
Thu Jan 18 09:44:43 PST 2024


================
@@ -136,10 +136,10 @@ defm SVWRITE_ZA128 : ZAWrite<"za128", "csilUcUsUiUlhbfd", "aarch64_sme_writeq",
 
 let TargetGuard = "sme" in {
   def SVZERO_MASK_ZA : SInst<"svzero_mask_za", "vi", "", MergeNone, "aarch64_sme_zero",
-                             [IsOverloadNone, IsStreamingCompatible, IsSharedZA],
+                             [IsOverloadNone, IsStreamingCompatible, IsInOutZA],
                              [ImmCheck<0, ImmCheck0_255>]>;
   def SVZERO_ZA      : SInst<"svzero_za", "v", "", MergeNone, "aarch64_sme_zero",
-                             [IsOverloadNone, IsStreamingCompatible, IsSharedZA]>;
+                             [IsOverloadNone, IsStreamingCompatible, IsOutZA]>;
----------------
MDevereau wrote:

I'm a bit confused about this change. `IsOutZA` seems to make sense since the instruction creates a new zeroed ZA state, but doesn't this also mean the old state is input and destroyed?

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


More information about the cfe-commits mailing list