[llvm] [NVPTX] Basic support for "grid_constant" (PR #96125)

Justin Lebar via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 24 13:38:24 PDT 2024


================
@@ -1596,6 +1596,11 @@ def int_nvvm_ptr_gen_to_param: Intrinsic<[llvm_anyptr_ty],
                                    [IntrNoMem, IntrSpeculatable, IntrNoCallback],
                                    "llvm.nvvm.ptr.gen.to.param">;
 
+// sm70+, PTX7.7+
+def int_nvvm_ptr_param_to_gen: DefaultAttrsIntrinsic<[llvm_anyptr_ty],
+                                     [llvm_anyptr_ty],
+                                   [IntrNoMem, IntrSpeculatable, IntrNoCallback]>;
----------------
jlebar wrote:

Ah, it's nbd but yeah I'd pay the one-line cost to be uniform (and I'd certainly review a patch that removes these unnecessary strings everywhere).

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


More information about the llvm-commits mailing list