[PATCH] D80266: Make AffineMap::replaceDimsAndSymbols(...) const. This is also consistent with AffineExpr::replaceDimsAndSymbols func.
Chintan Kaur via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue May 19 20:21:44 PDT 2020
kaurc created this revision.
kaurc added a reviewer: mehdi_amini.
Herald added subscribers: llvm-commits, jurahul, Kayjukh, frgossen, grosul1, Joonsoo, stephenneuendorffer, liufengdb, lucyrfox, mgester, arpith-jacob, nicolasvasilache, antiagainst, shauheen, jpienaar, rriddle.
Herald added a reviewer: rriddle.
Herald added a project: LLVM.
mehdi_amini accepted this revision.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D80266
Files:
mlir/include/mlir/IR/AffineMap.h
mlir/lib/IR/AffineMap.cpp
Index: mlir/lib/IR/AffineMap.cpp
===================================================================
--- mlir/lib/IR/AffineMap.cpp
+++ mlir/lib/IR/AffineMap.cpp
@@ -296,7 +296,7 @@
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())
Index: mlir/include/mlir/IR/AffineMap.h
===================================================================
--- mlir/include/mlir/IR/AffineMap.h
+++ mlir/include/mlir/IR/AffineMap.h
@@ -137,7 +137,7 @@
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D80266.265118.patch
Type: text/x-patch
Size: 1324 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200520/5e8764fe/attachment.bin>
More information about the llvm-commits
mailing list