Mark AffineMap::replaceDimsAndSymbols as const (NFC)

This is consistent to the other methods of the class, as well as
AffineExpr::replaceDimsAndSymbols.

Differential Revision: https://reviews.llvm.org/D80266
This commit is contained in:
Chintan Kaur 2020-05-20 03:10:23 +00:00 committed by Mehdi Amini
parent 77f05e5b53
commit 78453e3705
2 changed files with 2 additions and 2 deletions

View File

@ -137,7 +137,7 @@ public:
AffineMap replaceDimsAndSymbols(ArrayRef<AffineExpr> dimReplacements,
ArrayRef<AffineExpr> symReplacements,
unsigned numResultDims,
unsigned numResultSyms);
unsigned numResultSyms) const;
/// Folds the results of the application of an affine map on the provided
/// operands to a constant if possible.

View File

@ -296,7 +296,7 @@ void AffineMap::walkExprs(std::function<void(AffineExpr)> callback) const {
AffineMap AffineMap::replaceDimsAndSymbols(ArrayRef<AffineExpr> dimReplacements,
ArrayRef<AffineExpr> symReplacements,
unsigned numResultDims,
unsigned numResultSyms) {
unsigned numResultSyms) const {
SmallVector<AffineExpr, 8> results;
results.reserve(getNumResults());
for (auto expr : getResults())