summaryrefslogtreecommitdiff
path: root/mlir/lib/Dialect/Tensor/Transforms/ConcatOpPatterns.cpp
AgeCommit message (Collapse)Author
2025-07-11[mlir] Remove unused includes (NFC) (#148119)Kazu Hirata
These are identified by misc-include-cleaner. I've filtered out those that break builds. Also, I'm staying away from llvm-config.h, config.h, and Compiler.h, which likely cause platform- or compiler-specific build failures.
2024-11-13[mlir][Tensor] Move concat operation decomposition as a method of the concat ↵MaheshRavishankar
operation. (#116004) Currently the implementation is within a pattern that cannot be used without a pattern rewriter. Move the decomposition as a method of the operation to make it usable outside of pattern rewrites. Signed-off-by: MaheshRavishankar <mahesh.ravishankar@gmail.com>
2024-01-31[mlir] Use `create` instead of `createOrFold` for ConstantOp as folding has ↵Hugo Trachino
no effect (NFC) (#80129) This aims to clean-up confusing uses of builder.createOrFold<ConstantOp> since folding of constants fails.
2023-12-01[mlir][tensor] Add a tensor.concat operation (#72779)Quinn Dawkins
This adds an operation for concatenating ranked tensors along a static dimension, as well as a decomposition mirroring the existing lowering from TOSA to Tensor. This offers a convergence point for "input" like dialects that include various lowerings for concatenation operations, easing later analysis. In the future, this op can implement the necessary interfaces for tiling, as well as potentially add conversions to some kind of linalg and/or memref counterpart. This patch adds the op, the decomposition, and some basic folding/canonicalization. Replacing lowerings with the op (such as the TOSA lowering) will come as a follow up. See https://discourse.llvm.org/t/rfc-tensor-add-a-tensor-concatenate-operation/74858