[llvm] [NVPTX] Annotate CUDA kernel pointer arguments with .ptr .space .align attributes. (PR #79646)
Artem Belevich via llvm-commits
llvm-commits at lists.llvm.org
Mon May 20 10:52:04 PDT 2024
================
@@ -0,0 +1,36 @@
+; RUN: llc < %s -march=nvptx64 -mcpu=sm_72 2>&1 | FileCheck %s
+; RUN: %if ptxas %{ llc < %s -march=nvptx64 -mcpu=sm_72 | %ptxas-verify %}
+
+%struct.Large = type { [16 x double] }
+
+; CHECK-LABEL: func_align
+; CHECK: .param .u64 .ptr .global .align 16 func_align_param_0,
+; CHECK: .param .u64 .ptr .global func_align_param_1,
+; CHECK: .param .u32 .ptr .global func_align_param_2
----------------
Artem-B wrote:
This is still wrong. `addrspace(3)` is *not* a global pointer. It's a shared AS pointer.
Speaking of which, please also add a test for explicitly annotated const and global AS pointers.
https://github.com/llvm/llvm-project/pull/79646
More information about the llvm-commits
mailing list