24#define DEBUG_TYPE "asm-printer"
26#define GET_INSTRUCTION_NAME
27#include "HexagonGenAsmWriter.inc"
41 MCInst const &MCI = *
I.getInst();
56 OS << (IsLoop1 ?
" :endloop01" :
" :endloop0");
87 if (Expr.evaluateAsAbsolute(
Value))
#define HEXAGON_PACKET_SIZE
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
void printRegName(raw_ostream &O, MCRegister Reg) override
Print the assembler register name.
void printInstruction(const MCInst *MI, uint64_t Address, raw_ostream &O)
void printBrtarget(MCInst const *MI, unsigned OpNo, raw_ostream &O) const
void printOperand(MCInst const *MI, unsigned OpNo, raw_ostream &O) const
void printInst(MCInst const *MI, uint64_t Address, StringRef Annot, const MCSubtargetInfo &STI, raw_ostream &O) override
Print the specified MCInst to the specified raw_ostream.
static char const * getRegisterName(MCRegister Reg)
Base class for the full range of assembler expressions which are needed for parsing.
format_object< int64_t > formatImm(int64_t Value) const
Utility function to print immediates in decimal or hex.
Instances of this class represent a single low-level machine instruction.
const MCOperand & getOperand(unsigned i) const
Instances of this class represent operands of the MCInst class.
MCRegister getReg() const
Returns the register number.
const MCInst * getInst() const
const MCExpr * getExpr() const
Wrapper class representing physical registers. Should be passed by value.
Generic base class for all target subtargets.
StringRef - Represent a constant reference to a string, i.e.
LLVM Value Representation.
This class implements an extremely fast bulk output stream that can only output to a stream.
#define llvm_unreachable(msg)
Marks that the current location is not supposed to be reachable.
bool isConstExtended(MCInstrInfo const &MCII, MCInst const &MCI)
bool isOuterLoop(MCInst const &MCI)
size_t bundleSize(MCInst const &MCI)
bool isDuplex(MCInstrInfo const &MCII, MCInst const &MCI)
unsigned short getExtendableOp(MCInstrInfo const &MCII, MCInst const &MCI)
iterator_range< Hexagon::PacketIterator > bundleInstructions(MCInstrInfo const &MCII, MCInst const &MCI)
bool isBundle(MCInst const &MCI)
bool isImmext(MCInst const &MCI)
bool isInnerLoop(MCInst const &MCI)
This is an optimization pass for GlobalISel generic memory operations.
format_object< Ts... > format(const char *Fmt, const Ts &... Vals)
These are helper functions used to produce formatted output.