File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
include/mlir/Dialect/Affine/Analysis
lib/Dialect/Affine/Analysis Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -277,13 +277,13 @@ struct ComputationSliceState {
277
277
// Constraints are added for all loop IV bounds (dim or symbol), and
278
278
// constraints are added for slice bounds in 'lbs'/'ubs'.
279
279
// Returns failure if we cannot add loop bounds because of unsupported cases.
280
- LogicalResult getAsConstraints (FlatAffineValueConstraints *cst);
280
+ LogicalResult getAsConstraints (FlatAffineValueConstraints *cst) const ;
281
281
282
282
// / Adds to 'cst' constraints which represent the original loop bounds on
283
283
// / 'ivs' in 'this'. This corresponds to the original domain of the loop nest
284
284
// / from which the slice is being computed. Returns failure if we cannot add
285
285
// / loop bounds because of unsupported cases.
286
- LogicalResult getSourceAsConstraints (FlatAffineValueConstraints &cst);
286
+ LogicalResult getSourceAsConstraints (FlatAffineValueConstraints &cst) const ;
287
287
288
288
// Clears all bounds and operands in slice state.
289
289
void clearBounds ();
Original file line number Diff line number Diff line change @@ -533,8 +533,8 @@ void mlir::affine::getEnclosingAffineOps(Operation &op,
533
533
534
534
// Populates 'cst' with FlatAffineValueConstraints which represent original
535
535
// domain of the loop bounds that define 'ivs'.
536
- LogicalResult
537
- ComputationSliceState::getSourceAsConstraints ( FlatAffineValueConstraints &cst) {
536
+ LogicalResult ComputationSliceState::getSourceAsConstraints (
537
+ FlatAffineValueConstraints &cst) const {
538
538
assert (!ivs.empty () && " Cannot have a slice without its IVs" );
539
539
cst = FlatAffineValueConstraints (/* numDims=*/ ivs.size (), /* numSymbols=*/ 0 ,
540
540
/* numLocals=*/ 0 , ivs);
@@ -549,7 +549,7 @@ ComputationSliceState::getSourceAsConstraints(FlatAffineValueConstraints &cst) {
549
549
550
550
// Populates 'cst' with FlatAffineValueConstraints which represent slice bounds.
551
551
LogicalResult
552
- ComputationSliceState::getAsConstraints (FlatAffineValueConstraints *cst) {
552
+ ComputationSliceState::getAsConstraints (FlatAffineValueConstraints *cst) const {
553
553
assert (!lbOperands.empty ());
554
554
// Adds src 'ivs' as dimension variables in 'cst'.
555
555
unsigned numDims = ivs.size ();
You can’t perform that action at this time.
0 commit comments