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

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

#include "Target/AVR/AVRInstrInfo.h"

Inheritance diagram for llvm::AVRInstrInfo:
Inheritance graph
[legend]
Collaboration diagram for llvm::AVRInstrInfo:
Collaboration graph
[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
 
MachineBasicBlockgetBranchDestBlock (const MachineInstr &MI) const override
 
bool isBranchOffsetInRange (unsigned BranchOpc, int64_t BrOffset) const override
 
unsigned insertIndirectBranch (MachineBasicBlock &MBB, MachineBasicBlock &NewDestBB, const DebugLoc &DL, int64_t BrOffset, RegScavenger *RS) const override
 

Detailed Description

Utilities related to the AVR instruction set.

Definition at line 65 of file AVRInstrInfo.h.

Constructor & Destructor Documentation

◆ AVRInstrInfo()

llvm::AVRInstrInfo::AVRInstrInfo ( )
explicit

Definition at line 39 of file AVRInstrInfo.cpp.

Member Function Documentation

◆ analyzeBranch()

bool llvm::AVRInstrInfo::analyzeBranch ( MachineBasicBlock MBB,
MachineBasicBlock *&  TBB,
MachineBasicBlock *&  FBB,
SmallVectorImpl< MachineOperand > &  Cond,
bool  AllowModify = false 
) const
override

◆ copyPhysReg()

void llvm::AVRInstrInfo::copyPhysReg ( MachineBasicBlock MBB,
MachineBasicBlock::iterator  MI,
const DebugLoc DL,
unsigned  DestReg,
unsigned  SrcReg,
bool  KillSrc 
) const
override

◆ getBranchDestBlock()

MachineBasicBlock * llvm::AVRInstrInfo::getBranchDestBlock ( const MachineInstr MI) const
override

◆ getBrCond()

const MCInstrDesc & llvm::AVRInstrInfo::getBrCond ( AVRCC::CondCodes  CC) const

◆ getCondFromBranchOpc()

AVRCC::CondCodes llvm::AVRInstrInfo::getCondFromBranchOpc ( unsigned  Opc) const

◆ getInstSizeInBytes()

unsigned llvm::AVRInstrInfo::getInstSizeInBytes ( const MachineInstr MI) const
override

◆ getOppositeCondition()

AVRCC::CondCodes llvm::AVRInstrInfo::getOppositeCondition ( AVRCC::CondCodes  CC) const

◆ getRegisterInfo()

const AVRRegisterInfo& llvm::AVRInstrInfo::getRegisterInfo ( ) const
inline

◆ insertBranch()

unsigned llvm::AVRInstrInfo::insertBranch ( MachineBasicBlock MBB,
MachineBasicBlock TBB,
MachineBasicBlock FBB,
ArrayRef< MachineOperand Cond,
const DebugLoc DL,
int *  BytesAdded = nullptr 
) const
override

◆ insertIndirectBranch()

unsigned llvm::AVRInstrInfo::insertIndirectBranch ( MachineBasicBlock MBB,
MachineBasicBlock NewDestBB,
const DebugLoc DL,
int64_t  BrOffset,
RegScavenger RS 
) const
override

◆ isBranchOffsetInRange()

bool llvm::AVRInstrInfo::isBranchOffsetInRange ( unsigned  BranchOpc,
int64_t  BrOffset 
) const
override

Definition at line 532 of file AVRInstrInfo.cpp.

References llvm::isIntN(), and llvm_unreachable.

◆ isLoadFromStackSlot()

unsigned llvm::AVRInstrInfo::isLoadFromStackSlot ( const MachineInstr MI,
int &  FrameIndex 
) const
override

◆ isStoreToStackSlot()

unsigned llvm::AVRInstrInfo::isStoreToStackSlot ( const MachineInstr MI,
int &  FrameIndex 
) const
override

◆ loadRegFromStackSlot()

void llvm::AVRInstrInfo::loadRegFromStackSlot ( MachineBasicBlock MBB,
MachineBasicBlock::iterator  MI,
unsigned  DestReg,
int  FrameIndex,
const TargetRegisterClass RC,
const TargetRegisterInfo TRI 
) const
override

◆ removeBranch()

unsigned llvm::AVRInstrInfo::removeBranch ( MachineBasicBlock MBB,
int *  BytesRemoved = nullptr 
) const
override

◆ reverseBranchCondition()

bool llvm::AVRInstrInfo::reverseBranchCondition ( SmallVectorImpl< MachineOperand > &  Cond) const
override

◆ storeRegToStackSlot()

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: