diff options
author | Tom Stellard <[email protected]> | 2012-05-11 13:44:24 -0400 |
---|---|---|
committer | Tom Stellard <[email protected]> | 2012-05-11 15:09:52 -0400 |
commit | bcfc97dbf40c256ed59c2424e0c55b845f0f2569 (patch) | |
tree | 75f46800f74716e7703c47a8f0b5b04a1551be6a /src/gallium/drivers/radeon/SIRegisterInfo.h | |
parent | 23c0d469e55b3cb79ad4b2fd0d961562a26234fd (diff) |
radeon/llvm: More comments and cleanups
Diffstat (limited to 'src/gallium/drivers/radeon/SIRegisterInfo.h')
-rw-r--r-- | src/gallium/drivers/radeon/SIRegisterInfo.h | 30 |
1 files changed, 17 insertions, 13 deletions
diff --git a/src/gallium/drivers/radeon/SIRegisterInfo.h b/src/gallium/drivers/radeon/SIRegisterInfo.h index 77f3261efc5..949a1e2f6b7 100644 --- a/src/gallium/drivers/radeon/SIRegisterInfo.h +++ b/src/gallium/drivers/radeon/SIRegisterInfo.h @@ -19,27 +19,31 @@ namespace llvm { - class AMDGPUTargetMachine; - class TargetInstrInfo; +class AMDGPUTargetMachine; +class TargetInstrInfo; - struct SIRegisterInfo : public AMDGPURegisterInfo - { - AMDGPUTargetMachine &TM; - const TargetInstrInfo &TII; +struct SIRegisterInfo : public AMDGPURegisterInfo +{ + AMDGPUTargetMachine &TM; + const TargetInstrInfo &TII; - SIRegisterInfo(AMDGPUTargetMachine &tm, const TargetInstrInfo &tii); + SIRegisterInfo(AMDGPUTargetMachine &tm, const TargetInstrInfo &tii); - virtual BitVector getReservedRegs(const MachineFunction &MF) const; - virtual unsigned getBinaryCode(unsigned reg) const; + virtual BitVector getReservedRegs(const MachineFunction &MF) const; - virtual bool isBaseRegClass(unsigned regClassID) const; + /// getBinaryCode - Returns the hardware encoding for a register + virtual unsigned getBinaryCode(unsigned reg) const; - virtual const TargetRegisterClass * + /// getISARegClass - rc is an AMDIL reg class. This function returns the + /// SI register class that is equivalent to the given AMDIL register class. + virtual const TargetRegisterClass * getISARegClass(const TargetRegisterClass * rc) const; - unsigned getHWRegNum(unsigned reg) const; + /// getHWRegNum - Generated function that returns the hardware encoding for + /// a register + unsigned getHWRegNum(unsigned reg) const; - }; +}; } // End namespace llvm |