LLVM  6.0.0svn
Classes | Namespaces | Functions | Variables
HexagonMCInstrInfo.h File Reference
#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/ADT/iterator_range.h"
#include "llvm/MC/MCInst.h"
#include "llvm/Support/MathExtras.h"
#include <cstddef>
#include <cstdint>
Include dependency graph for HexagonMCInstrInfo.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  llvm::DuplexCandidate
 
class  llvm::Hexagon::PacketIterator
 

Namespaces

 llvm
 Compute iterated dominance frontiers using a linear time algorithm.
 
 llvm::Hexagon
 
 llvm::HexagonMCInstrInfo
 

Functions

void llvm::HexagonMCInstrInfo::addConstant (MCInst &MI, uint64_t Value, MCContext &Context)
 
void llvm::HexagonMCInstrInfo::addConstExtender (MCContext &Context, MCInstrInfo const &MCII, MCInst &MCB, MCInst const &MCI)
 
iterator_range< Hexagon::PacketIteratorllvm::HexagonMCInstrInfo::bundleInstructions (MCInstrInfo const &MCII, MCInst const &MCI)
 
iterator_range< MCInst::const_iteratorllvm::HexagonMCInstrInfo::bundleInstructions (MCInst const &MCI)
 
size_t llvm::HexagonMCInstrInfo::bundleSize (MCInst const &MCI)
 
bool llvm::HexagonMCInstrInfo::canonicalizePacket (MCInstrInfo const &MCII, MCSubtargetInfo const &STI, MCContext &Context, MCInst &MCB, HexagonMCChecker *Checker)
 
MCInstllvm::HexagonMCInstrInfo::deriveDuplex (MCContext &Context, unsigned iClass, MCInst const &inst0, MCInst const &inst1)
 
MCInst llvm::HexagonMCInstrInfo::deriveExtender (MCInstrInfo const &MCII, MCInst const &Inst, MCOperand const &MO)
 
MCInst llvm::HexagonMCInstrInfo::deriveSubInst (MCInst const &Inst)
 
void llvm::HexagonMCInstrInfo::clampExtended (MCInstrInfo const &MCII, MCContext &Context, MCInst &MCI)
 
MCInst llvm::HexagonMCInstrInfo::createBundle ()
 
MCInst constllvm::HexagonMCInstrInfo::extenderForIndex (MCInst const &MCB, size_t Index)
 
void llvm::HexagonMCInstrInfo::extendIfNeeded (MCContext &Context, MCInstrInfo const &MCII, MCInst &MCB, MCInst const &MCI)
 
unsigned llvm::HexagonMCInstrInfo::getMemAccessSize (MCInstrInfo const &MCII, MCInst const &MCI)
 
MCInstrDesc constllvm::HexagonMCInstrInfo::getDesc (MCInstrInfo const &MCII, MCInst const &MCI)
 
unsigned llvm::HexagonMCInstrInfo::getDuplexCandidateGroup (MCInst const &MI)
 
SmallVector< DuplexCandidate, 8 > llvm::HexagonMCInstrInfo::getDuplexPossibilties (MCInstrInfo const &MCII, MCSubtargetInfo const &STI, MCInst const &MCB)
 
unsigned llvm::HexagonMCInstrInfo::getDuplexRegisterNumbering (unsigned Reg)
 
MCExpr constllvm::HexagonMCInstrInfo::getExpr (MCExpr const &Expr)
 
unsigned short llvm::HexagonMCInstrInfo::getExtendableOp (MCInstrInfo const &MCII, MCInst const &MCI)
 
MCOperand constllvm::HexagonMCInstrInfo::getExtendableOperand (MCInstrInfo const &MCII, MCInst const &MCI)
 
unsigned llvm::HexagonMCInstrInfo::getExtentAlignment (MCInstrInfo const &MCII, MCInst const &MCI)
 
unsigned llvm::HexagonMCInstrInfo::getExtentBits (MCInstrInfo const &MCII, MCInst const &MCI)
 
int llvm::HexagonMCInstrInfo::getMaxValue (MCInstrInfo const &MCII, MCInst const &MCI)
 Return the maximum value of an extendable operand. More...
 
int llvm::HexagonMCInstrInfo::getMinValue (MCInstrInfo const &MCII, MCInst const &MCI)
 Return the minimum value of an extendable operand. More...
 
StringRef llvm::HexagonMCInstrInfo::getName (MCInstrInfo const &MCII, MCInst const &MCI)
 
unsigned short llvm::HexagonMCInstrInfo::getNewValueOp (MCInstrInfo const &MCII, MCInst const &MCI)
 
MCOperand constllvm::HexagonMCInstrInfo::getNewValueOperand (MCInstrInfo const &MCII, MCInst const &MCI)
 
unsigned short llvm::HexagonMCInstrInfo::getNewValueOp2 (MCInstrInfo const &MCII, MCInst const &MCI)
 Return the new value or the newly produced value. More...
 
MCOperand constllvm::HexagonMCInstrInfo::getNewValueOperand2 (MCInstrInfo const &MCII, MCInst const &MCI)
 
unsigned llvm::HexagonMCInstrInfo::getType (MCInstrInfo const &MCII, MCInst const &MCI)
 Return the Hexagon ISA class for the insn. More...
 
unsigned llvm::HexagonMCInstrInfo::getUnits (MCInstrInfo const &MCII, MCSubtargetInfo const &STI, MCInst const &MCI)
 Return the slots used by the insn. More...
 
unsigned llvm::HexagonMCInstrInfo::getOtherReservedSlots (MCInstrInfo const &MCII, MCSubtargetInfo const &STI, MCInst const &MCI)
 Return the slots this instruction consumes in addition to the slot(s) it can execute out of. More...
 
bool llvm::HexagonMCInstrInfo::hasDuplex (MCInstrInfo const &MCII, MCInst const &MCI)
 
bool llvm::HexagonMCInstrInfo::hasExtenderForIndex (MCInst const &MCB, size_t Index)
 
bool llvm::HexagonMCInstrInfo::hasImmExt (MCInst const &MCI)
 
bool llvm::HexagonMCInstrInfo::hasNewValue (MCInstrInfo const &MCII, MCInst const &MCI)
 Return whether the insn produces a value. More...
 
bool llvm::HexagonMCInstrInfo::hasNewValue2 (MCInstrInfo const &MCII, MCInst const &MCI)
 Return whether the insn produces a second value. More...
 
unsigned llvm::HexagonMCInstrInfo::iClassOfDuplexPair (unsigned Ga, unsigned Gb)
 
int64_t llvm::HexagonMCInstrInfo::minConstant (MCInst const &MCI, size_t Index)
 
template<unsigned N, unsigned S>
bool llvm::HexagonMCInstrInfo::inRange (MCInst const &MCI, size_t Index)
 
template<unsigned N, unsigned S>
bool llvm::HexagonMCInstrInfo::inSRange (MCInst const &MCI, size_t Index)
 
template<unsigned N>
bool llvm::HexagonMCInstrInfo::inRange (MCInst const &MCI, size_t Index)
 
MCInst constllvm::HexagonMCInstrInfo::instruction (MCInst const &MCB, size_t Index)
 
bool llvm::HexagonMCInstrInfo::isAccumulator (MCInstrInfo const &MCII, MCInst const &MCI)
 Return where the instruction is an accumulator. More...
 
bool llvm::HexagonMCInstrInfo::isBundle (MCInst const &MCI)
 
bool llvm::HexagonMCInstrInfo::isCanon (MCInstrInfo const &MCII, MCInst const &MCI)
 
bool llvm::HexagonMCInstrInfo::isCofMax1 (MCInstrInfo const &MCII, MCInst const &MCI)
 
bool llvm::HexagonMCInstrInfo::isCompound (MCInstrInfo const &MCII, MCInst const &MCI)
 
bool llvm::HexagonMCInstrInfo::isConstExtended (MCInstrInfo const &MCII, MCInst const &MCI)
 
bool llvm::HexagonMCInstrInfo::isCVINew (MCInstrInfo const &MCII, MCInst const &MCI)
 
bool llvm::HexagonMCInstrInfo::isDblRegForSubInst (unsigned Reg)
 
bool llvm::HexagonMCInstrInfo::isDuplex (MCInstrInfo const &MCII, MCInst const &MCI)
 
bool llvm::HexagonMCInstrInfo::isDuplexPair (MCInst const &MIa, MCInst const &MIb)
 Symmetrical. See if these two instructions are fit for duplex pair. More...
 
bool llvm::HexagonMCInstrInfo::isDuplexPairMatch (unsigned Ga, unsigned Gb)
 
bool llvm::HexagonMCInstrInfo::isExtendable (MCInstrInfo const &MCII, MCInst const &MCI)
 
bool llvm::HexagonMCInstrInfo::isExtended (MCInstrInfo const &MCII, MCInst const &MCI)
 
bool llvm::HexagonMCInstrInfo::isFloat (MCInstrInfo const &MCII, MCInst const &MCI)
 Return whether it is a floating-point insn. More...
 
bool llvm::HexagonMCInstrInfo::isImmext (MCInst const &MCI)
 
bool llvm::HexagonMCInstrInfo::isInnerLoop (MCInst const &MCI)
 
bool llvm::HexagonMCInstrInfo::isIntReg (unsigned Reg)
 
bool llvm::HexagonMCInstrInfo::isIntRegForSubInst (unsigned Reg)
 
bool llvm::HexagonMCInstrInfo::isMemReorderDisabled (MCInst const &MCI)
 
bool llvm::HexagonMCInstrInfo::isMemStoreReorderEnabled (MCInst const &MCI)
 
bool llvm::HexagonMCInstrInfo::isNewValue (MCInstrInfo const &MCII, MCInst const &MCI)
 Return whether the insn expects newly produced value. More...
 
bool llvm::HexagonMCInstrInfo::isOpExtendable (MCInstrInfo const &MCII, MCInst const &MCI, unsigned short)
 Return whether the operand is extendable. More...
 
bool llvm::HexagonMCInstrInfo::isOrderedDuplexPair (MCInstrInfo const &MCII, MCInst const &MIa, bool ExtendedA, MCInst const &MIb, bool ExtendedB, bool bisReversable, MCSubtargetInfo const &STI)
 non-Symmetrical. See if these two instructions are fit for duplex pair. More...
 
bool llvm::HexagonMCInstrInfo::isOuterLoop (MCInst const &MCI)
 
bool llvm::HexagonMCInstrInfo::isPredicated (MCInstrInfo const &MCII, MCInst const &MCI)
 
bool llvm::HexagonMCInstrInfo::isPredicateLate (MCInstrInfo const &MCII, MCInst const &MCI)
 
bool llvm::HexagonMCInstrInfo::isPredicatedNew (MCInstrInfo const &MCII, MCInst const &MCI)
 Return whether the insn is newly predicated. More...
 
bool llvm::HexagonMCInstrInfo::isPredicatedTrue (MCInstrInfo const &MCII, MCInst const &MCI)
 
bool llvm::HexagonMCInstrInfo::isPredReg (unsigned Reg)
 
bool llvm::HexagonMCInstrInfo::isPrefix (MCInstrInfo const &MCII, MCInst const &MCI)
 
bool llvm::HexagonMCInstrInfo::isSolo (MCInstrInfo const &MCII, MCInst const &MCI)
 Return whether the insn is solo, i.e., cannot be in a packet. More...
 
bool llvm::HexagonMCInstrInfo::isSoloAX (MCInstrInfo const &MCII, MCInst const &MCI)
 Return whether the insn can be packaged only with A and X-type insns. More...
 
bool llvm::HexagonMCInstrInfo::isSoloAin1 (MCInstrInfo const &MCII, MCInst const &MCI)
 Return whether the insn can be packaged only with an A-type insn in slot #1. More...
 
bool llvm::HexagonMCInstrInfo::isSubInstruction (MCInst const &MCI)
 
bool llvm::HexagonMCInstrInfo::isVector (MCInstrInfo const &MCII, MCInst const &MCI)
 
bool llvm::HexagonMCInstrInfo::mustExtend (MCExpr const &Expr)
 
bool llvm::HexagonMCInstrInfo::mustNotExtend (MCExpr const &Expr)
 
void llvm::HexagonMCInstrInfo::padEndloop (MCInst &MCI, MCContext &Context)
 
bool llvm::HexagonMCInstrInfo::prefersSlot3 (MCInstrInfo const &MCII, MCInst const &MCI)
 
void llvm::HexagonMCInstrInfo::replaceDuplex (MCContext &Context, MCInst &MCI, DuplexCandidate Candidate)
 
bool llvm::HexagonMCInstrInfo::s27_2_reloc (MCExpr const &Expr)
 
void llvm::HexagonMCInstrInfo::setInnerLoop (MCInst &MCI)
 
void llvm::HexagonMCInstrInfo::setMemReorderDisabled (MCInst &MCI)
 
void llvm::HexagonMCInstrInfo::setMemStoreReorderEnabled (MCInst &MCI)
 
void llvm::HexagonMCInstrInfo::setMustExtend (MCExpr const &Expr, bool Val=true)
 
void llvm::HexagonMCInstrInfo::setMustNotExtend (MCExpr const &Expr, bool Val=true)
 
void llvm::HexagonMCInstrInfo::setS27_2_reloc (MCExpr const &Expr, bool Val=true)
 
void llvm::HexagonMCInstrInfo::setOuterLoop (MCInst &MCI)
 
bool llvm::HexagonMCInstrInfo::subInstWouldBeExtended (MCInst const &potentialDuplex)
 
unsigned llvm::HexagonMCInstrInfo::SubregisterBit (unsigned Consumer, unsigned Producer, unsigned Producer2)
 
void llvm::HexagonMCInstrInfo::tryCompound (MCInstrInfo const &MCII, MCSubtargetInfo const &STI, MCContext &Context, MCInst &MCI)
 tryCompound - Given a bundle check for compound insns when one is found update the contents fo the bundle with the compound insn. More...
 

Variables

size_t const llvm::HexagonMCInstrInfo::innerLoopOffset = 0
 
int64_t const llvm::HexagonMCInstrInfo::innerLoopMask = 1 << innerLoopOffset
 
size_t const llvm::HexagonMCInstrInfo::outerLoopOffset = 1
 
int64_t const llvm::HexagonMCInstrInfo::outerLoopMask = 1 << outerLoopOffset
 
size_t const llvm::HexagonMCInstrInfo::memReorderDisabledOffset = 2
 
int64_t const llvm::HexagonMCInstrInfo::memReorderDisabledMask = 1 << memReorderDisabledOffset
 
size_t const llvm::HexagonMCInstrInfo::memStoreReorderEnabledOffset = 3
 
int64_t const llvm::HexagonMCInstrInfo::memStoreReorderEnabledMask = 1 << memStoreReorderEnabledOffset
 
size_t const llvm::HexagonMCInstrInfo::bundleInstructionsOffset = 1