[Mlir-commits] [mlir] [mlir][spirv] Add bfloat16 support (PR #141458)
Jakub Kuderski
llvmlistbot at llvm.org
Thu Jun 5 07:24:41 PDT 2025
================
@@ -867,11 +867,13 @@ LogicalResult spirv::Deserializer::processType(spirv::Opcode opcode,
typeMap[operands[0]] = IntegerType::get(context, operands[1], sign);
} break;
case spirv::Opcode::OpTypeFloat: {
- if (operands.size() != 2)
- return emitError(unknownLoc, "OpTypeFloat must have bitwidth parameter");
+ if (operands.size() != 2 && operands.size() != 3)
+ return emitError(unknownLoc, "OpTypeFloat must have bitwidth parameter "
+ "and optional floating point encoding");
----------------
kuhar wrote:
This error message is a bit confusing to me and reads like the optional encoding is mandatory. Could you reword this a little bit?
https://github.com/llvm/llvm-project/pull/141458
More information about the Mlir-commits
mailing list