LLVM  4.0.0
Public Member Functions | List of all members
llvm::AVRInstrInfo Class Reference

Utilities related to the AVR instruction set. More...

#include <AVRInstrInfo.h>

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

Public Member Functions

 AVRInstrInfo ()
 
const AVRRegisterInfogetRegisterInfo () const
 
const MCInstrDescgetBrCond (AVRCC::CondCodes CC) const
 
AVRCC::CondCodes getCondFromBranchOpc (unsigned Opc) const
 
AVRCC::CondCodes getOppositeCondition (AVRCC::CondCodes CC) const
 
unsigned getInstSizeInBytes (const MachineInstr &MI) const override
 
void copyPhysReg (MachineBasicBlock &MBB, MachineBasicBlock::iterator MI, const DebugLoc &DL, unsigned DestReg, unsigned SrcReg, bool KillSrc) const override
 
void storeRegToStackSlot (MachineBasicBlock &MBB, MachineBasicBlock::iterator MI, unsigned SrcReg, bool isKill, int FrameIndex, const TargetRegisterClass *RC, const TargetRegisterInfo *TRI) const override
 
void loadRegFromStackSlot (MachineBasicBlock &MBB, MachineBasicBlock::iterator MI, unsigned DestReg, int FrameIndex, const TargetRegisterClass *RC, const TargetRegisterInfo *TRI) const override
 
unsigned isLoadFromStackSlot (const MachineInstr &MI, int &FrameIndex) const override
 
unsigned isStoreToStackSlot (const MachineInstr &MI, int &FrameIndex) const override
 
bool analyzeBranch (MachineBasicBlock &MBB, MachineBasicBlock *&TBB, MachineBasicBlock *&FBB, SmallVectorImpl< MachineOperand > &Cond, bool AllowModify=false) const override
 
unsigned insertBranch (MachineBasicBlock &MBB, MachineBasicBlock *TBB, MachineBasicBlock *FBB, ArrayRef< MachineOperand > Cond, const DebugLoc &DL, int *BytesAdded=nullptr) const override
 
unsigned removeBranch (MachineBasicBlock &MBB, int *BytesRemoved=nullptr) const override
 
bool reverseBranchCondition (SmallVectorImpl< MachineOperand > &Cond) const override
 

Detailed Description

Utilities related to the AVR instruction set.

Definition at line 65 of file AVRInstrInfo.h.

Constructor & Destructor Documentation

llvm::AVRInstrInfo::AVRInstrInfo ( )
explicit

Definition at line 39 of file AVRInstrInfo.cpp.

Member Function Documentation

bool llvm::AVRInstrInfo::analyzeBranch ( MachineBasicBlock MBB,
MachineBasicBlock *&  TBB,
MachineBasicBlock *&  FBB,
SmallVectorImpl< MachineOperand > &  Cond,
bool  AllowModify = false 
) const
override
void llvm::AVRInstrInfo::copyPhysReg ( MachineBasicBlock MBB,
MachineBasicBlock::iterator  MI,
const DebugLoc DL,
unsigned  DestReg,
unsigned  SrcReg,
bool  KillSrc 
) const
override
const MCInstrDesc & llvm::AVRInstrInfo::getBrCond ( AVRCC::CondCodes  CC) const
AVRCC::CondCodes llvm::AVRInstrInfo::getCondFromBranchOpc ( unsigned  Opc) const
unsigned llvm::AVRInstrInfo::getInstSizeInBytes ( const MachineInstr MI) const
override
AVRCC::CondCodes llvm::AVRInstrInfo::getOppositeCondition ( AVRCC::CondCodes  CC) const
const AVRRegisterInfo& llvm::AVRInstrInfo::getRegisterInfo ( ) const
inline

Definition at line 69 of file AVRInstrInfo.h.

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

unsigned llvm::AVRInstrInfo::insertBranch ( MachineBasicBlock MBB,
MachineBasicBlock TBB,
MachineBasicBlock FBB,
ArrayRef< MachineOperand Cond,
const DebugLoc DL,
int *  BytesAdded = nullptr 
) const
override
unsigned llvm::AVRInstrInfo::isLoadFromStackSlot ( const MachineInstr MI,
int &  FrameIndex 
) const
override
unsigned llvm::AVRInstrInfo::isStoreToStackSlot ( const MachineInstr MI,
int &  FrameIndex 
) const
override
void llvm::AVRInstrInfo::loadRegFromStackSlot ( MachineBasicBlock MBB,
MachineBasicBlock::iterator  MI,
unsigned  DestReg,
int  FrameIndex,
const TargetRegisterClass RC,
const TargetRegisterInfo TRI 
) const
override
unsigned llvm::AVRInstrInfo::removeBranch ( MachineBasicBlock MBB,
int *  BytesRemoved = nullptr 
) const
override
bool llvm::AVRInstrInfo::reverseBranchCondition ( SmallVectorImpl< MachineOperand > &  Cond) const
override
void llvm::AVRInstrInfo::storeRegToStackSlot ( MachineBasicBlock MBB,
MachineBasicBlock::iterator  MI,
unsigned  SrcReg,
bool  isKill,
int  FrameIndex,
const TargetRegisterClass RC,
const TargetRegisterInfo TRI 
) const
override

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