[clang] [llvm] [Clang][SME] Detect always_inline used with mismatched streaming attributes (PR #77936)

Sam Tebbs via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 21 07:43:49 PST 2024


================
@@ -0,0 +1,47 @@
+// RUN: %clang_cc1 -triple aarch64-none-linux-gnu -S -target-feature +sme -verify -DTEST_NONE -x c %s
+// RUN: %clang_cc1 -triple aarch64-none-linux-gnu -S -target-feature +sme -verify -DTEST_COMPATIBLE -x c %s
+// RUN: %clang_cc1 -triple aarch64-none-linux-gnu -S -target-feature +sme -verify -DTEST_STREAMING -x c %s
+// RUN: %clang_cc1 -triple aarch64-none-linux-gnu -S -target-feature +sme -verify -DTEST_LOCALLY -x c %s
----------------
SamTebbs33 wrote:

Unfortunately the part of the code that checks this isn't run under -fsyntax-only. It's the same for the existing target feature checks with always_inline: https://godbolt.org/z/frrbeah7d

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


More information about the llvm-commits mailing list