[Mlir-commits] [mlir] [mlir][spirv] Add 8-bit float type emulation (PR #148811)

Krzysztof Drewniak llvmlistbot at llvm.org
Tue Jul 22 09:21:35 PDT 2025


================
@@ -39,6 +39,10 @@ struct SPIRVConversionOptions {
   /// The number of bits to store a boolean value.
   unsigned boolNumBits{8};
 
+  /// Whether to emulate unsupported floats with integer types of same bit
+  /// width.
+  bool emulateUnsupportedFloatTypes{true};
----------------
krzysz00 wrote:

`convert-to-llvm`, which, IIRC, doesn't even provide this opt-out mechanism, it' just *defines* the FP8 types to be `i8`

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


More information about the Mlir-commits mailing list