[llvm] [NVTPX] Copy kernel arguments as byte array (PR #110356)

Michael Kuron via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 7 13:04:31 PDT 2024


================
@@ -33,6 +33,15 @@ entry:
   ret void
 }
 
+; Check that nvptx-lower-args copies padding as the struct may have been a union
+; COMMON-LABEL: load_padding
+define void @load_padding(ptr nocapture readonly byval(%class.padded) %arg) {
+; PTX: ld.param.u64
+; PTX-NOT: ld.param.u8
+; PTX-NOT: ld.param.u32
----------------
mkuron wrote:

Latest commit adds a PTX check for the entire function.

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


More information about the llvm-commits mailing list