[Mlir-commits] [mlir] [mlir][gpu] GPUToROCDL: Add C++ argument to populate allowedDialects (PR #157402)

Pablo Antonio Martinez llvmlistbot at llvm.org
Tue Sep 9 00:35:10 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()) {
----------------
pabloantoniom wrote:

This is no longer needed as the constructor was removed entirely

https://github.com/llvm/llvm-project/pull/157402


More information about the Mlir-commits mailing list