14#ifndef LLVM_LIB_TARGET_PISA_MCTARGETDESC_PISAINSTPRINTER_H
15#define LLVM_LIB_TARGET_PISA_MCTARGETDESC_PISAINSTPRINTER_H
31 unsigned OpIdx,
unsigned PrintMethodIdx,
37 const char *Modifier =
nullptr);
40 unsigned DefaultVal,
const MCInst *MCI,
unsigned OpNo,
44 bool IsMandatoryField =
false,
45 unsigned DefaultVal = 0) {
83 const char *Modifier =
nullptr);
91 const char *Modifier =
nullptr)
const {
106 std::pair<const char *, uint64_t>
118 void swizzleRepr(
raw_ostream &O,
unsigned SwizzleVal);
This file declares common definitions used by the PISA MC components.
This file declares PISA enumeration and operand option tables.
This class is intended to be used as a base class for asm properties and features specific to the tar...
MCInstPrinter(const MCAsmInfo &mai, const MCInstrInfo &mii, const MCRegisterInfo &mri)
Instances of this class represent a single low-level machine instruction.
Wrapper class representing physical registers and target specific virtual registers.
Generic base class for all target subtargets.
printOpndFn printEnumOption(PISA::EnumOptionClass OptClass, bool IsMandatoryField=false, unsigned DefaultVal=0)
bool printAliasInstr(const MCInst *MI, uint64_t Address, raw_ostream &OS)
void printImm16Opnd(const MCInst *MCI, unsigned OpNo, raw_ostream &OS)
void printBfnOpcode(const MCInst *MI, unsigned OpNo, raw_ostream &O)
printOpndFn printRegOpnd(unsigned RCID)
void printEnumOption(PISA::EnumOptionClass OptClass, bool IsMandatoryField, unsigned DefaultVal, const MCInst *MCI, unsigned OpNo, raw_ostream &OS)
void printLocalVariableOpnd(const MCInst *MCI, unsigned OpNo, raw_ostream &OS)
void printMemOperand(const MCInst *MI, int OpNo, raw_ostream &O, const char *Modifier=nullptr)
void printImm128Opnd(const MCInst *MCI, unsigned OpNo, raw_ostream &OS)
void printImm64Opnd(const MCInst *MCI, unsigned OpNo, raw_ostream &OS)
void printFpImm64Opnd(const MCInst *MCI, unsigned OpNo, raw_ostream &OS)
void printRegOpnd(unsigned RCID, const MCInst *MCI, unsigned OpNo, raw_ostream &OS)
void printImm8Opnd(const MCInst *MCI, unsigned OpNo, raw_ostream &OS)
printOpndFn printBoolOptionOpnd(PISA::BoolOptionID OptID)
static const char * getRegisterName(MCRegister Reg)
std::pair< const char *, uint64_t > getMnemonic(const MCInst &MI) const override
Returns a pair containing the mnemonic for MI and the number of bits left for further processing by p...
void printFpImm16Opnd(const MCInst *MCI, unsigned OpNo, raw_ostream &OS)
void printFpImm32Opnd(const MCInst *MCI, unsigned OpNo, raw_ostream &OS)
void printBrTargetOpnd(const MCInst *MCI, uint64_t Address, unsigned OpNo, raw_ostream &OS)
void printCustomAliasOperand(const MCInst *MI, uint64_t Address, unsigned OpIdx, unsigned PrintMethodIdx, raw_ostream &OS)
void printImm1Opnd(const MCInst *MCI, unsigned OpNo, raw_ostream &OS)
void printMemScopeOpnd(const MCInst *MCI, unsigned OpNo, raw_ostream &OS)
void printFunctionCallTargetOpnd(const MCInst *MI, unsigned OpNo, raw_ostream &O)
static void printSymbolName(raw_ostream &OS, StringRef Name, const MCAsmInfo *MAI)
void printParamMemOperand(const MCInst *MI, int OpNo, raw_ostream &O)
void printStringImm(const MCInst *MI, unsigned OpNo, raw_ostream &O)
void printMemSeqOperand(StringRef Pattern, const MCInst *MI, int OpNo, raw_ostream &OS, const char *Modifier)
void negateRepr(const MCInst *MI, unsigned OpNo, raw_ostream &O)
void printAddrOffsetImm(const MCInst *MI, unsigned OpNo, raw_ostream &O)
void printOperand(const MCInst *MI, unsigned OpNo, raw_ostream &O, const char *Modifier=nullptr)
void printGlobalVariableOpnd(const MCInst *MCI, uint64_t Address, unsigned OpNo, raw_ostream &OS)
void printRegName(raw_ostream &OS, MCRegister Reg) override
Print the assembler register name.
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.
MemSeqOperandPrinter printMemSeqOperand(StringRef Pattern)
MCInstPrinter(const MCAsmInfo &mai, const MCInstrInfo &mii, const MCRegisterInfo &mri)
std::function< void(const MCInst *, unsigned, raw_ostream &)> printOpndFn
void printInstruction(const MCInst *MI, uint64_t Address, raw_ostream &O)
void printImm32Opnd(const MCInst *MCI, unsigned OpNo, raw_ostream &OS)
Represent a constant reference to a string, i.e.
This class implements an extremely fast bulk output stream that can only output to a stream.
This is an optimization pass for GlobalISel generic memory operations.
PISAInstPrinter * Printer
void operator()(const MCInst *MI, int OpNo, raw_ostream &OS, const char *Modifier=nullptr) const