[Mlir-commits] [llvm] [mlir] [MLIR] Add f6E3M2FN type (PR #105573)
    Diego Caballero 
    llvmlistbot at llvm.org
       
    Wed Sep  4 17:21:21 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:
----------------
dcaballe wrote:
Should we add a reference to the OCP spec or at least mention it?
https://github.com/llvm/llvm-project/pull/105573
    
    
More information about the Mlir-commits
mailing list