@@ -655,7 +655,7 @@ class FlatAffineConstraints {
655655 Optional<int64_t > getConstantUpperBound (unsigned pos) const ;
656656
657657 // / Gets the lower and upper bound of the pos^th identifier treating
658- // / [0, offset) U [offset + num, symbStartPos ) as dimensions and
658+ // / [0, offset) U [offset + num, symStartPos ) as dimensions and
659659 // / [symStartPos, getNumDimAndSymbolIds) as symbols. The returned
660660 // / multi-dimensional maps in the pair represent the max and min of
661661 // / potentially multiple affine expressions. The upper bound is exclusive.
@@ -664,7 +664,7 @@ class FlatAffineConstraints {
664664 std::pair<AffineMap, AffineMap>
665665 getLowerAndUpperBound (unsigned pos, unsigned offset, unsigned num,
666666 unsigned symStartPos, ArrayRef<AffineExpr> localExprs,
667- MLIRContext *context);
667+ MLIRContext *context) const ;
668668
669669 // / Returns true if the set can be trivially detected as being
670670 // / hyper-rectangular on the specified contiguous set of identifiers.
@@ -788,11 +788,13 @@ class FlatAffineConstraints {
788788AffineExpr simplifyAffineExpr (AffineExpr expr, unsigned numDims,
789789 unsigned numSymbols);
790790
791- // / Flattens 'expr' into 'flattenedExpr'. Returns failure if 'expr' could not be
792- // / flattened (i.e., semi-affine is not yet handled). 'cst' contains constraints
793- // / that connect newly introduced local identifiers to existing dimensional and
794- // / symbolic identifiers. See documentation for AffineExprFlattener on how
795- // / mod's and div's are flattened.
791+ // / Flattens 'expr' into 'flattenedExpr', which contains the coefficients of the
792+ // / dimensions, symbols, and additional variables that represent floor divisions
793+ // / of dimensions, symbols, and in turn other floor divisions. Returns failure
794+ // / if 'expr' could not be flattened (i.e., semi-affine is not yet handled).
795+ // / 'cst' contains constraints that connect newly introduced local identifiers
796+ // / to existing dimensional and symbolic identifiers. See documentation for
797+ // / AffineExprFlattener on how mod's and div's are flattened.
796798LogicalResult
797799getFlattenedAffineExpr (AffineExpr expr, unsigned numDims, unsigned numSymbols,
798800 llvm::SmallVectorImpl<int64_t > *flattenedExpr,
0 commit comments