[Mlir-commits] [mlir] [mlir][tensor] Add a tensor.concat operation (PR #72779)

Mehdi Amini llvmlistbot at llvm.org
Tue Nov 21 23:48:22 PST 2023


================
@@ -67,6 +67,11 @@ void populateReassociativeReshapeFoldingPatterns(RewritePatternSet &patterns);
 void populateFoldTensorEmptyPatterns(RewritePatternSet &patterns,
                                      bool foldSingleUseOnly = false);
 
+/// Populates `patterns` with patterns that decompose `tensor.concat` into
+/// `tensor.empty` of a tensor of the concatenated size, followed by a chain
+/// of `tensor.insert_slice` operations on the inputs.
+void populateDecomposeTensorConcatPatterns(RewritePatternSet &patterns);
----------------
joker-eph wrote:

The document says "what" but I feel could expand on the "why".

Most of these documentations for these APIs aren't useful enough because they don't provide enough context I feel.

https://github.com/llvm/llvm-project/pull/72779


More information about the Mlir-commits mailing list