[mlir][async] Fix missing dialect dependency in async-to-async-runtime
authorrkayaith <rkayaith@gmail.com>
Tue, 11 Oct 2022 20:46:26 +0000 (16:46 -0400)
committerrkayaith <rkayaith@gmail.com>
Wed, 12 Oct 2022 05:10:08 +0000 (01:10 -0400)
commitec1a419143bda5bc20660e3325fd7843543503fa
treeda30e10eaadac9794edaec5770beda9fe3fb4904
parent6d4baa7442ccf7b87130b8b783164b8d9d1db005
[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
mlir/include/mlir/Dialect/Async/Passes.td