[Mlir-commits] [mlir] [MLIR][GPU] Support grid constant, byval, byref on gpu.func (PR #172037)
Krzysztof Drewniak
llvmlistbot at llvm.org
Thu Dec 18 13:17:33 PST 2025
================
@@ -369,7 +370,10 @@ GPUFuncOpLowering::matchAndRewrite(gpu::GPUFuncOp gpuFuncOp, OpAdaptor adaptor,
}
if (lowersToPointer) {
+ copyPointerAttribute(mlir::NVVM::NVVMDialect::getGridConstantAttrName());
----------------
krzysz00 wrote:
Well, what would happen is that attributes from other dialects would get ignored later
And yeah, unconditional copy on LLVM pointers (and honestly, scalars as well) is fine by me
https://github.com/llvm/llvm-project/pull/172037
More information about the Mlir-commits
mailing list