Skip to content

Commit ec1a419

Browse files
committed
[mlir][async] Fix missing dialect dependency in async-to-async-runtime
The specific case I hit this was when lowering an `async.execute` that's not inside a `func.func` op, e.g.: ``` llvm.func @foo() { %token = async.execute { async.yield } llvm.return } ``` Reviewed By: bondhugula Differential Revision: https://reviews.llvm.org/D135742
1 parent 6d4baa7 commit ec1a419

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlir/include/mlir/Dialect/Async/Passes.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def AsyncToAsyncRuntime : Pass<"async-to-async-runtime", "ModuleOp"> {
5151
"Rewrite functions with blocking async.runtime.await as coroutines "
5252
"with async.runtime.await_and_resume.">,
5353
];
54-
let dependentDialects = ["async::AsyncDialect"];
54+
let dependentDialects = ["async::AsyncDialect", "func::FuncDialect"];
5555
}
5656

5757
def AsyncRuntimeRefCounting : Pass<"async-runtime-ref-counting"> {

0 commit comments

Comments
 (0)