[llvm] [SPIRV] Add support for the SPIR-V extension SPV_KHR_bfloat16 (PR #155645)
    Dmitry Sidorov via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Mon Sep  8 15:49:29 PDT 2025
    
    
  
================
@@ -195,11 +195,15 @@ SPIRVType *SPIRVGlobalRegistry::getOpTypeInt(unsigned Width,
 }
 
 SPIRVType *SPIRVGlobalRegistry::getOpTypeFloat(uint32_t Width,
-                                               MachineIRBuilder &MIRBuilder) {
+                                               MachineIRBuilder &MIRBuilder, bool isBfloatTy) {
----------------
MrSidims wrote:
We actually can keep the enum and pass it as an argument. Reason: apart of IEEE-754 and bfloat types we will be introducing 8-bit floating point types (soon) and potentially other types later. So having the enum instead of the boolean flag would help here.
https://github.com/llvm/llvm-project/pull/155645
    
    
More information about the llvm-commits
mailing list