LLVM API Documentation

llvm::MipsRegisterInfo Struct Reference

#include <MipsRegisterInfo.h>

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

List of all members.

Public Member Functions

 MipsRegisterInfo (const MipsSubtarget &Subtarget, const TargetInstrInfo &tii)
void adjustMipsStackFrame (MachineFunction &MF) const
 Adjust the Mips stack frame.
const unsigned * getCalleeSavedRegs (const MachineFunction *MF=0) const
 Code Generation virtual methods...
const TargetRegisterClass *const * getCalleeSavedRegClasses (const MachineFunction *MF=0) const
 Mips Callee Saved Register Classes.
BitVector getReservedRegs (const MachineFunction &MF) const
bool hasFP (const MachineFunction &MF) const
void eliminateCallFramePseudoInstr (MachineFunction &MF, MachineBasicBlock &MBB, MachineBasicBlock::iterator I) const
void eliminateFrameIndex (MachineBasicBlock::iterator II, int SPAdj, RegScavenger *RS=NULL) const
 Stack Frame Processing Methods.
void processFunctionBeforeFrameFinalized (MachineFunction &MF) const
void emitPrologue (MachineFunction &MF) const
void emitEpilogue (MachineFunction &MF, MachineBasicBlock &MBB) const
unsigned getRARegister () const
 Debug information queries.
unsigned getFrameRegister (MachineFunction &MF) const
unsigned getEHExceptionRegister () const
 Exception handling queries.
unsigned getEHHandlerRegister () const
int getDwarfRegNum (unsigned RegNum, bool isEH) const

Static Public Member Functions

static unsigned getRegisterNumbering (unsigned RegEnum)
static unsigned getPICCallReg (void)
 Get PIC indirect call register.

Public Attributes

const MipsSubtarget & Subtarget
const TargetInstrInfo & TII


Detailed Description

Definition at line 26 of file MipsRegisterInfo.h.


Constructor & Destructor Documentation

MipsRegisterInfo::MipsRegisterInfo ( const MipsSubtarget &  Subtarget,
const TargetInstrInfo &  tii 
)

Definition at line 39 of file MipsRegisterInfo.cpp.


Member Function Documentation

unsigned 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).

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

Definition at line 47 of file MipsRegisterInfo.cpp.

References llvm::X86II::D8, llvm::X86II::D9, llvm::X86II::T8, V0, and V1.

unsigned MipsRegisterInfo::getPICCallReg ( void   )  [static]

Get PIC indirect call register.

Definition at line 87 of file MipsRegisterInfo.cpp.

Referenced by emitPrologue().

void MipsRegisterInfo::adjustMipsStackFrame ( MachineFunction &  MF  )  const

const unsigned * MipsRegisterInfo::getCalleeSavedRegs ( const MachineFunction *  MF = 0  )  const

Code Generation virtual methods...

Mips Callee Saved Registers.

Definition at line 95 of file MipsRegisterInfo.cpp.

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

const TargetRegisterClass *const * MipsRegisterInfo::getCalleeSavedRegClasses ( const MachineFunction *  MF = 0  )  const

Mips Callee Saved Register Classes.

Definition at line 120 of file MipsRegisterInfo.cpp.

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

BitVector MipsRegisterInfo::getReservedRegs ( const MachineFunction &  MF  )  const

Definition at line 149 of file MipsRegisterInfo.cpp.

References llvm::BitVector::set().

bool MipsRegisterInfo::hasFP ( const MachineFunction &  MF  )  const

void MipsRegisterInfo::eliminateCallFramePseudoInstr ( MachineFunction &  MF,
MachineBasicBlock &  MBB,
MachineBasicBlock::iterator  I 
) const

Definition at line 334 of file MipsRegisterInfo.cpp.

References llvm::MachineBasicBlock::erase().

void MipsRegisterInfo::eliminateFrameIndex ( MachineBasicBlock::iterator  II,
int  SPAdj,
RegScavenger *  RS = NULL 
) const

void MipsRegisterInfo::processFunctionBeforeFrameFinalized ( MachineFunction &  MF  )  const

void MipsRegisterInfo::emitPrologue ( MachineFunction &  MF  )  const

void MipsRegisterInfo::emitEpilogue ( MachineFunction &  MF,
MachineBasicBlock &  MBB 
) const

unsigned MipsRegisterInfo::getRARegister (  )  const

Debug information queries.

Definition at line 498 of file MipsRegisterInfo.cpp.

unsigned MipsRegisterInfo::getFrameRegister ( MachineFunction &  MF  )  const

Definition at line 503 of file MipsRegisterInfo.cpp.

References hasFP().

Referenced by eliminateFrameIndex().

unsigned MipsRegisterInfo::getEHExceptionRegister (  )  const

Exception handling queries.

Definition at line 508 of file MipsRegisterInfo.cpp.

unsigned MipsRegisterInfo::getEHHandlerRegister (  )  const

Definition at line 514 of file MipsRegisterInfo.cpp.

int MipsRegisterInfo::getDwarfRegNum ( unsigned  RegNum,
bool  isEH 
) const

Definition at line 520 of file MipsRegisterInfo.cpp.


Member Data Documentation

Definition at line 28 of file MipsRegisterInfo.h.

Referenced by emitEpilogue(), and emitPrologue().


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