File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
mlir/include/mlir/Dialect/SCF/IR Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -153,9 +153,10 @@ def ForOp : SCF_Op<"for",
153
153
operation defines an SSA value for its induction variable. It has one
154
154
region capturing the loop body. The induction variable is represented as an
155
155
argument of this region. This SSA value is a signless integer or index.
156
- The step is a value of same type but required to be positive. The lower and
157
- upper bounds specify a half-open range: the range includes the lower bound
158
- but does not include the upper bound.
156
+ The step is a value of same type but required to be positive, the lower and
157
+ upper bounds can be also negative or zero. The lower and upper bounds specify
158
+ a half-open range: the iteration is executed iff the signed comparison of induction
159
+ variable value is less than the upper bound and bigger or equal to the lower bound.
159
160
160
161
The body region must contain exactly one block that terminates with
161
162
`scf.yield`. Calling ForOp::build will create such a region and insert
You can’t perform that action at this time.
0 commit comments