projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
de2a119
)
Fix cond_br example.
author
Tatiana Shpeisman
<shpeisman@google.com>
Sun, 7 Apr 2019 02:49:38 +0000
(19:49 -0700)
committer
Mehdi Amini
<joker.eph@gmail.com>
Mon, 8 Apr 2019 01:22:11 +0000
(18:22 -0700)
PiperOrigin-RevId:
242314071
mlir/g3doc/LangRef.md
patch
|
blob
|
history
diff --git
a/mlir/g3doc/LangRef.md
b/mlir/g3doc/LangRef.md
index
e05ab86
..
d5f71b6
100644
(file)
--- a/
mlir/g3doc/LangRef.md
+++ b/
mlir/g3doc/LangRef.md
@@
-1382,7
+1382,8
@@
The following example illustrates a function with a conditional branch operation
that targets the same block:
```mlir {.mlir}
-func @select(%a : i32, %b :i32, %flag : i1) -> i32 {
+func @select(i32, i32, i1) -> i32 {
+^bb0(%a : i32, %b :i32, %flag : i1) :
// Both targets are the same, operands differ
cond_br %flag, ^bb1(%a : i32), ^bb1(%b : i32)