LLVM API Documentation

llvm::ARMBaseRegisterInfo Struct Reference

#include <ARMBaseRegisterInfo.h>

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

List of all members.

Public Member Functions

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
const TargetRegisterClass * getPointerRegClass (unsigned Kind=0) const
std::pair
< TargetRegisterClass::iterator,
TargetRegisterClass::iterator > 
getAllocationOrder (const TargetRegisterClass *RC, unsigned HintType, unsigned HintReg, const MachineFunction &MF) const
unsigned ResolveRegAllocHint (unsigned Type, unsigned Reg, const MachineFunction &MF) const
void UpdateRegAllocHint (unsigned Reg, unsigned NewReg, MachineFunction &MF) const
bool hasFP (const MachineFunction &MF) const
bool cannotEliminateFrame (const MachineFunction &MF) const
void processFunctionBeforeCalleeSavedScan (MachineFunction &MF, RegScavenger *RS=NULL) const
unsigned getRARegister () const
unsigned getFrameRegister (MachineFunction &MF) const
unsigned getEHExceptionRegister () const
unsigned getEHHandlerRegister () const
int getDwarfRegNum (unsigned RegNum, bool isEH) const
bool isLowRegister (unsigned Reg) const
virtual void emitLoadConstPool (MachineBasicBlock &MBB, MachineBasicBlock::iterator &MBBI, DebugLoc dl, unsigned DestReg, unsigned SubIdx, int Val, ARMCC::CondCodes Pred=ARMCC::AL, unsigned PredReg=0) const
virtual bool isReservedReg (const MachineFunction &MF, unsigned Reg) const
 Code Generation virtual methods...
virtual bool requiresRegisterScavenging (const MachineFunction &MF) const
virtual bool hasReservedCallFrame (MachineFunction &MF) const
virtual void eliminateCallFramePseudoInstr (MachineFunction &MF, MachineBasicBlock &MBB, MachineBasicBlock::iterator I) const
virtual void eliminateFrameIndex (MachineBasicBlock::iterator II, int SPAdj, RegScavenger *RS=NULL) const
virtual void emitPrologue (MachineFunction &MF) const
virtual void emitEpilogue (MachineFunction &MF, MachineBasicBlock &MBB) const

Static Public Member Functions

static unsigned getRegisterNumbering (unsigned RegEnum, bool *isSPVFP=0)

Protected Member Functions

 ARMBaseRegisterInfo (const ARMBaseInstrInfo &tii, const ARMSubtarget &STI)
unsigned getOpcode (int Op) const

Protected Attributes

const ARMBaseInstrInfo & TII
const ARMSubtarget & STI
unsigned FramePtr
 FramePtr - ARM physical register used as frame ptr.


Detailed Description

Definition at line 47 of file ARMBaseRegisterInfo.h.


Constructor & Destructor Documentation

ARMBaseRegisterInfo::ARMBaseRegisterInfo ( const ARMBaseInstrInfo &  tii,
const ARMSubtarget &  STI 
) [explicit, protected]

Definition at line 133 of file ARMBaseRegisterInfo.cpp.


Member Function Documentation

unsigned llvm::ARMBaseRegisterInfo::getOpcode ( int  Op  )  const [protected]

unsigned ARMBaseRegisterInfo::getRegisterNumbering ( unsigned  RegEnum,
bool *  isSPVFP = 0 
) [static]

getRegisterNumbering - Given the enum value for some register, e.g. ARM::LR, return the number that it corresponds to (e.g. 14). It also returns true in isSPVFP if the register is a single precision VFP register.

Definition at line 41 of file ARMBaseRegisterInfo.cpp.

References llvm::X86II::D8, llvm::X86II::D9, and llvm_unreachable.

Referenced by llvm::ARMJITInfo::relocate().

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

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

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

const TargetRegisterClass * ARMBaseRegisterInfo::getPointerRegClass ( unsigned  Kind = 0  )  const

Definition at line 247 of file ARMBaseRegisterInfo.cpp.

std::pair< TargetRegisterClass::iterator, TargetRegisterClass::iterator > ARMBaseRegisterInfo::getAllocationOrder ( const TargetRegisterClass *  RC,
unsigned  HintType,
unsigned  HintReg,
const MachineFunction &  MF 
) const

getAllocationOrder - Returns the register allocation order for a specified register class in the form of a pair of TargetRegisterClass iterators.

Definition at line 254 of file ARMBaseRegisterInfo.cpp.

References llvm::TargetRegisterClass::allocation_order_begin(), llvm::TargetRegisterClass::allocation_order_end(), FramePtr, hasFP(), llvm::ARMSubtarget::isR9Reserved(), llvm::ARMSubtarget::isTargetDarwin(), llvm::ARMRI::RegPairEven, llvm::ARMRI::RegPairOdd, and STI.

unsigned ARMBaseRegisterInfo::ResolveRegAllocHint ( unsigned  Type,
unsigned  Reg,
const MachineFunction &  MF 
) const

ResolveRegAllocHint - Resolves the specified register allocation hint to a physical register. Returns the physical register if it is successful.

Definition at line 397 of file ARMBaseRegisterInfo.cpp.

References llvm::ARMRI::RegPairEven, and llvm::ARMRI::RegPairOdd.

void ARMBaseRegisterInfo::UpdateRegAllocHint ( unsigned  Reg,
unsigned  NewReg,
MachineFunction &  MF 
) const

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

bool ARMBaseRegisterInfo::cannotEliminateFrame ( const MachineFunction &  MF  )  const

void ARMBaseRegisterInfo::processFunctionBeforeCalleeSavedScan ( MachineFunction &  MF,
RegScavenger *  RS = NULL 
) const

unsigned ARMBaseRegisterInfo::getRARegister (  )  const

Definition at line 698 of file ARMBaseRegisterInfo.cpp.

unsigned ARMBaseRegisterInfo::getFrameRegister ( MachineFunction &  MF  )  const

unsigned ARMBaseRegisterInfo::getEHExceptionRegister (  )  const

Definition at line 708 of file ARMBaseRegisterInfo.cpp.

References llvm_unreachable.

unsigned ARMBaseRegisterInfo::getEHHandlerRegister (  )  const

Definition at line 713 of file ARMBaseRegisterInfo.cpp.

References llvm_unreachable.

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

Definition at line 718 of file ARMBaseRegisterInfo.cpp.

bool llvm::ARMBaseRegisterInfo::isLowRegister ( unsigned  Reg  )  const

void ARMBaseRegisterInfo::emitLoadConstPool ( MachineBasicBlock &  MBB,
MachineBasicBlock::iterator &  MBBI,
DebugLoc  dl,
unsigned  DestReg,
unsigned  SubIdx,
int  Val,
ARMCC::CondCodes  Pred = ARMCC::AL,
unsigned  PredReg = 0 
) const [virtual]

bool ARMBaseRegisterInfo::isReservedReg ( const MachineFunction &  MF,
unsigned  Reg 
) const [virtual]

Code Generation virtual methods...

Definition at line 227 of file ARMBaseRegisterInfo.cpp.

References FramePtr, hasFP(), llvm::ARMSubtarget::isR9Reserved(), llvm::ARMSubtarget::isTargetDarwin(), and STI.

Referenced by processFunctionBeforeCalleeSavedScan().

bool ARMBaseRegisterInfo::requiresRegisterScavenging ( const MachineFunction &  MF  )  const [virtual]

Reimplemented in llvm::Thumb1RegisterInfo, and llvm::Thumb2RegisterInfo.

Definition at line 924 of file ARMBaseRegisterInfo.cpp.

bool ARMBaseRegisterInfo::hasReservedCallFrame ( MachineFunction &  MF  )  const [virtual]

void ARMBaseRegisterInfo::eliminateCallFramePseudoInstr ( MachineFunction &  MF,
MachineBasicBlock &  MBB,
MachineBasicBlock::iterator  I 
) const [virtual]

void ARMBaseRegisterInfo::eliminateFrameIndex ( MachineBasicBlock::iterator  II,
int  SPAdj,
RegScavenger *  RS = NULL 
) const [virtual]

void ARMBaseRegisterInfo::emitPrologue ( MachineFunction &  MF  )  const [virtual]

Reimplemented in llvm::Thumb1RegisterInfo.

Definition at line 1125 of file ARMBaseRegisterInfo.cpp.

References llvm::AddDefaultCC(), llvm::AddDefaultPred(), llvm::ARMFunctionInfo::addDPRCalleeSavedAreaFrame(), llvm::ARMFunctionInfo::addGPRCalleeSavedArea1Frame(), llvm::ARMFunctionInfo::addGPRCalleeSavedArea2Frame(), llvm::MachineInstrBuilder::addImm(), AFI, llvm::MachineBasicBlock::begin(), llvm::BuildMI(), emitSPUpdate(), llvm::MachineBasicBlock::end(), FI, FramePtr, llvm::MachineFunction::front(), llvm::TargetInstrInfo::get(), llvm::MachineFrameInfo::getCalleeSavedInfo(), llvm::MachineFunction::getFrameInfo(), llvm::ARMFunctionInfo::getFramePtrSpillOffset(), llvm::MachineFunction::getInfo(), llvm::MachineFrameInfo::getObjectOffset(), llvm::MachineFrameInfo::getOffsetAdjustment(), llvm::MachineFrameInfo::getStackSize(), llvm::DebugLoc::getUnknownLoc(), llvm::ARMFunctionInfo::getVarArgsRegSaveSize(), hasFP(), llvm::ARMFunctionInfo::hasStackFrame(), llvm::ARMSubtarget::isTargetDarwin(), llvm::ARMSubtarget::isTargetELF(), llvm::ARMFunctionInfo::isThumb1OnlyFunction(), llvm::ARMFunctionInfo::isThumbFunction(), MBB, MBBI, MFI, movePastCSLoadStoreOps(), llvm::ARMFunctionInfo::setDPRCalleeSavedAreaOffset(), llvm::ARMFunctionInfo::setDPRCalleeSavedAreaSize(), llvm::ARMFunctionInfo::setFramePtrSpillOffset(), llvm::ARMFunctionInfo::setGPRCalleeSavedArea1Offset(), llvm::ARMFunctionInfo::setGPRCalleeSavedArea1Size(), llvm::ARMFunctionInfo::setGPRCalleeSavedArea2Offset(), llvm::ARMFunctionInfo::setGPRCalleeSavedArea2Size(), llvm::MachineFrameInfo::setOffsetAdjustment(), STI, and TII.

void ARMBaseRegisterInfo::emitEpilogue ( MachineFunction &  MF,
MachineBasicBlock &  MBB 
) const [virtual]


Member Data Documentation


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