[llvm] [SPIRV] Add FPVariant tracking for floating-point registers in SPIR-V (PR #156871)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 8 05:58:09 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 =
----------------
YixingZhang007 wrote:
Yeah, I agree `auto` might be a better choice here. I’ve updated both iterator types to use `auto`. Thanks for the suggestion :)
https://github.com/llvm/llvm-project/pull/156871
More information about the llvm-commits
mailing list