[Mlir-commits] [mlir] [mlir][tosa] Require signless types in validation and add corresponding conversion pass (PR #144367)

Luke Hutton llvmlistbot at llvm.org
Tue Jul 1 01:52:25 PDT 2025


================
@@ -0,0 +1,138 @@
+//===- TosaConvertIntegerTypeToSignless.cpp
+//-------------------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===-------------------------------------------------------------------------------===//
+
+// -----------
+// Motivation:
+// -----------
+
+// The TOSA specification uses a signless type system, which means that
+// information about signedness must be encapsulated by the operations
+// themselves. For example, tosa.rescale provides the attrbutes `input_unsigned`
----------------
lhutton1 wrote:

done

https://github.com/llvm/llvm-project/pull/144367


More information about the Mlir-commits mailing list