LLVM API Documentation

llvm::AlphaInstrInfo Class Reference

#include <AlphaInstrInfo.h>

Inheritance diagram for llvm::AlphaInstrInfo:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 AlphaInstrInfo ()
virtual const MRegisterInfogetRegisterInfo () const
virtual bool isMoveInstr (const MachineInstr &MI, unsigned &SrcReg, unsigned &DstReg) const
virtual unsigned isLoadFromStackSlot (MachineInstr *MI, int &FrameIndex) const
virtual unsigned isStoreToStackSlot (MachineInstr *MI, int &FrameIndex) const

Detailed Description

Definition at line 22 of file AlphaInstrInfo.h.


Constructor & Destructor Documentation

AlphaInstrInfo::AlphaInstrInfo (  ) 

Definition at line 21 of file AlphaInstrInfo.cpp.


Member Function Documentation

virtual const MRegisterInfo& llvm::AlphaInstrInfo::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).

Definition at line 31 of file AlphaInstrInfo.h.

Referenced by llvm::AlphaTargetMachine::getRegisterInfo().

bool AlphaInstrInfo::isMoveInstr ( const MachineInstr MI,
unsigned &  SrcReg,
unsigned &  DstReg 
) const [virtual]

Return true if the instruction is a register to register move and leave the source and dest operands in the passed parameters.

Reimplemented from llvm::TargetInstrInfo.

Definition at line 25 of file AlphaInstrInfo.cpp.

References llvm::MachineInstr::getNumOperands(), llvm::MachineInstr::getOpcode(), llvm::MachineInstr::getOperand(), llvm::MachineOperand::getReg(), llvm::MachineOperand::isRegister(), and MI.

unsigned AlphaInstrInfo::isLoadFromStackSlot ( MachineInstr MI,
int &  FrameIndex 
) const [virtual]

isLoadFromStackSlot - If the specified machine instruction is a direct load from a stack slot, return the virtual or physical register number of the destination along with the FrameIndex of the loaded stack slot. If not, return 0. This predicate must return 0 if the instruction has any side effects other than loading from the stack slot.

Reimplemented from llvm::TargetInstrInfo.

Definition at line 51 of file AlphaInstrInfo.cpp.

References llvm::MachineOperand::getFrameIndex(), llvm::MachineInstr::getOpcode(), llvm::MachineInstr::getOperand(), llvm::MachineOperand::getReg(), llvm::MachineOperand::isFrameIndex(), and MI.

unsigned AlphaInstrInfo::isStoreToStackSlot ( MachineInstr MI,
int &  FrameIndex 
) const [virtual]

isStoreToStackSlot - If the specified machine instruction is a direct store to a stack slot, return the virtual or physical register number of the source reg along with the FrameIndex of the loaded stack slot. If not, return 0. This predicate must return 0 if the instruction has any side effects other than storing to the stack slot.

Reimplemented from llvm::TargetInstrInfo.

Definition at line 69 of file AlphaInstrInfo.cpp.

References llvm::MachineOperand::getFrameIndex(), llvm::MachineInstr::getOpcode(), llvm::MachineInstr::getOperand(), llvm::MachineOperand::getReg(), llvm::MachineOperand::isFrameIndex(), and MI.


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