[clang] [llvm] [Clang] Add `__builtin_stack_address` (PR #148281)

via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 10 07:39:47 PDT 2025


================
@@ -0,0 +1,9 @@
+; RUN: not llc < %s -mtriple nvptx 2>&1 | FileCheck %s
+
+declare ptr @llvm.stackaddress.p0()
+
+define ptr @test() {
+; CHECK: STACKADDRESS is not supported on this target.
----------------
moorabbit wrote:

> check the error: prefix with location

Fixed. Thx. 
Let me know if you want me to update the test case with a valid debug location instead of `<unknown>:0:0`.
 
> Probably should also refer to the intrinsic by name, not the DAG operation.

Fixed. We report the name of the intrinsic now in the error message.


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


More information about the llvm-commits mailing list