[Mlir-commits] [mlir] [mlir][async] Avoid crash when not using `func.func` (PR #72801)
Mehdi Amini
llvmlistbot at llvm.org
Mon Nov 20 09:56:37 PST 2023
================
@@ -102,6 +102,10 @@ struct AsyncParallelForPass
: public impl::AsyncParallelForBase<AsyncParallelForPass> {
AsyncParallelForPass() = default;
+ void getDependentDialects(DialectRegistry ®istry) const override {
+ registry.insert<async::AsyncDialect, func::FuncDialect>();
+ }
+
----------------
joker-eph wrote:
This should be declared in TableGen
https://github.com/llvm/llvm-project/pull/72801
More information about the Mlir-commits
mailing list