[Mlir-commits] [mlir] [mlir][spirv] Add SPV_EXT_float8 support (PR #179246)

Jakub Kuderski llvmlistbot at llvm.org
Mon Feb 2 07:51:24 PST 2026


================
@@ -1254,7 +1263,9 @@ uint32_t Serializer::prepareConstantFp(Location loc, FloatAttr floatAttr,
     encodeInstructionInto(typesGlobalValues, opcode,
                           {typeID, resultID, words.word1, words.word2});
   } else if (semantics == &APFloat::IEEEhalf() ||
-             semantics == &APFloat::BFloat()) {
+             semantics == &APFloat::BFloat() ||
+             semantics == &APFloat::Float8E4M3FN() ||
+             semantics == &APFloat::Float8E5M2()) {
----------------
kuhar wrote:

Can we use `llvm::is_contained`?

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


More information about the Mlir-commits mailing list