[PATCH] D80266: Make AffineMap::replaceDimsAndSymbols(...) const. This is also consistent with AffineExpr::replaceDimsAndSymbols func.
Mehdi AMINI via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue May 19 20:22:06 PDT 2020
This revision was not accepted when it landed; it landed in state "Needs Review".
This revision was automatically updated to reflect the committed changes.
Closed by commit rG78453e370547: Mark AffineMap::replaceDimsAndSymbols as const (NFC) (authored by kaurc, committed by mehdi_amini).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D80266/new/
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.265121.patch
Type: text/x-patch
Size: 1324 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200520/35f35c83/attachment.bin>
More information about the llvm-commits
mailing list