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

Diego Caballero via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 4 17:21:21 PDT 2024


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

Why don't we use APFloat here?

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


More information about the llvm-commits mailing list