Skip to content

Commit 7aa091f

Browse files
committed
added comments
1 parent b59c62e commit 7aa091f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

mlir/lib/Dialect/Affine/IR/AffineOps.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1902,13 +1902,14 @@ LogicalResult AffineForOp::verifyRegions() {
19021902
if (failed(verifyDimAndSymbolIdentifiers(*this, getUpperBoundOperands(),
19031903
getUpperBoundMap().getNumDims())))
19041904
return failure();
1905-
1905+
// Verify that the bound maps produce at least one result.
1906+
/// Lower bound.
19061907
if (getLowerBoundMap().getNumResults() < 1)
19071908
return emitOpError("expected lower bound map to have at least one result");
1908-
1909+
/// Upper bound.
19091910
if (getUpperBoundMap().getNumResults() < 1)
19101911
return emitOpError("expected upper bound map to have at least one result");
1911-
1912+
19121913
unsigned opNumResults = getNumResults();
19131914
if (opNumResults == 0)
19141915
return success();

0 commit comments

Comments
 (0)