LLVM  5.0.0
Public Types | Public Member Functions | Protected Attributes | List of all members
llvm::HexagonShuffler Class Reference

#include "Target/Hexagon/MCTargetDesc/HexagonShuffler.h"

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

Public Types

typedef HexagonPacket::iterator iterator
 

Public Member Functions

 HexagonShuffler (MCContext &Context, bool ReportErrors, MCInstrInfo const &MCII, MCSubtargetInfo const &STI)
 
void reset ()
 
bool check ()
 Check that the packet is legal and enforce relative insn order. More...
 
bool shuffle ()
 
unsigned size () const
 
iterator begin ()
 
iterator end ()
 
void append (MCInst const &ID, MCInst const *Extender, unsigned S)
 
void reportError (llvm::Twine const &Msg)
 

Protected Attributes

MCContext & Context
 
int64_t BundleFlags
 
MCInstrInfo const & MCII
 
MCSubtargetInfo const & STI
 
SMLoc Loc
 
bool ReportErrors
 

Detailed Description

Definition at line 130 of file HexagonShuffler.h.

Member Typedef Documentation

Definition at line 149 of file HexagonShuffler.h.

Constructor & Destructor Documentation

HexagonShuffler::HexagonShuffler ( MCContext &  Context,
bool  ReportErrors,
MCInstrInfo const &  MCII,
MCSubtargetInfo const &  STI 
)

Member Function Documentation

void HexagonShuffler::append ( MCInst const &  ID,
MCInst const *  Extender,
unsigned  S 
)
iterator llvm::HexagonShuffler::begin ( )
inline
bool HexagonShuffler::check ( )

Check that the packet is legal and enforce relative insn order.

Definition at line 210 of file HexagonShuffler.cpp.

References assert(), begin(), checkHVXPipes(), llvm::SmallVectorImpl< T >::clear(), end(), first, llvm::HexagonMCInstrInfo::getDesc(), llvm::MCOperand::getInst(), llvm::MCInstrDesc::getOpcode(), llvm::MCInst::getOperand(), llvm::HexagonMCInstrInfo::getOtherReservedSlots(), llvm::HexagonMCInstrInfo::getType(), I, isBranch(), llvm::HexagonMCInstrInfo::isCofMax1(), llvm::HexagonMCInstrInfo::isNewValue(), llvm::MCInstrDesc::isReturn(), llvm::HexagonMCInstrInfo::isSoloAin1(), jumpSlots, CVIUnits::Lanes, llvm::HexagonInstr::lessCore(), llvm::HexagonInstr::lessCVI(), LLVM_FALLTHROUGH, MAX_JUMP_SLOTS, llvm::MCInstrDesc::mayLoad(), llvm::MCInstrDesc::mayStore(), MCII, llvm::HexagonMCInstrInfo::prefersSlot3(), llvm::SmallVectorTemplateBase< T, isPodLike >::push_back(), reportError(), second, llvm::SmallVectorTemplateCommon< T, typename >::size(), llvm::parallel::sort(), STI, stores, llvm::HexagonII::TypeALU32_2op, llvm::HexagonII::TypeALU32_3op, llvm::HexagonII::TypeALU32_ADDI, llvm::HexagonII::TypeALU64, llvm::HexagonII::TypeCJ, llvm::HexagonII::TypeCR, llvm::HexagonII::TypeCVI_VM_LD, llvm::HexagonII::TypeCVI_VM_NEW_ST, llvm::HexagonII::TypeCVI_VM_ST, llvm::HexagonII::TypeCVI_VM_STU, llvm::HexagonII::TypeCVI_VM_TMP_LD, llvm::HexagonII::TypeCVI_VM_VP_LDU, llvm::HexagonII::TypeDUPLEX, llvm::HexagonII::TypeJ, llvm::HexagonII::TypeLD, llvm::HexagonII::TypeNCJ, llvm::HexagonII::TypeS_2op, llvm::HexagonII::TypeS_3op, llvm::HexagonII::TypeST, llvm::HexagonII::TypeV2LDST, llvm::HexagonII::TypeV4LDST, and CVIUnits::Units.

Referenced by shuffle().

iterator llvm::HexagonShuffler::end ( )
inline
void HexagonShuffler::reportError ( llvm::Twine const &  Msg)

Definition at line 603 of file HexagonShuffler.cpp.

References Context, Loc, llvm::MCContext::reportError(), and ReportErrors.

Referenced by check(), and shuffle().

void HexagonShuffler::reset ( )

Definition at line 191 of file HexagonShuffler.cpp.

References BundleFlags, and llvm::SmallVectorImpl< T >::clear().

Referenced by HexagonShuffler().

bool HexagonShuffler::shuffle ( )
unsigned llvm::HexagonShuffler::size ( ) const
inline

Member Data Documentation

int64_t llvm::HexagonShuffler::BundleFlags
protected

Definition at line 142 of file HexagonShuffler.h.

Referenced by llvm::HexagonMCShuffler::copyTo(), and reset().

MCContext& llvm::HexagonShuffler::Context
protected

Definition at line 141 of file HexagonShuffler.h.

Referenced by reportError().

SMLoc llvm::HexagonShuffler::Loc
protected

Definition at line 145 of file HexagonShuffler.h.

Referenced by llvm::HexagonMCShuffler::copyTo(), and reportError().

MCInstrInfo const& llvm::HexagonShuffler::MCII
protected

Definition at line 143 of file HexagonShuffler.h.

Referenced by append(), check(), and shuffle().

bool llvm::HexagonShuffler::ReportErrors
protected

Definition at line 146 of file HexagonShuffler.h.

Referenced by reportError().

MCSubtargetInfo const& llvm::HexagonShuffler::STI
protected

Definition at line 144 of file HexagonShuffler.h.

Referenced by check().


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