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

#include <PPC64InstrInfo.h>

Inheritance diagram for llvm::PPC64InstrInfo:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 PPC64InstrInfo ()
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 PPC64InstrInfo.h.


Constructor & Destructor Documentation

PPC64InstrInfo::PPC64InstrInfo  ) 
 

Definition at line 21 of file PPC64InstrInfo.cpp.


Member Function Documentation

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

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

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

Definition at line 41 of file PPC64InstrInfo.h.

bool PPC64InstrInfo::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 PPC64InstrInfo.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: