LLVM  4.0.0
Public Member Functions | List of all members
llvm::HexagonRegisterInfo Class Reference

#include <HexagonRegisterInfo.h>

Inheritance diagram for llvm::HexagonRegisterInfo:
[legend]
Collaboration diagram for llvm::HexagonRegisterInfo:
[legend]

Public Member Functions

 HexagonRegisterInfo ()
 
const MCPhysReggetCalleeSavedRegs (const MachineFunction *MF) const override
 Code Generation virtual methods... More...
 
BitVector getReservedRegs (const MachineFunction &MF) const override
 
void eliminateFrameIndex (MachineBasicBlock::iterator II, int SPAdj, unsigned FIOperandNum, RegScavenger *RS=nullptr) const override
 
bool requiresRegisterScavenging (const MachineFunction &MF) const override
 Returns true since we may need scavenging for a temporary register when generating hardware loop instructions. More...
 
bool requiresFrameIndexScavenging (const MachineFunction &MF) const override
 Returns true. More...
 
bool useFPForScavengingIndex (const MachineFunction &MF) const override
 Returns true if the frame pointer is valid. More...
 
bool trackLivenessAfterRegAlloc (const MachineFunction &MF) const override
 
unsigned getRARegister () const
 
unsigned getFrameRegister (const MachineFunction &MF) const override
 
unsigned getFrameRegister () const
 
unsigned getStackRegister () const
 
unsigned getHexagonSubRegIndex (const TargetRegisterClass *RC, unsigned GenIdx) const
 
const MCPhysReggetCallerSavedRegs (const MachineFunction *MF, const TargetRegisterClass *RC) const
 
unsigned getFirstCallerSavedNonParamReg () const
 
bool isEHReturnCalleeSaveReg (unsigned Reg) const
 
bool isCalleeSaveReg (unsigned Reg) const
 

Detailed Description

Definition at line 31 of file HexagonRegisterInfo.h.

Constructor & Destructor Documentation

HexagonRegisterInfo::HexagonRegisterInfo ( )

Definition at line 41 of file HexagonRegisterInfo.cpp.

Member Function Documentation

void HexagonRegisterInfo::eliminateFrameIndex ( MachineBasicBlock::iterator  II,
int  SPAdj,
unsigned  FIOperandNum,
RegScavenger RS = nullptr 
) const
override
const MCPhysReg * HexagonRegisterInfo::getCalleeSavedRegs ( const MachineFunction MF) const
override
const MCPhysReg * HexagonRegisterInfo::getCallerSavedRegs ( const MachineFunction MF,
const TargetRegisterClass RC 
) const
unsigned HexagonRegisterInfo::getFirstCallerSavedNonParamReg ( ) const

Definition at line 266 of file HexagonRegisterInfo.cpp.

References R6.

unsigned HexagonRegisterInfo::getFrameRegister ( const MachineFunction MF) const
override
unsigned HexagonRegisterInfo::getFrameRegister ( ) const

Definition at line 228 of file HexagonRegisterInfo.cpp.

Referenced by getFrameRegister().

unsigned HexagonRegisterInfo::getHexagonSubRegIndex ( const TargetRegisterClass RC,
unsigned  GenIdx 
) const
unsigned HexagonRegisterInfo::getRARegister ( ) const
BitVector HexagonRegisterInfo::getReservedRegs ( const MachineFunction MF) const
override

Definition at line 136 of file HexagonRegisterInfo.cpp.

References PC, and llvm::BitVector::set().

unsigned HexagonRegisterInfo::getStackRegister ( ) const
bool HexagonRegisterInfo::isCalleeSaveReg ( unsigned  Reg) const

Definition at line 50 of file HexagonRegisterInfo.cpp.

bool HexagonRegisterInfo::isEHReturnCalleeSaveReg ( unsigned  Reg) const

Definition at line 45 of file HexagonRegisterInfo.cpp.

References R2.

bool llvm::HexagonRegisterInfo::requiresFrameIndexScavenging ( const MachineFunction MF) const
inlineoverride

Returns true.

Spill code for predicate registers might need an extra register.

Definition at line 53 of file HexagonRegisterInfo.h.

bool llvm::HexagonRegisterInfo::requiresRegisterScavenging ( const MachineFunction MF) const
inlineoverride

Returns true since we may need scavenging for a temporary register when generating hardware loop instructions.

Definition at line 47 of file HexagonRegisterInfo.h.

bool llvm::HexagonRegisterInfo::trackLivenessAfterRegAlloc ( const MachineFunction MF) const
inlineoverride

Definition at line 60 of file HexagonRegisterInfo.h.

bool HexagonRegisterInfo::useFPForScavengingIndex ( const MachineFunction MF) const
override

Returns true if the frame pointer is valid.

Definition at line 260 of file HexagonRegisterInfo.cpp.

References llvm::MachineFunction::getSubtarget().


The documentation for this class was generated from the following files: