We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7c010bf commit 22ac2cbCopy full SHA for 22ac2cb
mlir/include/mlir/Dialect/Async/IR/AsyncOps.td
@@ -38,7 +38,8 @@ def Async_ExecuteOp :
38
["getEntrySuccessorOperands",
39
"areTypesCompatible"]>,
40
AttrSizedOperandSegments,
41
- AutomaticAllocationScope]> {
+ AutomaticAllocationScope,
42
+ Pure]> {
43
let summary = "Asynchronous execute operation";
44
let description = [{
45
The `body` region attached to the `async.execute` operation semantically
mlir/test/Dialect/Async/canonicalize.mlir
@@ -0,0 +1,10 @@
1
+// RUN: mlir-opt %s -split-input-file -canonicalize | FileCheck %s
2
+
3
+// CHECK-NOT: async.execute
4
5
+func.func @empty_execute() {
6
+ %token = async.execute {
7
+ async.yield
8
+ }
9
+ return
10
+}
0 commit comments