Skip to content

Commit b968c59

Browse files
committed
Improve terminator doc in MLIR LangRef
Reviewed By: rriddle, bondhugula Differential Revision: https://reviews.llvm.org/D123886
1 parent bc9916f commit b968c59

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

mlir/docs/LangRef.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -366,11 +366,11 @@ compiler [basic block](https://en.wikipedia.org/wiki/Basic_block) where
366366
instructions inside the block are executed in order and terminator operations
367367
implement control flow branches between basic blocks.
368368

369-
A region with a single block may not include a
370-
[terminator operation](#terminator-operations). The enclosing op can opt-out of
371-
this requirement with the `NoTerminator` trait. The top-level `ModuleOp` is an
372-
example of such operation which defined this trait and whose block body does not
373-
have a terminator.
369+
The last operation in a block must be a
370+
[terminator operation](#control-flow-and-ssacfg-regions). A region with a single
371+
block may opt out of this requirement by attaching the `NoTerminator` on the
372+
enclosing op. The top-level `ModuleOp` is an example of such an operation which
373+
defines this trait and whose block body does not have a terminator.
374374

375375
Blocks in MLIR take a list of block arguments, notated in a function-like way.
376376
Block arguments are bound to values specified by the semantics of individual

0 commit comments

Comments
 (0)