[Mlir-commits] [mlir] [mlir][AMDGPU] Set uniform-work-group-size=true by default (PR #79077)
Krzysztof Drewniak
llvmlistbot at llvm.org
Mon Feb 19 08:06:53 PST 2024
================
@@ -134,7 +140,19 @@ class ROCDLDialectLLVMIRTranslationInterface
llvmAttrValue.append(value.getValue());
llvmFunc->addFnAttr("amdgpu-flat-work-group-size", llvmAttrValue);
}
-
+ if (ROCDL::ROCDLDialect::getUniformWorkGroupSizeAttrName() ==
+ attribute.getName()) {
+ auto func = dyn_cast<LLVM::LLVMFuncOp>(op);
+ if (!func)
+ return failure();
----------------
krzysz00 wrote:
I'll go ahead and clean that up
https://github.com/llvm/llvm-project/pull/79077
More information about the Mlir-commits
mailing list