Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/llvm/llvm-project.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authoryijiagu <yijiagu@google.com>2022-11-02 21:27:26 +0300
committerEugene Zhulenev <ezhulenev@google.com>2022-11-02 21:34:08 +0300
commit145d2a50b86fabe220284ca4a28b67cb8d26f1f1 (patch)
tree0ef966682c5ef9ba8aac0bf42cf6cf0deb9e59e6 /utils
parent65b130e32cad56e5f11d6d172eb90437e1cedbf6 (diff)
Add Async Function to the Async Dialect
Add Async Function to the Async Dialect Today `async.execute` operation semantics requires attached region to be executed in a thread managed by the runtime, and always returns an `!async.token` result. We need to model async functions that are not necessarily executed in a runtime-managed threads, but eventually lowered to llvm coroutines. Example: ``` async.func @foo(%arg0: !async.value<f32>) -> !async.token { %0 = async.await %arg0: !async.value<f32> "do_something_with_f32"(%0) return } ``` If `arg0` is available this function will be executed in the caller thread. If it's not available it will be suspended and resumed later later on a thread managed by the async runtime. Currently this is not representable with `async.execute` operations. The longer term goal is to make async dialect more like https://github.com/lewissbaker/cppcoro to be able to represent structured host concurrency in MLIR. (1) Add async.func, async.call, and async.return operations in Async Dialect Reviewed By: ezhulenev, rriddle Differential Revision: https://reviews.llvm.org/D137189
Diffstat (limited to 'utils')
-rw-r--r--utils/bazel/llvm-project-overlay/mlir/BUILD.bazel2
1 files changed, 2 insertions, 0 deletions
diff --git a/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel b/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel
index 010fb851956d..2208ff0ddf7e 100644
--- a/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel
@@ -1349,7 +1349,9 @@ td_library(
],
includes = ["include"],
deps = [
+ ":CallInterfacesTdFiles",
":ControlFlowInterfacesTdFiles",
+ ":FunctionInterfacesTdFiles",
":InferTypeOpInterfaceTdFiles",
":OpBaseTdFiles",
":SideEffectInterfacesTdFiles",