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

Asher Mancinelli llvmlistbot at llvm.org
Fri Dec 12 08:32:43 PST 2025


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

I agree, though how many attributes fit the bill of `KernelPointerArgumentAttribute` besides grid constant? Do you think it's still worth adding such an interface?

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


More information about the Mlir-commits mailing list