[Mlir-commits] [mlir] [mlir][spirv] Add bfloat16 support (PR #141458)
Igor Wodiany
llvmlistbot at llvm.org
Thu May 29 03:21:23 PDT 2025
================
@@ -882,8 +883,22 @@ LogicalResult spirv::Deserializer::processType(spirv::Opcode opcode,
break;
default:
return emitError(unknownLoc, "unsupported OpTypeFloat bitwidth: ")
- << operands[1];
+ << bitWidth;
}
+
+ if (operands.size() == 3) {
+ if (spirv::FPEncoding(operands[2]) != spirv::FPEncoding::BFloat16KHR) {
----------------
IgWod-IMG wrote:
Nit: I wonder if braces here and below are necessary: https://llvm.org/docs/CodingStandards.html#don-t-use-braces-on-simple-single-statement-bodies-of-if-else-loop-statements
https://github.com/llvm/llvm-project/pull/141458
More information about the Mlir-commits
mailing list