15 #ifndef HEXAGONSHUFFLER_H
16 #define HEXAGONSHUFFLER_H
32 unsigned Slots, Weight;
81 void setLanes(
unsigned l) { Lanes = l; };
82 void setLoad(
bool f =
true) { Load = f; };
83 void setStore(
bool f =
true) { Store = f; };
87 unsigned s,
MCInst const *
id);
108 MCInst const *Extender,
unsigned s)
109 :
ID(id), Extender(Extender), Core(s), CVI(T, MCII, s, id) {};
174 #endif // HEXAGONSHUFFLER_H
static bool lessCore(const HexagonInstr &A, const HexagonInstr &B)
void setUnits(unsigned s)
void append(MCInst const &ID, MCInst const *Extender, unsigned S)
HexagonResource(unsigned s)
MCInst const * getExtender() const
unsigned setWeight(unsigned s)
static bool lessWeight(const HexagonResource &A, const HexagonResource &B)
HexagonInstr(HexagonCVIResource::TypeUnitsAndLanes *T, MCInstrInfo const &MCII, MCInst const *id, MCInst const *Extender, unsigned s)
Twine - A lightweight data structure for efficiently representing the concatenation of temporary valu...
#define HEXAGON_PACKET_SIZE
Context object for machine code objects.
unsigned getUnits() const
void reportError(llvm::Twine const &Msg)
Instances of this class represent a single low-level machine instruction.
HexagonCVIResource(TypeUnitsAndLanes *TUL, MCInstrInfo const &MCII, unsigned s, MCInst const *id)
LLVM_ATTRIBUTE_ALWAYS_INLINE iterator begin()
MCSubtargetInfo const & STI
Interface to description of machine instruction set.
bool operator<(const HexagonInstr &B) const
llvm::DenseMap< unsigned, UnitsAndLanes > TypeUnitsAndLanes
MCInst const & getDesc() const
HexagonPacket::iterator iterator
unsigned countPopulation(T Value)
Count the number of set bits in a value.
unsigned getWeight() const
typename SuperClass::iterator iterator
unsigned getLanes() const
LLVM_ATTRIBUTE_ALWAYS_INLINE iterator end()
static bool lessUnits(const HexagonResource &A, const HexagonResource &B)
HexagonShuffler(MCContext &Context, bool ReportErrors, MCInstrInfo const &MCII, MCSubtargetInfo const &STI)
LLVM_ATTRIBUTE_ALWAYS_INLINE size_type size() const
MCSubtargetInfo - Generic base class for all target subtargets.
std::pair< unsigned, unsigned > UnitsAndLanes
static bool lessCVI(const HexagonInstr &A, const HexagonInstr &B)
StringRef - Represent a constant reference to a string, i.e.
Represents a location in source code.
static void SetupTUL(TypeUnitsAndLanes *TUL, StringRef CPU)
bool check()
Check that the packet is legal and enforce relative insn order.