[all-commits] [llvm/llvm-project] 3ebc6b: [mlir][tensor][linalg] Add a pattern that generali...
Han-Chung Wang via All-commits
all-commits at lists.llvm.org
Mon Dec 19 17:52:28 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 3ebc6bee6b23f163f4977836bd50bc952449836b
https://github.com/llvm/llvm-project/commit/3ebc6bee6b23f163f4977836bd50bc952449836b
Author: Hanhan Wang <hanchung at google.com>
Date: 2022-12-19 (Mon, 19 Dec 2022)
Changed paths:
M mlir/include/mlir/Dialect/Linalg/Transforms/Transforms.h
M mlir/lib/Dialect/Linalg/Transforms/Transforms.cpp
A mlir/test/Dialect/Linalg/generalize-tensor-unpack.mlir
M mlir/test/lib/Dialect/Linalg/TestLinalgTransforms.cpp
Log Message:
-----------
[mlir][tensor][linalg] Add a pattern that generalizes tensor.unpack op.
The pattern generalizes a tensor::UnPackOp into a sequence of tensor +
Linalg ops, when the outer dims are all 1s. It uses the trick of
rank-reduced tensor.extract_slice to get the tile; transpose the tile;
extract sub tile for incomplete cases if needed; use tensor.insert_slice
to insert it to the destination tensor.
Reviewed By: tyb0807, chelini
Differential Revision: https://reviews.llvm.org/D140254
More information about the All-commits
mailing list