================ @@ -11285,6 +11285,21 @@ Value *CodeGenFunction::EmitAArch64SMEBuiltinExpr(unsigned BuiltinID, if (Builtin->LLVMIntrinsic == 0) return nullptr; + if (BuiltinID == SME::BI__builtin_sme___arm_in_streaming_mode) { + // If we already know the streaming mode, don't bother with the intrinsic + // and emit a constant instead + auto FD = cast<FunctionDecl>(CurFuncDecl); ---------------- sdesmalen-arm wrote:
```suggestion const auto *FD = cast<FunctionDecl>(CurFuncDecl); ``` https://github.com/llvm/llvm-project/pull/120265 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits