[llvm] [NVPTX] Rewrite kernel signatures in param AS (PR #204192)
Akshay Deodhar via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 23 17:06:05 PDT 2026
================
@@ -6,133 +6,39 @@
//
//===----------------------------------------------------------------------===//
//
-//
-// Arguments to kernel and device functions are passed via param space,
-// which imposes certain restrictions:
+// Arguments to kernel functions are passed via param space, which imposes
+// certain restrictions:
// http://docs.nvidia.com/cuda/parallel-thread-execution/#state-spaces
//
// Kernel parameters are read-only and accessible only via ld.param
// instruction, directly or via a pointer.
//
-// Device function parameters are directly accessible via
-// ld.param/st.param, but taking the address of one returns a pointer
-// to a copy created in local space which *can't* be used with
-// ld.param/st.param.
-//
// Copying a byval struct into local memory in IR allows us to enforce
// the param space restrictions, gives the rest of IR a pointer w/o
// param space restrictions, and gives us an opportunity to eliminate
// the copy.
//
-// Pointer arguments to kernel functions need more work to be lowered:
----------------
akshayrdeodhar wrote:
This is a general comment cleanup, no directly related to the implementation change, correct?
https://github.com/llvm/llvm-project/pull/204192
More information about the llvm-commits
mailing list