From d320ff374faf85ab33657d3a6f7543702cd4cfc4 Mon Sep 17 00:00:00 2001 From: Whitney Tsang Date: Thu, 17 Apr 2025 15:21:16 +0000 Subject: [PATCH] Remove bfloat error Signed-off-by: Whitney Tsang --- lib/SPIRV/SPIRVWriter.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/SPIRV/SPIRVWriter.cpp b/lib/SPIRV/SPIRVWriter.cpp index a124ba48cf..3f46b56852 100644 --- a/lib/SPIRV/SPIRVWriter.cpp +++ b/lib/SPIRV/SPIRVWriter.cpp @@ -397,6 +397,7 @@ SPIRVType *LLVMToSPIRVBase::transType(Type *T) { } } +#if 0 if (T->isBFloatTy()) { BM->getErrorLog().checkError( BM->isAllowedToUseExtension(ExtensionID::SPV_KHR_bfloat16), @@ -406,6 +407,7 @@ SPIRVType *LLVMToSPIRVBase::transType(Type *T) { "requires this extension"); return mapType(T, BM->addFloatType(16, FPEncodingBFloat16KHR)); } +#endif if (T->isFloatingPointTy()) return mapType(T, BM->addFloatType(T->getPrimitiveSizeInBits()));