llvm-capstone/mlir
Rob Suderman 286a9d467e [mlir][tosa] Add lowering for tosa.rescale to linalg.generic
This adds a tosa.apply_scale operation that handles the scaling operation
common to quantized operatons. This scalar operation is lowered
in TosaToStandard.

We use a separate ApplyScale factorization as this is a replicable pattern
within TOSA. ApplyScale can be reused within pool/convolution/mul/matmul
for their quantized variants.

Tests are added to both tosa-to-standard and tosa-to-linalg-on-tensors
that verify each pass is correct.

Reviewed By: silvas

Differential Revision: https://reviews.llvm.org/D98753
2021-03-18 16:14:05 -07:00
..
cmake/modules [mlir][python] Reorganize MLIR python into namespace packages. 2021-03-08 23:01:34 -08:00
docs [mlir][Toy] Tidy up the first half of Chapter 2. 2021-03-17 17:37:28 -07:00
examples [mlir][Toy] Update the tutorial to use tablegen for dialect declarations 2021-03-17 17:37:28 -07:00
include [mlir][tosa] Add lowering for tosa.rescale to linalg.generic 2021-03-18 16:14:05 -07:00
lib [mlir][tosa] Add lowering for tosa.rescale to linalg.generic 2021-03-18 16:14:05 -07:00
test [mlir][tosa] Add lowering for tosa.rescale to linalg.generic 2021-03-18 16:14:05 -07:00
tools [mlir][ODS] Get rid of limitations in rewriters generator 2021-03-18 12:21:06 +03:00
unittests [mlir][ODS] Support specialized Attribute class for Enums 2021-03-17 16:44:24 +03:00
utils [mlir] Add simple jupyter kernel 2021-02-21 18:16:06 -08:00
.clang-format
.clang-tidy Fix MLIR clang-tidy: when tweaking it does not inherit from the parent 2020-03-07 17:44:21 +00:00
CMakeLists.txt [CMake] Require python 3.6 if enabling LLVM test targets 2021-03-15 09:50:39 -07:00
LICENSE.TXT Add the Apache2 with LLVM exceptions license to MLIR 2019-12-24 00:58:06 -08:00
README.md mlir README.md: Fix the syntax 2019-12-24 13:31:07 +01:00

Multi-Level Intermediate Representation

See https://mlir.llvm.org/ for more information.