[clang] [Clang][AArch64] Extend diagnostics when warning non/streaming about … (PR #88380)

Sander de Smalen via cfe-commits cfe-commits at lists.llvm.org
Fri Apr 12 03:42:03 PDT 2024


================
@@ -3756,12 +3756,11 @@ def err_sme_definition_using_za_in_non_sme_target : Error<
 def err_sme_definition_using_zt0_in_non_sme2_target : Error<
   "function using ZT0 state requires 'sme2'">;
 def warn_sme_streaming_pass_return_vl_to_non_streaming : Warning<
-  "passing a VL-dependent argument to/from a function that has a different"
-  " streaming-mode. The streaming and non-streaming vector lengths may be"
-  " different">,
+  "%select{returning|passing}0 a VL-dependent argument %select{from|to}0 a function with a different"
+  " streaming-mode is undefined behaviour if the streaming and non-streaming vector lengths are different at runtime">,
----------------
sdesmalen-arm wrote:

nit:
```suggestion
  " streaming-mode is undefined behaviour when the streaming and non-streaming vector lengths are different at runtime">,
```

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


More information about the cfe-commits mailing list