[Mlir-commits] [mlir] [mlir][spirv] Add bfloat16 support (PR #141458)

Igor Wodiany llvmlistbot at llvm.org
Tue May 27 04:22:37 PDT 2025


================
@@ -175,10 +175,7 @@ static Type parseAndVerifyType(SPIRVDialect const &dialect,
 
   // Check other allowed types
   if (auto t = llvm::dyn_cast<FloatType>(type)) {
-    if (type.isBF16()) {
-      parser.emitError(typeLoc, "cannot use 'bf16' to compose SPIR-V types");
-      return Type();
-    }
+    // TODO: All float types are allowed for now, but this should be fixed.
----------------
IgWod-IMG wrote:

Could you please elaborate what needs to be fixed here?

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


More information about the Mlir-commits mailing list