[clang] [clang][SME] Rework streaming mode always_inline errors/warnings (PR #174608)
Sander de Smalen via cfe-commits
cfe-commits at lists.llvm.org
Fri Jan 9 02:52:23 PST 2026
================
@@ -623,9 +623,13 @@ static bool checkArmStreamingBuiltin(Sema &S, CallExpr *TheCall,
BuiltinType == SemaARM::ArmStreaming)
S.Diag(TheCall->getBeginLoc(), diag::err_attribute_arm_sm_incompat_builtin)
<< TheCall->getSourceRange() << "streaming";
- else
+ else {
+ if (BuiltinType == SemaARM::ArmNonStreaming) {
----------------
sdesmalen-arm wrote:
An `ArmStreaming` builtin would require the parent function to be a `__arm_streaming` function, and `always_inline`'ing an `__arm_streaming` function into a non-streaming function currently always results in an error.
However, https://godbolt.org/z/G4d4fjvWe should probably be an error as well (as inlining it into a non-streaming function changes the behaviour of the instruction).
https://github.com/llvm/llvm-project/pull/174608
More information about the cfe-commits
mailing list