[all-commits] [llvm/llvm-project] 11ac97: [mlir][tosa] Move lowering of `tosa.transpose` to ...
Felix Schneider via All-commits
all-commits at lists.llvm.org
Tue Jan 2 11:04:15 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 11ac97c67a9315dce48fd938d68ae991e3559f10
https://github.com/llvm/llvm-project/commit/11ac97c67a9315dce48fd938d68ae991e3559f10
Author: Felix Schneider <fx.schn at gmail.com>
Date: 2024-01-02 (Tue, 02 Jan 2024)
Changed paths:
M mlir/lib/Conversion/TosaToLinalg/TosaToLinalg.cpp
M mlir/lib/Conversion/TosaToLinalg/TosaToLinalgNamed.cpp
M mlir/lib/Conversion/TosaToLinalg/TosaToLinalgNamedPass.cpp
M mlir/test/Conversion/TosaToLinalg/tosa-to-linalg-named.mlir
M mlir/test/Conversion/TosaToLinalg/tosa-to-linalg-pipeline.mlir
M mlir/test/Conversion/TosaToLinalg/tosa-to-linalg.mlir
Log Message:
-----------
[mlir][tosa] Move lowering of `tosa.transpose` to `tosa-to-linalg-named` (#75738)
Currently, there exists a pattern lowering `tosa.transpose` to
`linalg.generic` in `tosa-to-linalg`.
This patch removes that and instead adds a pattern lowering
`tosa.transpose` to `linalg.transpose` in `tosa-to-linalg-named`.
Lowering to the named linalg Op has the advantage that following
optimization passes can easily identify transposition without having to
perform pattern matching on linalg.generic Ops. The `linalg.transpose`
can simply be generalized to a `linalg.generic` in a second step.
More information about the All-commits
mailing list