LLVM API Documentation

llvm::Thumb2InstrInfo Class Reference

#include <Thumb2InstrInfo.h>

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

List of all members.

Public Member Functions

 Thumb2InstrInfo (const ARMSubtarget &STI)
unsigned getUnindexedOpcode (unsigned Opc) const
bool BlockHasNoFallThrough (const MachineBasicBlock &MBB) const
bool copyRegToReg (MachineBasicBlock &MBB, MachineBasicBlock::iterator I, unsigned DestReg, unsigned SrcReg, const TargetRegisterClass *DestRC, const TargetRegisterClass *SrcRC) const
void storeRegToStackSlot (MachineBasicBlock &MBB, MachineBasicBlock::iterator MBBI, unsigned SrcReg, bool isKill, int FrameIndex, const TargetRegisterClass *RC) const
void loadRegFromStackSlot (MachineBasicBlock &MBB, MachineBasicBlock::iterator MBBI, unsigned DestReg, int FrameIndex, const TargetRegisterClass *RC) const
const Thumb2RegisterInfo & getRegisterInfo () const


Detailed Description

Definition at line 25 of file Thumb2InstrInfo.h.


Constructor & Destructor Documentation

Thumb2InstrInfo::Thumb2InstrInfo ( const ARMSubtarget &  STI  )  [explicit]

Definition at line 26 of file Thumb2InstrInfo.cpp.


Member Function Documentation

unsigned Thumb2InstrInfo::getUnindexedOpcode ( unsigned  Opc  )  const [virtual]

Implements llvm::ARMBaseInstrInfo.

Definition at line 29 of file Thumb2InstrInfo.cpp.

bool Thumb2InstrInfo::BlockHasNoFallThrough ( const MachineBasicBlock &  MBB  )  const [virtual]

BlockHasNoFallThrough - Return true if the specified block does not fall-through into its successor block. This is primarily used when a branch is unanalyzable. It is useful for things like unconditional indirect branches (jump tables).

Implements llvm::ARMBaseInstrInfo.

Definition at line 35 of file Thumb2InstrInfo.cpp.

References llvm::MachineBasicBlock::back(), llvm::MachineBasicBlock::empty(), and llvm::MachineInstr::getOpcode().

bool Thumb2InstrInfo::copyRegToReg ( MachineBasicBlock &  MBB,
MachineBasicBlock::iterator  MI,
unsigned  DestReg,
unsigned  SrcReg,
const TargetRegisterClass *  DestRC,
const TargetRegisterClass *  SrcRC 
) const [virtual]

copyRegToReg - Emit instructions to copy between a pair of registers. It returns false if the target does not how to copy between the specified registers.

Reimplemented from llvm::ARMBaseInstrInfo.

Definition at line 58 of file Thumb2InstrInfo.cpp.

References llvm::MachineInstrBuilder::addReg(), llvm::BuildMI(), llvm::ARMBaseInstrInfo::copyRegToReg(), llvm::MachineBasicBlock::end(), and llvm::DebugLoc::getUnknownLoc().

void Thumb2InstrInfo::storeRegToStackSlot ( MachineBasicBlock &  MBB,
MachineBasicBlock::iterator  MI,
unsigned  SrcReg,
bool  isKill,
int  FrameIndex,
const TargetRegisterClass *  RC 
) const [virtual]

storeRegToStackSlot - Store the specified register of the given register class to the specified stack frame index. The store instruction is to be added to the given machine basic block before the specified machine instruction. If isKill is true, the register operand is the last use and must be marked kill.

Reimplemented from llvm::ARMBaseInstrInfo.

Definition at line 85 of file Thumb2InstrInfo.cpp.

References llvm::AddDefaultPred(), llvm::BuildMI(), llvm::MachineBasicBlock::end(), llvm::getKillRegState(), llvm::DebugLoc::getUnknownLoc(), and llvm::ARMBaseInstrInfo::storeRegToStackSlot().

void Thumb2InstrInfo::loadRegFromStackSlot ( MachineBasicBlock &  MBB,
MachineBasicBlock::iterator  MI,
unsigned  DestReg,
int  FrameIndex,
const TargetRegisterClass *  RC 
) const [virtual]

loadRegFromStackSlot - Load the specified register of the given register class from the specified stack frame index. The load instruction is to be added to the given machine basic block before the specified machine instruction.

Reimplemented from llvm::ARMBaseInstrInfo.

Definition at line 102 of file Thumb2InstrInfo.cpp.

References llvm::AddDefaultPred(), llvm::BuildMI(), llvm::MachineBasicBlock::end(), llvm::DebugLoc::getUnknownLoc(), and llvm::ARMBaseInstrInfo::loadRegFromStackSlot().

const Thumb2RegisterInfo& llvm::Thumb2InstrInfo::getRegisterInfo (  )  const [inline, virtual]

getRegisterInfo - TargetInstrInfo is a superset of MRegister info. As such, whenever a client has an instance of instruction info, it should always be able to get register info as well (through this method).

Implements llvm::ARMBaseInstrInfo.

Definition at line 57 of file Thumb2InstrInfo.h.


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