[Mlir-commits] [mlir] [MLIR][GPU] Support grid constant, byval, byref on gpu.func (PR #172037)

Asher Mancinelli llvmlistbot at llvm.org
Fri Dec 19 10:53:02 PST 2025


================
@@ -369,7 +370,10 @@ GPUFuncOpLowering::matchAndRewrite(gpu::GPUFuncOp gpuFuncOp, OpAdaptor adaptor,
     }
 
     if (lowersToPointer) {
+      copyPointerAttribute(mlir::NVVM::NVVMDialect::getGridConstantAttrName());
----------------
ashermancinelli wrote:

that's okay 😃 if adding attributes to the nvgpu dialect means I can create a kernel in the GPU dialect that accepts `!llvm.ptr` parameters with the grid constant and byval attributes, then that will work for me! How do you think this should look?

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


More information about the Mlir-commits mailing list