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

Sergey Kozub llvmlistbot at llvm.org
Thu Sep 5 02:16:05 PDT 2024


================
@@ -91,6 +91,8 @@ IntegerType IntegerType::scaleElementBitwidth(unsigned scale) {
 //===----------------------------------------------------------------------===//
 
 unsigned FloatType::getWidth() {
+  if (llvm::isa<Float6E3M2FNType>(*this))
+    return 6;
----------------
sergey-kozub wrote:

I'll do this in a separate PR, if you don't mind.

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


More information about the Mlir-commits mailing list