Skip to content

Commit 55756f3

Browse files
committed
[MLIR][TOSA] Expand Tosa int types to I8 and I16
Tosa integers should include I8 and I16 values. Differential Revision: https://reviews.llvm.org/D96900
1 parent 26a0aeb commit 55756f3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

mlir/include/mlir/Dialect/Tosa/IR/TosaTypesBase.td

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,15 @@ class Tosa_QuantizedType<string n, list<int> params, bit signed>
3838
// Used to express accumulator results or compare results.
3939
//===----------------------------------------------------------------------===//
4040

41+
def Tosa_Int8 : I<8>;
42+
def Tosa_Int16 : I<16>;
4143
def Tosa_Int32 : I<32>;
4244
def Tosa_Int48 : I<48>;
4345
def Tosa_Int64 : I<64>;
4446

45-
def Tosa_SignedInt : AnyTypeOf<[Tosa_Int32,
47+
def Tosa_SignedInt : AnyTypeOf<[Tosa_Int8,
48+
Tosa_Int16,
49+
Tosa_Int32,
4650
Tosa_Int48,
4751
Tosa_Int64]>;
4852

0 commit comments

Comments
 (0)