[Mlir-commits] [mlir] [mlir][gpu-to-spirv] Add support for `gpu.func` workgroup attributions (PR #189744)
Igor Wodiany
llvmlistbot at llvm.org
Thu Apr 9 13:20:04 PDT 2026
================
@@ -265,10 +265,26 @@ lowerAsEntryFunction(gpu::GPUFuncOp funcOp, const TypeConverter &typeConverter,
"or none of them");
return nullptr;
}
+
+ // Collect workgroup attribution types before inlining moves the body.
+ unsigned numFuncArgs = fnType.getNumInputs();
+ unsigned numWorkgroupAttrs = funcOp.getNumWorkgroupAttributions();
+ SmallVector<Type> workgroupTypes;
+ for (auto wgAttr : funcOp.getWorkgroupAttributions()) {
+ auto convertedType = typeConverter.convertType(wgAttr.getType());
----------------
IgWod wrote:
Please spell out the type here as well.
https://github.com/llvm/llvm-project/pull/189744
More information about the Mlir-commits
mailing list