[llvm] [mlir] [MLIR] Add f6E3M2FN type (PR #105573)

Sergey Kozub via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 5 02:15:34 PDT 2024


================
@@ -233,6 +233,24 @@ def Builtin_Float8E3M4 : Builtin_FloatType<"Float8E3M4", "f8E3M4"> {
   }];
 }
 
+//===----------------------------------------------------------------------===//
+// Float6E3M2FNType
+
+def Builtin_Float6E3M2FN : Builtin_FloatType<"Float6E3M2FN", "f6E3M2FN"> {
+  let summary = "6-bit floating point with 3 bits exponent and 2 bit mantissa";
+  let description = [{
+    An 6-bit floating point type with 1 sign bit, 3 bits exponent and 2 bits
+    mantissa. This is not a standard type as defined by IEEE-754, but it
+    follows similar conventions with the following characteristics:
----------------
sergey-kozub wrote:

Added a link.

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


More information about the llvm-commits mailing list