[all-commits] [llvm/llvm-project] a5ddd9: [mlir][async] Allow to call async.execute inside a...

yijia1212 via All-commits all-commits at lists.llvm.org
Fri Jan 13 16:04:37 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a5ddd92035042204d42e108631142694692eabf1
      https://github.com/llvm/llvm-project/commit/a5ddd92035042204d42e108631142694692eabf1
  Author: yijiagu <yijiagu at google.com>
  Date:   2023-01-13 (Fri, 13 Jan 2023)

  Changed paths:
    M mlir/lib/Dialect/Async/Transforms/AsyncToAsyncRuntime.cpp
    M mlir/test/Dialect/Async/async-to-async-runtime.mlir
    M mlir/test/mlir-cpu-runner/async-func.mlir

  Log Message:
  -----------
  [mlir][async] Allow to call async.execute inside async.func

This change added support of calling async execute inside async.func.
Ex.

```
async.func @async_func_call_func() -> !async.token {
  %token = async.execute {
    %c0 = arith.constant 0 : index
    memref.store %arg0, %arg1[%c0] : memref<1xf32>
    async.yield
  }
  async.await %token : !async.token
  return
}
```

Reviewed By: ezhulenev

Differential Revision: https://reviews.llvm.org/D141730




More information about the All-commits mailing list