[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()) {
----------------
IgWod wrote:
Please spell out the type: https://llvm.org/docs/CodingStandards.html#use-auto-type-deduction-to-make-code-more-readable
https://github.com/llvm/llvm-project/pull/189744
More information about the Mlir-commits
mailing list