Go to the documentation of this file.
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))
This is an optimization pass for GlobalISel generic memory operations.
void printRegName(raw_ostream &O, unsigned RegNo) const override
Print the assembler register name.
bool isImmext(MCInst const &MCI)
Instances of this class represent a single low-level machine instruction.
static const char * getRegisterName(unsigned RegNo)
void printOperand(MCInst const *MI, unsigned OpNo, raw_ostream &O) const
const MCInst * getInst() const
bool isBundle(MCInst const &MCI)
iterator_range< Hexagon::PacketIterator > bundleInstructions(MCInstrInfo const &MCII, MCInst const &MCI)
void printInstruction(const MCInst *MI, uint64_t Address, raw_ostream &O)
This class implements an extremely fast bulk output stream that can only output to a stream.
bool isConstExtended(MCInstrInfo const &MCII, MCInst const &MCI)
size_t bundleSize(MCInst const &MCI)
bool isDuplex(MCInstrInfo const &MCII, MCInst const &MCI)
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
format_object< int64_t > formatImm(int64_t Value) const
Utility function to print immediates in decimal or hex.
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.
bool isOuterLoop(MCInst const &MCI)
StringRef - Represent a constant reference to a string, i.e.
#define llvm_unreachable(msg)
Marks that the current location is not supposed to be reachable.
format_object< Ts... > format(const char *Fmt, const Ts &... Vals)
These are helper functions used to produce formatted output.
unsigned short getExtendableOp(MCInstrInfo const &MCII, MCInst const &MCI)
const MCExpr * getExpr() const
const MCOperand & getOperand(unsigned i) const
Instances of this class represent operands of the MCInst class.
#define HEXAGON_PACKET_SIZE
Generic base class for all target subtargets.
LLVM Value Representation.
Base class for the full range of assembler expressions which are needed for parsing.
void printBrtarget(MCInst const *MI, unsigned OpNo, raw_ostream &O) const
unsigned getReg() const
Returns the register number.
bool isInnerLoop(MCInst const &MCI)