[mlir] Add error state and error propagation to async runtime values
authorEugene Zhulenev <ezhulenev@google.com>
Tue, 25 May 2021 22:06:34 +0000 (15:06 -0700)
committerEugene Zhulenev <ezhulenev@google.com>
Thu, 27 May 2021 16:28:47 +0000 (09:28 -0700)
commit39957aa4243cb9aec3a7114c0ecf710ecce96b72
tree34b521a979cd3b2ceb670e9dc2052135561a1916
parent4fbc66cd6d90d8d5169c43fcc1b1e26e8a98d3a9
[mlir] Add error state and error propagation to async runtime values

Depends On D103102

Not yet implemented:
1. Error handling after synchronous await
2. Error handling for async groups

Will be addressed in the followup PRs

Reviewed By: mehdi_amini

Differential Revision: https://reviews.llvm.org/D103109
mlir/include/mlir/Dialect/Async/IR/AsyncOps.td
mlir/include/mlir/ExecutionEngine/AsyncRuntime.h
mlir/lib/Conversion/AsyncToLLVM/AsyncToLLVM.cpp
mlir/lib/Dialect/Async/Transforms/AsyncToAsyncRuntime.cpp
mlir/lib/ExecutionEngine/AsyncRuntime.cpp
mlir/test/Conversion/AsyncToLLVM/convert-runtime-to-llvm.mlir
mlir/test/Dialect/Async/async-to-async-runtime.mlir
mlir/test/Dialect/Async/runtime.mlir
mlir/test/mlir-cpu-runner/async-error.mlir [new file with mode: 0644]