Skip to content

Commit d320ff3

Browse files
Remove bfloat error
Signed-off-by: Whitney Tsang <[email protected]>
1 parent c3b8056 commit d320ff3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/SPIRV/SPIRVWriter.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -397,6 +397,7 @@ SPIRVType *LLVMToSPIRVBase::transType(Type *T) {
397397
}
398398
}
399399

400+
#if 0
400401
if (T->isBFloatTy()) {
401402
BM->getErrorLog().checkError(
402403
BM->isAllowedToUseExtension(ExtensionID::SPV_KHR_bfloat16),
@@ -406,6 +407,7 @@ SPIRVType *LLVMToSPIRVBase::transType(Type *T) {
406407
"requires this extension");
407408
return mapType(T, BM->addFloatType(16, FPEncodingBFloat16KHR));
408409
}
410+
#endif
409411

410412
if (T->isFloatingPointTy())
411413
return mapType(T, BM->addFloatType(T->getPrimitiveSizeInBits()));

0 commit comments

Comments
 (0)