[llvm] [SPIRV] Add FPVariant tracking for floating-point registers in SPIR-V (PR #156871)
Dmitry Sidorov via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 8 08:09:22 PDT 2025
================
@@ -88,6 +92,11 @@ class SPIRVGlobalRegistry : public SPIRVIRMapping {
// map of aliasing decorations to aliasing metadata
std::unordered_map<const MDNode *, MachineInstr *> AliasInstMDMap;
+ // Maps floating point Registers to their FPVariant (float type kind), given
+ // the MachineFunction.
+ DenseMap<const MachineFunction *, DenseMap<Register, FPVariant>>
----------------
MrSidims wrote:
Why it's not enough to use VRegToTypeMap?
https://github.com/llvm/llvm-project/pull/156871
More information about the llvm-commits
mailing list