diff options
author | Jacques Pienaar <jpienaar@google.com> | 2022-07-19 14:42:57 -0700 |
---|---|---|
committer | Jacques Pienaar <jpienaar@google.com> | 2022-07-19 14:42:58 -0700 |
commit | d2c0572b2efef6c71d13bb579ac50f2d3dd8e76e (patch) | |
tree | 6491d92c9f4d5eb1641a2c4be0dedf4c206a7688 /mlir/lib/Dialect/Linalg/Transforms/Loops.cpp | |
parent | 95401b015393b350f826d097cc5b45b6a604dfa5 (diff) | |
download | llvm-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.cpp | 2 |
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{ |