llvm-project/mlir/test/Dialect/Async
Eugene Zhulenev 9c53b8e52e [mlir:Async] Add intermediate async.coro and async.runtime operations to simplify Async to LLVM lowering
[NFC] No new functionality, mostly a cleanup and one more abstraction level between Async and LLVM IR.

Instead of lowering from Async to LLVM coroutines and Async Runtime API in one shot, do it progressively via async.coro and async.runtime operations.

1. Lower from async to async.runtime/coro (e.g. async.execute to function with coro setup and runtime calls)
2. Lower from async.runtime/coro to LLVM intrinsics and runtime API calls

Intermediate coro/runtime operations will allow to run transformations on a higher level IR and do not try to match IR based on the LLVM::CallOp properties.

Although async.coro is very close to LLVM coroutines, it is not exactly the same API, instead it is optimized for usability in async lowering, and misses a lot of details that are present in @llvm.coro intrinsic.

Reviewed By: ftynse

Differential Revision: https://reviews.llvm.org/D94923
2021-01-25 14:04:33 -08:00
..
async-parallel-for.mlir [mlir] Transform scf.parallel to scf.for + async.execute 2020-11-13 04:02:56 -08:00
async-ref-counting-optimization.mlir [mlir:Async] Add intermediate async.coro and async.runtime operations to simplify Async to LLVM lowering 2021-01-25 14:04:33 -08:00
async-ref-counting.mlir [mlir:Async] Add intermediate async.coro and async.runtime operations to simplify Async to LLVM lowering 2021-01-25 14:04:33 -08:00
coro.mlir [mlir:Async] Add intermediate async.coro and async.runtime operations to simplify Async to LLVM lowering 2021-01-25 14:04:33 -08:00
ops.mlir [mlir:Async] Add intermediate async.coro and async.runtime operations to simplify Async to LLVM lowering 2021-01-25 14:04:33 -08:00
runtime.mlir [mlir:Async] Add intermediate async.coro and async.runtime operations to simplify Async to LLVM lowering 2021-01-25 14:04:33 -08:00
verify.mlir [mlir] Add async.await operation to async dialect 2020-10-12 21:05:36 -07:00