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

#include "Target/Hexagon/HexagonRegisterInfo.h"

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

Public Member Functions

 HexagonRegisterInfo ()
 
const MCPhysReg * getCalleeSavedRegs (const MachineFunction *MF) const override
 Code Generation virtual methods... More...
 
const uint32_t * getCallPreservedMask (const MachineFunction &MF, CallingConv::ID) const override
 
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 MCPhysReg * getCallerSavedRegs (const MachineFunction *MF, const TargetRegisterClass *RC) const
 
unsigned getFirstCallerSavedNonParamReg () const
 
bool isEHReturnCalleeSaveReg (unsigned Reg) const
 

Detailed Description

Definition at line 31 of file HexagonRegisterInfo.h.

Constructor & Destructor Documentation

HexagonRegisterInfo::HexagonRegisterInfo ( )

Definition at line 44 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
const uint32_t * HexagonRegisterInfo::getCallPreservedMask ( const MachineFunction &  MF,
CallingConv::ID   
) const
override

Definition at line 135 of file HexagonRegisterInfo.cpp.

unsigned HexagonRegisterInfo::getFirstCallerSavedNonParamReg ( ) const

Definition at line 287 of file HexagonRegisterInfo.cpp.

References R6.

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

Definition at line 249 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
unsigned HexagonRegisterInfo::getStackRegister ( ) const
bool HexagonRegisterInfo::isEHReturnCalleeSaveReg ( unsigned  Reg) const

Definition at line 48 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 54 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 48 of file HexagonRegisterInfo.h.

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

Definition at line 61 of file HexagonRegisterInfo.h.

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

Returns true if the frame pointer is valid.

Definition at line 281 of file HexagonRegisterInfo.cpp.

References llvm::MachineFunction::getSubtarget().


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