summaryrefslogtreecommitdiffstats
path: root/mlir
diff options
context:
space:
mode:
Diffstat (limited to 'mlir')
-rw-r--r--mlir/g3doc/LangRef.md6
-rw-r--r--mlir/g3doc/Rationale.md6
2 files changed, 6 insertions, 6 deletions
diff --git a/mlir/g3doc/LangRef.md b/mlir/g3doc/LangRef.md
index f259b6ce33b..d84ecf3a284 100644
--- a/mlir/g3doc/LangRef.md
+++ b/mlir/g3doc/LangRef.md
@@ -1005,7 +1005,7 @@ Example:
```mlir {.mlir}
func $@accelerator_compute(i64, i1) -> i64 {
^bb0(%a: i64, %cond: i1): // Code dominated by ^bb0 may refer to %a
- br_cond %cond, ^bb1, ^bb2
+ cond_br %cond, ^bb1, ^bb2
^bb1:
// This def for %value does not dominate ^bb2
@@ -1115,7 +1115,7 @@ arguments:
```mlir {.mlir}
func @simple(i64, i1) -> i64 {
^bb0(%a: i64, %cond: i1): // Code dominated by ^bb0 may refer to %a
- br_cond %cond, ^bb1, ^bb2
+ cond_br %cond, ^bb1, ^bb2
^bb1:
br ^bb3(%a: i64) // Branch passes %a as the argument
@@ -1196,7 +1196,7 @@ Example:
```mlir {.mlir}
// Branch to ^bb1 or ^bb2 depending on the condition %cond.
// Pass value %v to ^bb2, but not to ^bb1.
-"br_cond"(%cond)[^bb1, ^bb2(%v : index)] : (i1) -> ()
+"cond_br"(%cond)[^bb1, ^bb2(%v : index)] : (i1) -> ()
```
In addition to the basic syntax above, dialects may register tables of known
diff --git a/mlir/g3doc/Rationale.md b/mlir/g3doc/Rationale.md
index 340589d38a6..9ecd7fb6124 100644
--- a/mlir/g3doc/Rationale.md
+++ b/mlir/g3doc/Rationale.md
@@ -363,7 +363,7 @@ select %cond, %t, %f` is equivalent to
```mlir
^bb0:
- br_cond %cond, ^bb1(%t), ^bb1(%f)
+ cond_br %cond, ^bb1(%t), ^bb1(%f)
^bb1(%r):
```
@@ -621,12 +621,12 @@ func @search_body(%A: memref<?x?xi32>, %S: memref<?xi32>, %key: i32) {
^bb1(%j: i32)
%p1 = cmpi "lt", %j, %nj : i32
- br_cond %p1, ^bb2, ^bb5
+ cond_br %p1, ^bb2, ^bb5
^bb2:
%v = load %A[%i, %j] : memref<?x?xi32>
%p2 = cmpi "eq", %v, %key : i32
- br_cond %p2, ^bb3(%j), ^bb4
+ cond_br %p2, ^bb3(%j), ^bb4
^bb3(%j: i32)
store %j, %S[%i] : memref<?xi32>
OpenPOWER on IntegriCloud