[MLIR][TOSA] First lowerings from Tosa to Linalg
authorRob Suderman <rob.suderman@gmail.com>
Tue, 5 Jan 2021 22:26:48 +0000 (14:26 -0800)
committerRob Suderman <rob.suderman@gmail.com>
Thu, 14 Jan 2021 19:24:23 +0000 (11:24 -0800)
commit1d973b7ded124dd19f766db0c8e07d1c686dfb1b
tree393a47dbaee186f81d5fc8fee557b0255082dd5e
parent9e53c94d8dd737fcedb543d6ac687ea9696db8a6
[MLIR][TOSA] First lowerings from Tosa to Linalg

Initial commit to add support for lowering from TOSA to Linalg. The focus is on
the essential infrastructure for these lowerings and integration with existing
passes.

Includes lowerings for a subset of operations including:
  abs, add, sub, pow, and, or, xor, left shift, right shift, tanh

Lit tests are used to validate correctness.

Differential Revision: https://reviews.llvm.org/D94247
mlir/include/mlir/Conversion/Passes.h
mlir/include/mlir/Conversion/Passes.td
mlir/include/mlir/Conversion/TosaToLinalg/TosaToLinalg.h [new file with mode: 0644]
mlir/lib/Conversion/CMakeLists.txt
mlir/lib/Conversion/TosaToLinalg/CMakeLists.txt [new file with mode: 0644]
mlir/lib/Conversion/TosaToLinalg/TosaToLinalg.cpp [new file with mode: 0644]
mlir/lib/Conversion/TosaToLinalg/TosaToLinalgPass.cpp [new file with mode: 0644]
mlir/test/Conversion/TosaToLinalg/tosa-to-linalg.mlir [new file with mode: 0644]