[clang] [Clang][SME] Detect always_inline used with mismatched streaming attributes (PR #77936)
Matthew Devereau via cfe-commits
cfe-commits at lists.llvm.org
Mon Jan 15 03:46:32 PST 2024
================
@@ -0,0 +1,12 @@
+// RUN: %clang --target=aarch64-none-linux-gnu -march=armv9-a+sme -O3 -S -Xclang -verify %s
+
+// Conflicting attributes when using always_inline
+__attribute__((always_inline)) __arm_locally_streaming
+int inlined_fn_local(void) {
+ return 42;
+}
----------------
MDevereau wrote:
Do these tests have to return an int? 42 looks like it could possibly be a significant magic number in some way. I think the tests can probably be combined into a single file like `clang/test/CodeGen/aarch64-sme-func-attrs-inline.c` too?
https://github.com/llvm/llvm-project/pull/77936
More information about the cfe-commits
mailing list