LLVM API Documentation

llvm::SystemZRegisterInfo Struct Reference

#include <SystemZRegisterInfo.h>

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

List of all members.

Public Member Functions

 SystemZRegisterInfo (SystemZTargetMachine &tm, const SystemZInstrInfo &tii)
const unsigned * getCalleeSavedRegs (const MachineFunction *MF=0) const
 Code Generation virtual methods...
const TargetRegisterClass *const * getCalleeSavedRegClasses (const MachineFunction *MF=0) const
BitVector getReservedRegs (const MachineFunction &MF) const
bool hasReservedCallFrame (MachineFunction &MF) const
bool hasFP (const MachineFunction &MF) const
int getFrameIndexOffset (MachineFunction &MF, int FI) const
void eliminateCallFramePseudoInstr (MachineFunction &MF, MachineBasicBlock &MBB, MachineBasicBlock::iterator I) const
void eliminateFrameIndex (MachineBasicBlock::iterator II, int SPAdj, RegScavenger *RS=NULL) const
void processFunctionBeforeCalleeSavedScan (MachineFunction &MF, RegScavenger *RS) const
void emitPrologue (MachineFunction &MF) const
void emitEpilogue (MachineFunction &MF, MachineBasicBlock &MBB) const
unsigned getRARegister () const
unsigned getFrameRegister (MachineFunction &MF) const
unsigned getEHExceptionRegister () const
unsigned getEHHandlerRegister () const
int getDwarfRegNum (unsigned RegNum, bool isEH) const

Public Attributes

SystemZTargetMachine & TM
const SystemZInstrInfo & TII


Detailed Description

Definition at line 35 of file SystemZRegisterInfo.h.


Constructor & Destructor Documentation

SystemZRegisterInfo::SystemZRegisterInfo ( SystemZTargetMachine &  tm,
const SystemZInstrInfo &  tii 
)

Definition at line 30 of file SystemZRegisterInfo.cpp.


Member Function Documentation

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

Code Generation virtual methods...

Definition at line 37 of file SystemZRegisterInfo.cpp.

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

Definition at line 51 of file SystemZRegisterInfo.cpp.

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

Definition at line 66 of file SystemZRegisterInfo.cpp.

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

bool llvm::SystemZRegisterInfo::hasReservedCallFrame ( MachineFunction &  MF  )  const [inline]

Definition at line 49 of file SystemZRegisterInfo.h.

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

needsFP - Return true if the specified function should have a dedicated frame pointer register. This is true if the function has variable sized allocas or if frame pointer elimination is disabled.

Definition at line 78 of file SystemZRegisterInfo.cpp.

References llvm::MachineFunction::getFrameInfo(), llvm::MachineFrameInfo::hasVarSizedObjects(), MFI, and llvm::NoFramePointerElim.

Referenced by eliminateFrameIndex(), emitPrologue(), and getReservedRegs().

int SystemZRegisterInfo::getFrameIndexOffset ( MachineFunction &  MF,
int  FI 
) const

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

Definition at line 84 of file SystemZRegisterInfo.cpp.

References llvm::MachineBasicBlock::erase().

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

void SystemZRegisterInfo::processFunctionBeforeCalleeSavedScan ( MachineFunction &  MF,
RegScavenger *  RS 
) const

void SystemZRegisterInfo::emitPrologue ( MachineFunction &  MF  )  const

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

unsigned SystemZRegisterInfo::getRARegister (  )  const

Definition at line 316 of file SystemZRegisterInfo.cpp.

unsigned SystemZRegisterInfo::getFrameRegister ( MachineFunction &  MF  )  const

Definition at line 321 of file SystemZRegisterInfo.cpp.

unsigned SystemZRegisterInfo::getEHExceptionRegister (  )  const

Definition at line 326 of file SystemZRegisterInfo.cpp.

unsigned SystemZRegisterInfo::getEHHandlerRegister (  )  const

Definition at line 331 of file SystemZRegisterInfo.cpp.

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

Definition at line 336 of file SystemZRegisterInfo.cpp.


Member Data Documentation

Definition at line 36 of file SystemZRegisterInfo.h.

Definition at line 37 of file SystemZRegisterInfo.h.

Referenced by eliminateFrameIndex(), emitEpilogue(), and emitPrologue().


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