1 //===-- SIRegisterInfo.h - SI Register Info Interface ----------*- C++ -*--===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
11 /// \brief Interface definition for SIRegisterInfo
13 //===----------------------------------------------------------------------===//
16 #ifndef SIREGISTERINFO_H_
17 #define SIREGISTERINFO_H_
19 #include "AMDGPURegisterInfo.h"
23 class AMDGPUTargetMachine;
24 class TargetInstrInfo;
26 struct SIRegisterInfo : public AMDGPURegisterInfo {
27 AMDGPUTargetMachine &TM;
28 const TargetInstrInfo &TII;
30 SIRegisterInfo(AMDGPUTargetMachine &tm, const TargetInstrInfo &tii);
32 virtual BitVector getReservedRegs(const MachineFunction &MF) const;
34 /// \param RC is an AMDIL reg class.
36 /// \returns the SI register class that is equivalent to \p RC.
37 virtual const TargetRegisterClass *
38 getISARegClass(const TargetRegisterClass *RC) const;
40 /// \brief get the register class of the specified type to use in the
42 virtual const TargetRegisterClass * getCFGStructurizerRegClass(MVT VT) const;
45 } // End namespace llvm
47 #endif // SIREGISTERINFO_H_