[clang] [AArch64][SME] Warn when using a streaming builtin from a non-streaming function (PR #74064)

Sam Tebbs via cfe-commits cfe-commits at lists.llvm.org
Fri Dec 8 03:39:35 PST 2023


================
@@ -18,7 +18,7 @@
 // CHECK-CXX-NEXT:    tail call void @llvm.aarch64.sme.zero(i32 0)
 // CHECK-CXX-NEXT:    ret void
 //
-void test_svzero_mask_za() {
+__arm_new_za void test_svzero_mask_za() {
----------------
SamTebbs33 wrote:

I did try `__arm_shared_za` but got 

> '__arm_shared_za' only applies to non-K&R-style functions

and

> error: '__arm_shared_za' only applies to function types; type here is 'void ()'

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


More information about the cfe-commits mailing list