[llvm] [SPIRV] Add FPVariant tracking for floating-point registers in SPIR-V (PR #156871)

Marcos Maronas via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 5 13:18:24 PDT 2025


================
@@ -2088,3 +2100,21 @@ bool SPIRVGlobalRegistry::hasBlockDecoration(SPIRVType *Type) const {
   }
   return false;
 }
+
+SPIRVGlobalRegistry::FPVariant
+SPIRVGlobalRegistry::getFPVariantForVReg(Register VReg,
+                                         const MachineFunction *MF) {
+  const MachineFunction *Func = MF ? MF : CurMF;
+  DenseMap<const MachineFunction *,
+           DenseMap<Register, FPVariant>>::const_iterator FuncIt =
----------------
maarquitos14 wrote:

I didn't realize it was such a nasty type. You can go back to auto if you wish. 

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


More information about the llvm-commits mailing list