[Mlir-commits] [mlir] 1096d23 - [mlir][tosa] Add uint16 to TOSA type support

Rob Suderman llvmlistbot at llvm.org
Tue Jan 10 12:35:21 PST 2023


Author: Rob Suderman
Date: 2023-01-10T12:33:10-08:00
New Revision: 1096d233352f1277c91dc1be68f63d07ca5fb9e3

URL: https://github.com/llvm/llvm-project/commit/1096d233352f1277c91dc1be68f63d07ca5fb9e3
DIFF: https://github.com/llvm/llvm-project/commit/1096d233352f1277c91dc1be68f63d07ca5fb9e3.diff

LOG: [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

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/mlir/include/mlir/Dialect/Tosa/IR/TosaTypesBase.td b/mlir/include/mlir/Dialect/Tosa/IR/TosaTypesBase.td
index 45b1a125ec613..3c9094e6aaef7 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<string n, list<int> 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,


        


More information about the Mlir-commits mailing list