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

Michael Kuron via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 7 11:12:34 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:

I guess I could just remove the negative checks here. The struct has size 64, so if there is an `ld.param.u64`, there can't be any of the others.

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


More information about the llvm-commits mailing list