summaryrefslogtreecommitdiff
path: root/mlir/lib/Dialect/Linalg/Transforms/Loops.cpp
diff options
context:
space:
mode:
authorJacques Pienaar <jpienaar@google.com>2022-07-19 14:42:57 -0700
committerJacques Pienaar <jpienaar@google.com>2022-07-19 14:42:58 -0700
commitd2c0572b2efef6c71d13bb579ac50f2d3dd8e76e (patch)
tree6491d92c9f4d5eb1641a2c4be0dedf4c206a7688 /mlir/lib/Dialect/Linalg/Transforms/Loops.cpp
parent95401b015393b350f826d097cc5b45b6a604dfa5 (diff)
downloadllvm-d2c0572b2efef6c71d13bb579ac50f2d3dd8e76e.tar.gz
[mlir] Flip LinAlg dialect to _Both
This one required more changes than ideal due to overlapping generated name with different return types. Changed getIndexingMaps to getIndexingMapsArray to move it out of the way/highlight that it returns (more expensively) a SmallVector and uses the prefixed name for the Attribute. Differential Revision: https://reviews.llvm.org/D129919
Diffstat (limited to 'mlir/lib/Dialect/Linalg/Transforms/Loops.cpp')
-rw-r--r--mlir/lib/Dialect/Linalg/Transforms/Loops.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/mlir/lib/Dialect/Linalg/Transforms/Loops.cpp b/mlir/lib/Dialect/Linalg/Transforms/Loops.cpp
index 28a2d86b0447..51f1c89e702e 100644
--- a/mlir/lib/Dialect/Linalg/Transforms/Loops.cpp
+++ b/mlir/lib/Dialect/Linalg/Transforms/Loops.cpp
@@ -77,7 +77,7 @@ template <typename SingleInputPoolingOp>
static InputAndOutputIndices
getInputAndOutputIndices(OpBuilder &b, Location loc, ArrayRef<Value> allIvs,
SingleInputPoolingOp op) {
- auto mapsRange = op.indexing_maps().template getAsRange<AffineMapAttr>();
+ auto mapsRange = op.getIndexingMapsArray();
auto maps = llvm::to_vector<8>(
llvm::map_range(mapsRange, [](AffineMapAttr a) { return a.getValue(); }));
return InputAndOutputIndices{