LLVM API Documentation

Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

llvm::SparcV9RegisterInfo Struct Reference

#include <SparcV9RegisterInfo.h>

Inheritance diagram for llvm::SparcV9RegisterInfo:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 SparcV9RegisterInfo ()
const unsigned * getCalleeSaveRegs () const
void storeRegToStackSlot (MachineBasicBlock &MBB, MachineBasicBlock::iterator MI, unsigned SrcReg, int FrameIndex) const
void loadRegFromStackSlot (MachineBasicBlock &MBB, MachineBasicBlock::iterator MI, unsigned DestReg, int FrameIndex) const
void copyRegToReg (MachineBasicBlock &MBB, MachineBasicBlock::iterator MI, unsigned DestReg, unsigned SrcReg, const TargetRegisterClass *RC) const
void eliminateFrameIndex (MachineBasicBlock::iterator MI) const
void emitPrologue (MachineFunction &MF) const
void emitEpilogue (MachineFunction &MF, MachineBasicBlock &MBB) const

Detailed Description

Definition at line 23 of file SparcV9RegisterInfo.h.


Constructor & Destructor Documentation

SparcV9RegisterInfo::SparcV9RegisterInfo  ) 
 

Definition at line 274 of file SparcV9RegisterInfo.cpp.


Member Function Documentation

void SparcV9RegisterInfo::copyRegToReg MachineBasicBlock MBB,
MachineBasicBlock::iterator  MI,
unsigned  DestReg,
unsigned  SrcReg,
const TargetRegisterClass RC
const [virtual]
 

Implements llvm::MRegisterInfo.

Definition at line 291 of file SparcV9RegisterInfo.cpp.

References abort().

void SparcV9RegisterInfo::eliminateFrameIndex MachineBasicBlock::iterator  MI  )  const [virtual]
 

eliminateFrameIndex - This method must be overriden to eliminate abstract frame indices from instructions which may use them. The instruction referenced by the iterator contains an MO_FrameIndex operand which must be eliminated by this method. This method may modify or replace the specified instruction, as long as it keeps the iterator pointing the the finished product. The return value is the number of instructions added to (negative if removed from) the basic block.

Implements llvm::MRegisterInfo.

Definition at line 298 of file SparcV9RegisterInfo.cpp.

References abort().

void SparcV9RegisterInfo::emitEpilogue MachineFunction MF,
MachineBasicBlock MBB
const [virtual]
 

Implements llvm::MRegisterInfo.

Definition at line 307 of file SparcV9RegisterInfo.cpp.

References abort().

void SparcV9RegisterInfo::emitPrologue MachineFunction MF  )  const [virtual]
 

emitProlog/emitEpilog - These methods insert prolog and epilog code into the function. The return value is the number of instructions added to (negative if removed from) the basic block (entry for prologue).

Implements llvm::MRegisterInfo.

Definition at line 303 of file SparcV9RegisterInfo.cpp.

References abort().

const unsigned * llvm::SparcV9RegisterInfo::getCalleeSaveRegs  )  const [virtual]
 

Implements llvm::MRegisterInfo.

Definition at line 248 of file SparcV9RegisterInfo.cpp.

References llvm::SparcV9::g0, llvm::SparcV9::g1, llvm::SparcV9::g2, llvm::SparcV9::g3, llvm::SparcV9::g4, llvm::SparcV9::g5, llvm::SparcV9::g6, llvm::SparcV9::g7, llvm::SparcV9::i0, llvm::SparcV9::i1, llvm::SparcV9::i2, llvm::SparcV9::i3, llvm::SparcV9::i4, llvm::SparcV9::i5, llvm::SparcV9::i6, llvm::SparcV9::i7, llvm::SparcV9::l0, llvm::SparcV9::l1, llvm::SparcV9::l2, llvm::SparcV9::l3, llvm::SparcV9::l4, llvm::SparcV9::l5, llvm::SparcV9::l6, llvm::SparcV9::l7, and llvm::SparcV9::o6.

void SparcV9RegisterInfo::loadRegFromStackSlot MachineBasicBlock MBB,
MachineBasicBlock::iterator  MI,
unsigned  DestReg,
int  FrameIndex
const [virtual]
 

Implements llvm::MRegisterInfo.

Definition at line 285 of file SparcV9RegisterInfo.cpp.

References abort().

void SparcV9RegisterInfo::storeRegToStackSlot MachineBasicBlock MBB,
MachineBasicBlock::iterator  MI,
unsigned  SrcReg,
int  FrameIndex
const [virtual]
 

Implements llvm::MRegisterInfo.

Definition at line 279 of file SparcV9RegisterInfo.cpp.

References abort().


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