From: Tatiana Shpeisman Date: Sun, 7 Apr 2019 02:49:38 +0000 (-0700) Subject: Fix cond_br example. X-Git-Tag: llvmorg-11-init~1466^2~1969 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6271e7a758ef875a3942bcce96a5e7154069132e;p=platform%2Fupstream%2Fllvm.git Fix cond_br example. PiperOrigin-RevId: 242314071 --- diff --git a/mlir/g3doc/LangRef.md b/mlir/g3doc/LangRef.md index e05ab86..d5f71b6 100644 --- 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)