summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/R600/SIMachineFunctionInfo.h
diff options
context:
space:
mode:
authorTom Stellard <thomas.stellard@amd.com>2014-08-21 20:40:56 +0000
committerTom Stellard <thomas.stellard@amd.com>2014-08-21 20:40:56 +0000
commit8e52375bb57a65a6c2e9f929c343d4870f1f7e9e (patch)
tree0c2bb18af5488f77e24ce9d05b5574ab45896440 /llvm/lib/Target/R600/SIMachineFunctionInfo.h
parentc5cf2f04d93849c9f8447227b1e9980afef0c8b5 (diff)
downloadbcm5719-llvm-8e52375bb57a65a6c2e9f929c343d4870f1f7e9e.tar.gz
bcm5719-llvm-8e52375bb57a65a6c2e9f929c343d4870f1f7e9e.zip
R600/SI: Remove unused SGPR spilling code
llvm-svn: 216218
Diffstat (limited to 'llvm/lib/Target/R600/SIMachineFunctionInfo.h')
-rw-r--r--llvm/lib/Target/R600/SIMachineFunctionInfo.h19
1 files changed, 0 insertions, 19 deletions
diff --git a/llvm/lib/Target/R600/SIMachineFunctionInfo.h b/llvm/lib/Target/R600/SIMachineFunctionInfo.h
index fcaa23a619b..2917edfcd67 100644
--- a/llvm/lib/Target/R600/SIMachineFunctionInfo.h
+++ b/llvm/lib/Target/R600/SIMachineFunctionInfo.h
@@ -36,31 +36,12 @@ public:
bool hasLane() { return Lane != -1;}
};
- struct RegSpillTracker {
- private:
- unsigned CurrentLane;
- std::map<unsigned, SpilledReg> SpilledRegisters;
- public:
- unsigned LaneVGPR;
- RegSpillTracker() : CurrentLane(0), SpilledRegisters(), LaneVGPR(0) { }
- /// \p NumRegs The number of consecutive registers what need to be spilled.
- /// This function will ensure that all registers are stored in
- /// the same VGPR.
- /// \returns The lane to be used for storing the first register.
- unsigned reserveLanes(MachineRegisterInfo &MRI, MachineFunction *MF,
- unsigned NumRegs = 1);
- void addSpilledReg(unsigned FrameIndex, unsigned Reg, int Lane = -1);
- const SpilledReg& getSpilledReg(unsigned FrameIndex);
- bool programSpillsRegisters() { return !SpilledRegisters.empty(); }
- };
-
// SIMachineFunctionInfo definition
SIMachineFunctionInfo(const MachineFunction &MF);
SpilledReg getSpilledReg(MachineFunction *MF, unsigned FrameIndex,
unsigned SubIdx);
unsigned PSInputAddr;
- struct RegSpillTracker SpillTracker;
unsigned NumUserSGPRs;
std::map<unsigned, unsigned> LaneVGPRs;
};
OpenPOWER on IntegriCloud