LLVM API Documentation

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
llvm::MipsRegisterInfo Class Referenceabstract

#include <MipsRegisterInfo.h>

Inheritance diagram for llvm::MipsRegisterInfo:
Inheritance graph
[legend]
Collaboration diagram for llvm::MipsRegisterInfo:
Collaboration graph
[legend]

Public Member Functions

 MipsRegisterInfo (const MipsSubtarget &Subtarget)
 
void adjustMipsStackFrame (MachineFunction &MF) const
 Adjust the Mips stack frame. More...
 
const TargetRegisterClassgetPointerRegClass (const MachineFunction &MF, unsigned Kind) const
 Code Generation virtual methods... More...
 
unsigned getRegPressureLimit (const TargetRegisterClass *RC, MachineFunction &MF) const
 
const uint16_t * getCalleeSavedRegs (const MachineFunction *MF=0) const
 Mips Callee Saved Registers. More...
 
const uint32_t * getCallPreservedMask (CallingConv::ID) const
 
BitVector getReservedRegs (const MachineFunction &MF) const
 
virtual bool requiresRegisterScavenging (const MachineFunction &MF) const
 
virtual bool trackLivenessAfterRegAlloc (const MachineFunction &MF) const
 
void eliminateFrameIndex (MachineBasicBlock::iterator II, int SPAdj, unsigned FIOperandNum, RegScavenger *RS=NULL) const
 Stack Frame Processing Methods. More...
 
void processFunctionBeforeFrameFinalized (MachineFunction &MF, RegScavenger *RS=NULL) const
 
unsigned getFrameRegister (const MachineFunction &MF) const
 Debug information queries. More...
 
virtual const TargetRegisterClassintRegClass (unsigned Size) const =0
 Return GPR register class. More...
 

Static Public Member Functions

static unsigned getRegisterNumbering (unsigned RegEnum)
 
static unsigned getPICCallReg ()
 Get PIC indirect call register. More...
 
static const uint32_t * getMips16RetHelperMask ()
 

Protected Attributes

const MipsSubtargetSubtarget
 

Detailed Description

Definition at line 27 of file MipsRegisterInfo.h.

Constructor & Destructor Documentation

MipsRegisterInfo::MipsRegisterInfo ( const MipsSubtarget Subtarget)

Definition at line 45 of file MipsRegisterInfo.cpp.

Member Function Documentation

void llvm::MipsRegisterInfo::adjustMipsStackFrame ( MachineFunction MF) const

Adjust the Mips stack frame.

void MipsRegisterInfo::eliminateFrameIndex ( MachineBasicBlock::iterator  II,
int  SPAdj,
unsigned  FIOperandNum,
RegScavenger RS = NULL 
) const
const uint16_t * MipsRegisterInfo::getCalleeSavedRegs ( const MachineFunction MF = 0) const
const uint32_t * MipsRegisterInfo::getCallPreservedMask ( CallingConv::ID  ) const
unsigned MipsRegisterInfo::getFrameRegister ( const MachineFunction MF) const
const uint32_t * MipsRegisterInfo::getMips16RetHelperMask ( )
static

Definition at line 116 of file MipsRegisterInfo.cpp.

Referenced by llvm::MipsTargetLowering::getOpndList().

unsigned MipsRegisterInfo::getPICCallReg ( )
static

Get PIC indirect call register.

Definition at line 48 of file MipsRegisterInfo.cpp.

const TargetRegisterClass * MipsRegisterInfo::getPointerRegClass ( const MachineFunction MF,
unsigned  Kind 
) const

Code Generation virtual methods...

Definition at line 51 of file MipsRegisterInfo.cpp.

References llvm::MipsSubtarget::isABI_N64(), and Subtarget.

static unsigned llvm::MipsRegisterInfo::getRegisterNumbering ( unsigned  RegEnum)
static

getRegisterNumbering - Given the enum value for some register, e.g. Mips::RA, return the number that it corresponds to (e.g. 31).

unsigned MipsRegisterInfo::getRegPressureLimit ( const TargetRegisterClass RC,
MachineFunction MF 
) const
BitVector MipsRegisterInfo::getReservedRegs ( const MachineFunction MF) const
virtual const TargetRegisterClass* llvm::MipsRegisterInfo::intRegClass ( unsigned  Size) const
pure virtual

Return GPR register class.

Implemented in llvm::Mips16RegisterInfo, and llvm::MipsSERegisterInfo.

void llvm::MipsRegisterInfo::processFunctionBeforeFrameFinalized ( MachineFunction MF,
RegScavenger RS = NULL 
) const
bool MipsRegisterInfo::requiresRegisterScavenging ( const MachineFunction MF) const
virtual

Reimplemented in llvm::MipsSERegisterInfo, and llvm::Mips16RegisterInfo.

Definition at line 198 of file MipsRegisterInfo.cpp.

bool MipsRegisterInfo::trackLivenessAfterRegAlloc ( const MachineFunction MF) const
virtual

Definition at line 203 of file MipsRegisterInfo.cpp.

Member Data Documentation

const MipsSubtarget& llvm::MipsRegisterInfo::Subtarget
protected

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