llvm-project/mlir/lib/Dialect/Tosa
Rob Suderman 2b2ebb6f98 [mlir][tosa] Add folders for trivial tosa operation cases
Some folding cases are trivial to fold away, specifically no-op cases where
an operation's input and output are the same. Canonicalizing these away
removes unneeded operations.

The current version includes tensor cast operations to resolve shape
discreprencies that occur when an operation's result type differs from the
input type. These are resolved during a tosa shape propagation pass.

Reviewed By: NatashaKnk

Differential Revision: https://reviews.llvm.org/D107321
2021-08-10 14:43:00 -07:00
..
IR [mlir][tosa] Add folders for trivial tosa operation cases 2021-08-10 14:43:00 -07:00
Transforms [mlir] Enable specifying querying function in ValueShapeRange 2021-08-10 11:44:20 -07:00
Utils NFC: (re-apply) Fix some post-review nits for the Tosa dialect. 2020-11-07 10:02:56 -08:00
CMakeLists.txt Add missing dependency to TOSA library: fix build with -DBUILD_SHARED_LIBS=ON 2020-11-07 18:58:18 +00:00