mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-26 17:57:07 +00:00
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:
parent
77f05e5b53
commit
78453e3705
@ -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.
|
||||
|
@ -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())
|
||||
|
Loading…
Reference in New Issue
Block a user