34 #define DEBUG_TYPE "asm-printer" 36 #define PRINT_ALIAS_INSTR 37 #include "ARMGenAsmWriter.inc" 44 assert((imm & ~0x1f) == 0 &&
"Invalid shift encoding");
53 unsigned ShImm,
bool UseMarkup) {
76 if (Opt ==
"reg-names-std") {
77 DefaultAltIdx = ARM::NoRegAltName;
80 if (Opt ==
"reg-names-raw") {
81 DefaultAltIdx = ARM::RegNamesRaw;
141 O <<
", " <<
markup(
"<imm:") <<
"#" 149 case ARM::t2STMDB_UPD:
154 if (Opcode == ARM::t2STMDB_UPD)
163 case ARM::STR_PRE_IMM:
178 case ARM::t2LDMIA_UPD:
183 if (Opcode == ARM::t2LDMIA_UPD)
192 case ARM::LDR_POST_IMM:
206 case ARM::VSTMSDB_UPD:
207 case ARM::VSTMDDB_UPD:
209 O <<
'\t' <<
"vpush";
219 case ARM::VLDMSIA_UPD:
220 case ARM::VLDMDIA_UPD:
232 bool Writeback =
true;
263 bool isStore = Opcode == ARM::STREXD || Opcode == ARM::STLEXD;
317 }
else if (Op.
isImm()) {
320 assert(Op.
isExpr() &&
"unknown operand kind in printOperand");
322 switch (Expr->getKind()) {
325 Expr->print(O, &
MAI);
332 int64_t TargetAddress;
335 Expr->print(O, &
MAI);
338 O.
write_hex(static_cast<uint32_t>(TargetAddress));
345 Expr->print(O, &
MAI);
360 O <<
markup(
"<mem:") <<
"[pc, ";
362 int32_t OffImm = (int32_t)MO1.
getImm();
363 bool isSub = OffImm < 0;
366 if (OffImm == INT32_MIN)
425 O <<
markup(
"<mem:") <<
"[";
430 O <<
", " <<
markup(
"<imm:") <<
"#" 452 O <<
markup(
"<mem:") <<
"[";
464 O <<
markup(
"<mem:") <<
"[";
499 O <<
markup(
"<imm:") <<
'#' 518 bool AlwaysPrintImm0) {
523 O <<
markup(
"<mem:") <<
'[';
537 if (AlwaysPrintImm0 || ImmOffs || (op ==
ARM_AM::sub)) {
544 template <
bool AlwaysPr
intImm0>
556 "unexpected idxmode");
574 O <<
markup(
"<imm:") <<
'#' 583 unsigned Imm = MO.
getImm();
584 O <<
markup(
"<imm:") <<
'#' << ((Imm & 256) ?
"" :
"-") << (Imm & 0xff)
594 O << (MO2.
getImm() ?
"" :
"-");
602 unsigned Imm = MO.
getImm();
603 O <<
markup(
"<imm:") <<
'#' << ((Imm & 256) ?
"" :
"-") << ((Imm & 0xff) << 2)
614 O <<
markup(
"<mem:") <<
"[";
631 O <<
markup(
"<mem:") <<
"[";
634 int64_t Imm = MO2.
getImm();
636 O <<
", " <<
markup(
"<imm:") <<
'#' << Imm <<
markup(
">");
649 template <
bool AlwaysPr
intImm0>
661 O <<
markup(
"<mem:") <<
"[";
666 if (AlwaysPrintImm0 || ImmOffs || Op ==
ARM_AM::sub) {
668 << ImmOffs * 4 <<
markup(
">");
673 template <
bool AlwaysPr
intImm0>
685 O <<
markup(
"<mem:") <<
"[";
690 if (AlwaysPrintImm0 || ImmOffs || Op ==
ARM_AM::sub) {
707 O <<
markup(
"<mem:") <<
"[";
710 O <<
":" << (MO2.
getImm() << 3);
719 O <<
markup(
"<mem:") <<
"[";
745 assert(MO.
isImm() &&
"Not a valid bf_inv_mask_imm value!");
747 <<
'#' << width <<
markup(
">");
775 bool isASR = (ShiftOp & (1 << 5)) != 0;
776 unsigned Amt = ShiftOp & 0x1f;
778 O <<
", asr " <<
markup(
"<imm:") <<
"#" << (Amt == 0 ? 32 : Amt)
781 O <<
", lsl " <<
markup(
"<imm:") <<
"#" << Amt <<
markup(
">");
791 assert(Imm > 0 && Imm < 32 &&
"Invalid PKH shift immediate value!");
792 O <<
", lsl " <<
markup(
"<imm:") <<
"#" << Imm <<
markup(
">");
802 assert(Imm > 0 && Imm <= 32 &&
"Invalid PKH shift immediate value!");
803 O <<
", asr " <<
markup(
"<imm:") <<
"#" << Imm <<
markup(
">");
855 for (
int i = 2; i >= 0; --i)
856 if (IFlags & (1 << i))
868 if (FeatureBits[ARM::FeatureMClass]) {
870 unsigned SYSm = Op.
getImm() & 0xFFF;
874 if (Opcode == ARM::t2MSR_M && FeatureBits[ARM::FeatureDSP]) {
876 if (TheReg && TheReg->isInRequiredFeatures({ARM::FeatureDSP})) {
884 if (Opcode == ARM::t2MSR_M && FeatureBits [ARM::HasV7Ops]) {
907 unsigned SpecRegRBit = Op.
getImm() >> 4;
910 if (!SpecRegRBit && (Mask == 8 || Mask == 4 || Mask == 12)) {
949 auto TheReg = ARMBankedReg::lookupBankedRegByEncoding(Banked);
950 assert(TheReg &&
"invalid banked register operand");
951 std::string
Name = TheReg->Name;
953 uint32_t isSPSR = (Banked & 0x20) >> 5;
955 Name.replace(0, 4,
"SPSR");
964 if ((
unsigned)CC == 15)
1000 "Expect ARM CPSR register!");
1034 template <
unsigned scale>
1048 if (OffImm == INT32_MIN)
1050 else if (OffImm < 0)
1051 O <<
"#-" << -OffImm;
1078 assert(NumTZ <= 3 &&
"Invalid IT mask!");
1079 for (
unsigned Pos = 3,
e = NumTZ; Pos >
e; --Pos) {
1080 if ((Mask >> Pos) & 1)
1098 O <<
markup(
"<mem:") <<
"[";
1100 if (
unsigned RegNum = MO2.
getReg()) {
1120 O <<
markup(
"<mem:") <<
"[";
1122 if (
unsigned ImmOffs = MO2.
getImm()) {
1170 assert(MO2.
isImm() &&
"Not a valid t2_so_reg value!");
1175 template <
bool AlwaysPr
intImm0>
1187 O <<
markup(
"<mem:") <<
"[";
1190 int32_t OffImm = (int32_t)MO2.
getImm();
1191 bool isSub = OffImm < 0;
1193 if (OffImm == INT32_MIN)
1197 }
else if (AlwaysPrintImm0 || OffImm > 0) {
1203 template <
bool AlwaysPr
intImm0>
1211 O <<
markup(
"<mem:") <<
"[";
1214 int32_t OffImm = (int32_t)MO2.
getImm();
1215 bool isSub = OffImm < 0;
1217 if (OffImm == INT32_MIN)
1220 O <<
", " <<
markup(
"<imm:") <<
"#-" << -OffImm <<
markup(
">");
1221 }
else if (AlwaysPrintImm0 || OffImm > 0) {
1222 O <<
", " <<
markup(
"<imm:") <<
"#" << OffImm <<
markup(
">");
1227 template <
bool AlwaysPr
intImm0>
1240 O <<
markup(
"<mem:") <<
"[";
1243 int32_t OffImm = (int32_t)MO2.
getImm();
1244 bool isSub = OffImm < 0;
1246 assert(((OffImm & 0x3) == 0) &&
"Not a valid immediate!");
1249 if (OffImm == INT32_MIN)
1252 O <<
", " <<
markup(
"<imm:") <<
"#-" << -OffImm <<
markup(
">");
1253 }
else if (AlwaysPrintImm0 || OffImm > 0) {
1254 O <<
", " <<
markup(
"<imm:") <<
"#" << OffImm <<
markup(
">");
1265 O <<
markup(
"<mem:") <<
"[";
1278 int32_t OffImm = (int32_t)MO1.
getImm();
1279 O <<
", " <<
markup(
"<imm:");
1280 if (OffImm == INT32_MIN)
1282 else if (OffImm < 0)
1283 O <<
"#-" << -OffImm;
1293 int32_t OffImm = (int32_t)MO1.
getImm();
1295 assert(((OffImm & 0x3) == 0) &&
"Not a valid immediate!");
1297 O <<
", " <<
markup(
"<imm:");
1298 if (OffImm == INT32_MIN)
1300 else if (OffImm < 0)
1301 O <<
"#-" << -OffImm;
1315 O <<
markup(
"<mem:") <<
"[";
1318 assert(MO2.
getReg() &&
"Invalid so_reg load / store address!");
1322 unsigned ShAmt = MO3.
getImm();
1324 assert(ShAmt <= 3 &&
"Not a valid Thumb2 addressing mode!");
1325 O <<
", lsl " <<
markup(
"<imm:") <<
"#" << ShAmt <<
markup(
">");
1344 O <<
markup(
"<imm:") <<
"#0x";
1362 assert(Imm <= 3 &&
"illegal ror immediate!");
1363 O <<
", ror " <<
markup(
"<imm:") <<
"#" << 8 * Imm <<
markup(
">");
1376 unsigned Rot = (Op.
getImm() & 0xF00) >> 7;
1378 bool PrintUnsigned =
false;
1386 PrintUnsigned =
true;
1393 O <<
"#" <<
markup(
"<imm:");
1395 O << static_cast<uint32_t>(Rotated);
1626 template<
unsigned NumRegs>
1631 const char *
Prefix =
"{";
1632 for (
unsigned i = 0; i < NumRegs; i++) {
1640 template<
int64_t Angle,
int64_t Remainder>
1645 O <<
"#" << (Val * Angle) + Remainder;
1662 assert(NumTZ <= 3 &&
"Invalid VPT mask!");
1663 for (
unsigned Pos = 3,
e = NumTZ; Pos >
e; --Pos) {
1664 bool T = ((Mask >> Pos) & 1) == 0;
1676 O <<
markup(
"<imm:") <<
"#0x";
1685 assert(Val <= 1 &&
"Invalid MVE saturate operand");
1686 O <<
"#" << (Val == 1 ? 48 : 64);
static const char * getRegisterName(unsigned RegNo, unsigned AltIdx=ARM::NoRegAltName)
void printVectorListTwoAllLanes(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
void printThumbAddrModeImm5S1Operand(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
void printAddrMode3OffsetOperand(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
void printMveAddrModeRQOperand(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
void printNoHashImmediate(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
virtual bool printAliasInstr(const MCInst *MI, const MCSubtargetInfo &STI, raw_ostream &O)
This class represents lattice values for constants.
void printVectorListThreeAllLanes(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
void printT2AddrModeImm8Operand(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
void printAddrModeTBB(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
void printThumbAddrModeImm5S2Operand(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
amdgpu Simplify well known AMD library false FunctionCallee Value const Twine & Name
unsigned getAM2IdxMode(unsigned AM2Opc)
void printBankedRegOperand(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
const char * getAMSubModeStr(AMSubMode Mode)
void printExpandedImmOperand(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
void printBitfieldInvMaskImmOperand(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
void printT2AddrModeImm8s4Operand(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
void printMveAddrModeQOperand(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
void printAddrMode7Operand(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
void printThumbLdrLabelOperand(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
const MClassSysReg * lookupMClassSysRegBy8bitSYSmValue(unsigned SYSm)
void printPKHASRShiftImm(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
unsigned countTrailingZeros(T Val, ZeroBehavior ZB=ZB_Width)
Count number of 0's from the least significant bit to the most stopping at the first 1...
const char * getShiftOpcStr(ShiftOpc Op)
static unsigned translateShiftImm(unsigned imm)
translateShiftImm - Convert shift immediate from 0-31 to 1-32 for printing.
void printAddrMode5FP16Operand(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
void printAM2PreOrOffsetIndexOp(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
void printThumbAddrModeSPOperand(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
ShiftOpc getAM2ShiftOpc(unsigned AM2Opc)
static MCOperand createReg(unsigned Reg)
void printT2AddrModeImm8s4OffsetOperand(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
bool applyTargetSpecificCLOption(StringRef Opt) override
Customize the printer according to a command line option.
const FeatureBitset & getFeatureBits() const
void printVectorListThree(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
void printVectorListTwoSpacedAllLanes(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
AMSubMode getAM4SubMode(unsigned Mode)
void printT2AddrModeImm8OffsetOperand(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
void printMVEVectorList(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
void printLdStmModeOperand(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
Base class for the full range of assembler expressions which are needed for parsing.
void printFBits32(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
void printCoprocOptionImm(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
uint64_t decodeVMOVModImm(unsigned ModImm, unsigned &EltBits)
decodeVMOVModImm - Decode a NEON/MVE modified immediate value into the element value and the element ...
unsigned getReg() const
Returns the register number.
void printCPSIFlag(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
unsigned char getAM3Offset(unsigned AM3Opc)
unsigned getAM3IdxMode(unsigned AM3Opc)
void printInst(const MCInst *MI, uint64_t Address, StringRef Annot, const MCSubtargetInfo &STI, raw_ostream &O) override
Print the specified MCInst to the specified raw_ostream.
raw_ostream & write_hex(unsigned long long N)
Output N in hexadecimal, without any prefix or padding.
bool contains(MCRegister Reg) const
contains - Return true if the specified register is included in this register class.
format_object< int64_t > formatImm(int64_t Value) const
Utility function to print immediates in decimal or hex.
static bool isStore(int Opcode)
float getFPImmFloat(unsigned Imm)
void printSBitModifierOperand(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
const MCExpr * getExpr() const
MCRegisterClass - Base class of TargetRegisterClass.
Instances of this class represent a single low-level machine instruction.
MCRegisterInfo base class - We assume that the target defines a static array of MCRegisterDesc object...
AddrOpc getAM2Op(unsigned AM2Opc)
This class is intended to be used as a base class for asm properties and features specific to the tar...
unsigned char getAM5Offset(unsigned AM5Opc)
void printThumbSRImm(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
void printPostIdxImm8s4Operand(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
void printInstruction(const MCInst *MI, uint64_t Address, const MCSubtargetInfo &STI, raw_ostream &O)
void printMandatoryPredicateOperand(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
AddrOpc getAM3Op(unsigned AM3Opc)
void print(raw_ostream &OS, const MCAsmInfo *MAI, bool InParens=false) const
unsigned const MachineRegisterInfo * MRI
Container class for subtarget features.
static const char * InstSyncBOptToString(unsigned val)
void printGPRPairOperand(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
StringRef markup(StringRef s) const
Utility functions to make adding mark ups simpler.
void printRegisterList(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
unsigned getSORegOffset(unsigned Op)
void printComplexRotationOp(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
This is an important base class in LLVM.
void printThumbAddrModeImm5S4Operand(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
void printVMOVModImmOperand(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
Interface to description of machine instruction set.
const MClassSysReg * lookupMClassSysRegAPSRNonDeprecated(unsigned SYSm)
MCRegister getMatchingSuperReg(MCRegister Reg, unsigned SubIdx, const MCRegisterClass *RC) const
Return a super-register of the specified register Reg so its sub-register of index SubIdx is Reg...
void printMveSaturateOp(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
static const char * TraceSyncBOptToString(unsigned val)
void printVectorListOne(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
void printVectorListTwo(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
void printAddrModeTBH(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
void printVectorIndex(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
static uint64_t scale(uint64_t Num, uint32_t N, uint32_t D)
unsigned getNumOperands() const
void printAddrMode6Operand(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
MCRegister getSubReg(MCRegister Reg, unsigned Idx) const
Returns the physical register number of sub-register "Index" for physical register RegNo...
void printRotImmOperand(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
void printMemBOption(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
uint16_t getEncodingValue(MCRegister RegNo) const
Returns the encoding for RegNo.
const MClassSysReg * lookupMClassSysRegBy12bitSYSmValue(unsigned SYSm)
void printAddrMode5Operand(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
void printSORegRegOperand(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
unsigned rotr32(unsigned Val, unsigned Amt)
rotr32 - Rotate a 32-bit unsigned value right by a specified # bits.
void printThumbAddrModeRROperand(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
unsigned countLeadingZeros(T Val, ZeroBehavior ZB=ZB_Width)
Count number of 0's from the most significant bit to the least stopping at the first 1...
void printAdrLabelOperand(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
void printPKHLSLShiftImm(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
void printVPTMask(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
void printCImmediate(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
#define llvm_unreachable(msg)
Marks that the current location is not supposed to be reachable.
void printVectorListFourSpacedAllLanes(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
static const char * ARMCondCodeToString(ARMCC::CondCodes CC)
static const char * IModToString(unsigned val)
const char * getAddrOpcStr(AddrOpc Op)
void printPostIdxRegOperand(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
void printVectorListFourSpaced(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
void setOpcode(unsigned Op)
int getSOImmVal(unsigned Arg)
getSOImmVal - Given a 32-bit immediate, if it is something that can fit into an shifter_operand immed...
void printFBits16(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
void printVectorListTwoSpaced(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
void printTraceSyncBOption(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
void printVectorListThreeSpaced(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
const MCOperand & getOperand(unsigned i) const
ARMInstPrinter(const MCAsmInfo &MAI, const MCInstrInfo &MII, const MCRegisterInfo &MRI)
unsigned getAM2Offset(unsigned AM2Opc)
void printPCLabel(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
AddrOpc getAM5FP16Op(unsigned AM5Opc)
void printAddrMode6OffsetOperand(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
static void printRegImmShift(raw_ostream &O, ARM_AM::ShiftOpc ShOpc, unsigned ShImm, bool UseMarkup)
Prints the shift value with an immediate value.
static const char * MemBOptToString(unsigned val, bool HasV8)
bool evaluateAsAbsolute(int64_t &Res, const MCAsmLayout &Layout, const SectionAddrMap &Addrs) const
Try to evaluate the expression to an absolute value.
void printMandatoryInvertedPredicateOperand(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
static const char * IFlagsToString(unsigned val)
ShiftOpc getSORegShOp(unsigned Op)
void printVectorListFourAllLanes(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
void printThumbAddrModeImm5SOperand(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O, unsigned Scale)
bool UseMarkup
True if we are printing marked up assembly.
static CondCodes getOppositeCondition(CondCodes CC)
This is an instance of a target assembly language printer that converts an MCInst to valid target ass...
void printT2SOOperand(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
void printOperand(const MCInst *MI, unsigned OpNo, const MCSubtargetInfo &STI, raw_ostream &O)
void printAddrMode2Operand(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
void printT2AddrModeImm0_1020s4Operand(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
Generic base class for all target subtargets.
void printVectorListFour(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
void printVPTPredicateOperand(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
void printT2AddrModeSoRegOperand(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
void printPostIdxImm8Operand(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
void printVectorListOneAllLanes(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
void printImmPlusOneOperand(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
void printAddrMode2OffsetOperand(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
void printSetendOperand(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
void printAnnotation(raw_ostream &OS, StringRef Annot)
Utility function for printing annotations.
void printMSRMaskOperand(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
void printAddrModeImm12Operand(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
std::underlying_type< E >::type Mask()
Get a bitmask with 1s in all places up to the high-order bit of E's largest value.
This class implements an extremely fast bulk output stream that can only output to a stream...
void printVectorListThreeSpacedAllLanes(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
void addOperand(const MCOperand &Op)
StringRef - Represent a constant reference to a string, i.e.
void printPImmediate(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
unsigned char getAM5FP16Offset(unsigned AM5Opc)
void printThumbITMask(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
AddrOpc getAM5Op(unsigned AM5Opc)
void printShiftImmOperand(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
unsigned getOpcode() const
void printAM3PreOrOffsetIndexOp(const MCInst *MI, unsigned Op, raw_ostream &O, bool AlwaysPrintImm0)
static const char * ARMVPTPredToString(ARMVCC::VPTCodes CC)
Instances of this class represent operands of the MCInst class.
void printMandatoryRestrictedPredicateOperand(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
void printAddrMode3Operand(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
void printSORegImmOperand(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
void printThumbS4ImmOperand(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
void printPredicateOperand(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
void printRegName(raw_ostream &OS, unsigned RegNo) const override
Print the assembler register name.
void printInstSyncBOption(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
void printFPImmOperand(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
const MCRegisterClass & getRegClass(unsigned i) const
Returns the register class associated with the enumeration value.
void printCPSIMod(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
const MCRegisterInfo & MRI
void printModImmOperand(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)