24 #define DEBUG_TYPE "ve-asmprinter" 34 #define GET_INSTRUCTION_NAME 35 #define PRINT_ALIAS_INSTR 36 #include "VEGenAsmWriter.inc" 45 if (!printAliasInstr(MI, STI, OS))
46 printInstruction(MI, Address, STI, OS);
47 printAnnotation(OS, Annot);
55 printRegName(O, MO.
getReg());
64 int32_t TruncatedImm =
static_cast<int32_t
>(MO.
getImm());
70 assert(MO.
isExpr() &&
"Unknown operand kind in printOperand");
78 if (Modifier && !strcmp(Modifier,
"arith")) {
98 if (Modifier && !strcmp(Modifier,
"arith")) {
void printInst(const MCInst *MI, uint64_t Address, StringRef Annot, const MCSubtargetInfo &STI, raw_ostream &OS) override
Print the specified MCInst to the specified raw_ostream.
This class represents lattice values for constants.
void printMemASOperand(const MCInst *MI, int opNum, const MCSubtargetInfo &STI, raw_ostream &OS, const char *Modifier=nullptr)
void printMemASXOperand(const MCInst *MI, int opNum, const MCSubtargetInfo &STI, raw_ostream &OS, const char *Modifier=nullptr)
unsigned getReg() const
Returns the register number.
static std::string getRegisterName(const TargetRegisterInfo *TRI, unsigned Reg)
const MCExpr * getExpr() const
Instances of this class represent a single low-level machine instruction.
void printCCOperand(const MCInst *MI, int opNum, const MCSubtargetInfo &STI, raw_ostream &OS)
void print(raw_ostream &OS, const MCAsmInfo *MAI, bool InParens=false) const
constexpr bool isInt< 32 >(int64_t x)
const MCOperand & getOperand(unsigned i) const
static const char * VECondCodeToString(VECC::CondCodes CC)
static bool printOperand(raw_ostream &OS, const SelectionDAG *G, const SDValue Value)
void printOperand(const MCInst *MI, int opNum, const MCSubtargetInfo &STI, raw_ostream &OS)
Generic base class for all target subtargets.
LLVM_NODISCARD std::string lower() const
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
This class implements an extremely fast bulk output stream that can only output to a stream...
StringRef - Represent a constant reference to a string, i.e.
unsigned getOpcode() const
Instances of this class represent operands of the MCInst class.
void printRegName(raw_ostream &OS, unsigned RegNo) const override
Print the assembler register name.