mirror of
https://github.com/intel/llvm.git
synced 2026-01-26 12:26:52 +08:00
Update typo
cond_br was accidentally typed as br_cond in a few examples. PiperOrigin-RevId: 262929398
This commit is contained in:
committed by
A. Unique TensorFlower
parent
2dd38b09c1
commit
fe2ea3003b
@@ -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
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user