From: Rob Suderman Date: Tue, 10 Jan 2023 19:40:45 +0000 (-0800) Subject: [mlir][tosa] Add uint16 to TOSA type support X-Git-Tag: upstream/17.0.6~21495 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1096d233352f1277c91dc1be68f63d07ca5fb9e3;p=platform%2Fupstream%2Fllvm.git [mlir][tosa] Add uint16 to TOSA type support UInt16 is included as a required TOSA type for basic operations. Added support as a TOSA Tensor. Reviewed By: NatashaKnk Differential Revision: https://reviews.llvm.org/D141341 --- diff --git a/mlir/include/mlir/Dialect/Tosa/IR/TosaTypesBase.td b/mlir/include/mlir/Dialect/Tosa/IR/TosaTypesBase.td index 45b1a12..3c9094e 100644 --- a/mlir/include/mlir/Dialect/Tosa/IR/TosaTypesBase.td +++ b/mlir/include/mlir/Dialect/Tosa/IR/TosaTypesBase.td @@ -39,6 +39,7 @@ class Tosa_QuantizedType params, bit signed> //===----------------------------------------------------------------------===// def Tosa_UInt8 : UI<8>; +def Tosa_UInt16 : UI<16>; def Tosa_Int8 : I<8>; def Tosa_Int16 : I<16>; @@ -57,6 +58,7 @@ def Tosa_Bool : I<1>; // No unsigned unquantized int types. def Tosa_Int : AnyTypeOf<[Tosa_Bool, Tosa_UInt8, + Tosa_UInt16, Tosa_SignedInt]>; def Tosa_Int32Or64 : AnyTypeOf<[Tosa_Int32,