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::PPC32InstrInfo Class Reference

#include <PPC32InstrInfo.h>

Inheritance diagram for llvm::PPC32InstrInfo:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 PPC32InstrInfo ()
virtual const MRegisterInfogetRegisterInfo () const
virtual bool isMoveInstr (const MachineInstr &MI, unsigned &sourceReg, unsigned &destReg) const

Static Public Member Functions

static unsigned invertPPCBranchOpcode (unsigned Opcode)

Detailed Description

Definition at line 22 of file PPC32InstrInfo.h.


Constructor & Destructor Documentation

PPC32InstrInfo::PPC32InstrInfo  ) 
 

Definition at line 21 of file PPC32InstrInfo.cpp.


Member Function Documentation

virtual const MRegisterInfo& llvm::PPC32InstrInfo::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 PPC32InstrInfo.h.

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

static unsigned llvm::PPC32InstrInfo::invertPPCBranchOpcode unsigned  Opcode  )  [inline, static]
 

Definition at line 41 of file PPC32InstrInfo.h.

bool PPC32InstrInfo::isMoveInstr const MachineInstr MI,
unsigned &  sourceReg,
unsigned &  destReg
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 24 of file PPC32InstrInfo.cpp.

References llvm::MachineOperand::getImmedValue(), llvm::MachineInstr::getNumOperands(), llvm::MachineInstr::getOpcode(), llvm::MachineInstr::getOperand(), llvm::MachineOperand::getReg(), llvm::MachineOperand::isImmediate(), llvm::MachineOperand::isRegister(), and OR.


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