[Mlir-commits] [mlir] [mlir][gpu] GPUToROCDL: Add C++ argument to populate allowedDialects (PR #157402)
Jakub Kuderski
llvmlistbot at llvm.org
Mon Sep 8 06:38:58 PDT 2025
================
@@ -299,6 +300,12 @@ struct LowerGpuOpsToROCDLOpsPass final
this->useBarePtrCallConv = useBarePtrCallConv;
if (this->runtime.getNumOccurrences() == 0)
this->runtime = runtime;
+ if (this->allowedDialects.getNumOccurrences() == 0 &&
+ allowedDialects.has_value()) {
+ for (auto &str : allowedDialects.value()) {
----------------
kuhar wrote:
Please spell this out. See https://llvm.org/docs/CodingStandards.html#use-auto-type-deduction-to-make-code-more-readable
https://github.com/llvm/llvm-project/pull/157402
More information about the Mlir-commits
mailing list