[Mlir-commits] [mlir] [mlir][spirv] Add bfloat16 support (PR #141458)
Jakub Kuderski
llvmlistbot at llvm.org
Thu Jun 12 14:29:46 PDT 2025
================
@@ -867,11 +867,14 @@ 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 expects either 2 operands (type, bitwidth) "
+ "or 3 operands (type, bitwidth, encoding)");
----------------
kuhar wrote:
It would be nice to also print the actual number of operands
https://github.com/llvm/llvm-project/pull/141458
More information about the Mlir-commits
mailing list