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) {
128 O <<
", " <<
markup(
"<imm:") <<
"#"
136 case ARM::t2STMDB_UPD:
141 if (Opcode == ARM::t2STMDB_UPD)
150 case ARM::STR_PRE_IMM:
165 case ARM::t2LDMIA_UPD:
170 if (Opcode == ARM::t2LDMIA_UPD)
179 case ARM::LDR_POST_IMM:
193 case ARM::VSTMSDB_UPD:
194 case ARM::VSTMDDB_UPD:
196 O <<
'\t' <<
"vpush";
206 case ARM::VLDMSIA_UPD:
207 case ARM::VLDMDIA_UPD:
219 bool Writeback =
true;
250 bool isStore = Opcode == ARM::STREXD || Opcode == ARM::STLEXD;
285 }
else if (Op.
isImm()) {
288 assert(Op.
isExpr() &&
"unknown operand kind in printOperand");
290 switch (Expr->getKind()) {
293 Expr->print(O, &
MAI);
300 int64_t TargetAddress;
303 Expr->print(O, &
MAI);
306 O.
write_hex(static_cast<uint32_t>(TargetAddress));
313 Expr->print(O, &
MAI);
328 O <<
markup(
"<mem:") <<
"[pc, ";
330 int32_t OffImm = (int32_t)MO1.
getImm();
331 bool isSub = OffImm < 0;
334 if (OffImm == INT32_MIN)
393 O <<
markup(
"<mem:") <<
"[";
398 O <<
", " <<
markup(
"<imm:") <<
"#"
420 O <<
markup(
"<mem:") <<
"[";
432 O <<
markup(
"<mem:") <<
"[";
467 O <<
markup(
"<imm:") <<
'#'
486 bool AlwaysPrintImm0) {
491 O <<
markup(
"<mem:") <<
'[';
505 if (AlwaysPrintImm0 || ImmOffs || (op ==
ARM_AM::sub)) {
512 template <
bool AlwaysPr
intImm0>
524 "unexpected idxmode");
542 O <<
markup(
"<imm:") <<
'#'
551 unsigned Imm = MO.
getImm();
552 O <<
markup(
"<imm:") <<
'#' << ((Imm & 256) ?
"" :
"-") << (Imm & 0xff)
562 O << (MO2.
getImm() ?
"" :
"-");
570 unsigned Imm = MO.
getImm();
571 O <<
markup(
"<imm:") <<
'#' << ((Imm & 256) ?
"" :
"-") << ((Imm & 0xff) << 2)
583 template <
bool AlwaysPr
intImm0>
595 O <<
markup(
"<mem:") <<
"[";
600 if (AlwaysPrintImm0 || ImmOffs || Op ==
ARM_AM::sub) {
602 << ImmOffs * 4 <<
markup(
">");
607 template <
bool AlwaysPr
intImm0>
619 O <<
markup(
"<mem:") <<
"[";
624 if (AlwaysPrintImm0 || ImmOffs || Op ==
ARM_AM::sub) {
641 O <<
markup(
"<mem:") <<
"[";
644 O <<
":" << (MO2.
getImm() << 3);
653 O <<
markup(
"<mem:") <<
"[";
679 assert(MO.
isImm() &&
"Not a valid bf_inv_mask_imm value!");
681 <<
'#' << width <<
markup(
">");
702 bool isASR = (ShiftOp & (1 << 5)) != 0;
703 unsigned Amt = ShiftOp & 0x1f;
705 O <<
", asr " <<
markup(
"<imm:") <<
"#" << (Amt == 0 ? 32 : Amt)
708 O <<
", lsl " <<
markup(
"<imm:") <<
"#" << Amt <<
markup(
">");
718 assert(Imm > 0 && Imm < 32 &&
"Invalid PKH shift immediate value!");
719 O <<
", lsl " <<
markup(
"<imm:") <<
"#" << Imm <<
markup(
">");
729 assert(Imm > 0 && Imm <= 32 &&
"Invalid PKH shift immediate value!");
730 O <<
", asr " <<
markup(
"<imm:") <<
"#" << Imm <<
markup(
">");
780 for (
int i = 2; i >= 0; --i)
781 if (IFlags & (1 << i))
792 unsigned SpecRegRBit = Op.
getImm() >> 4;
796 if (FeatureBits[ARM::FeatureMClass]) {
797 unsigned SYSm = Op.
getImm();
801 if (Opcode == ARM::t2MSR_M && FeatureBits[ARM::FeatureDSP]) {
833 if (Opcode == ARM::t2MSR_M && FeatureBits [ARM::HasV7Ops]) {
922 O <<
"basepri_max_ns";
938 if (!SpecRegRBit && (Mask == 8 || Mask == 4 || Mask == 12)) {
1012 assert(!R &&
"should have dealt with SPSR regs");
1013 const char *RegNames[] = {
1014 "r8_usr",
"r9_usr",
"r10_usr",
"r11_usr",
"r12_usr",
"sp_usr",
"lr_usr",
1015 "",
"r8_fiq",
"r9_fiq",
"r10_fiq",
"r11_fiq",
"r12_fiq",
"sp_fiq",
1016 "lr_fiq",
"",
"lr_irq",
"sp_irq",
"lr_svc",
"sp_svc",
"lr_abt",
1017 "sp_abt",
"lr_und",
"sp_und",
"",
"",
"",
"",
1018 "lr_mon",
"sp_mon",
"elr_hyp",
"sp_hyp"};
1019 const char *
Name = RegNames[SysM];
1020 assert(Name[0] &&
"invalid banked register operand");
1030 if ((
unsigned)CC == 15)
1049 "Expect ARM CPSR register!");
1083 template <
unsigned scale>
1097 if (OffImm == INT32_MIN)
1099 else if (OffImm < 0)
1100 O <<
"#-" << -OffImm;
1127 unsigned CondBit0 = Firstcond & 1;
1129 assert(NumTZ <= 3 &&
"Invalid IT mask!");
1130 for (
unsigned Pos = 3, e = NumTZ; Pos > e; --Pos) {
1131 bool T = ((Mask >> Pos) & 1) == CondBit0;
1150 O <<
markup(
"<mem:") <<
"[";
1152 if (
unsigned RegNum = MO2.
getReg()) {
1172 O <<
markup(
"<mem:") <<
"[";
1174 if (
unsigned ImmOffs = MO2.
getImm()) {
1222 assert(MO2.
isImm() &&
"Not a valid t2_so_reg value!");
1227 template <
bool AlwaysPr
intImm0>
1239 O <<
markup(
"<mem:") <<
"[";
1242 int32_t OffImm = (int32_t)MO2.
getImm();
1243 bool isSub = OffImm < 0;
1245 if (OffImm == INT32_MIN)
1249 }
else if (AlwaysPrintImm0 || OffImm > 0) {
1255 template <
bool AlwaysPr
intImm0>
1263 O <<
markup(
"<mem:") <<
"[";
1266 int32_t OffImm = (int32_t)MO2.
getImm();
1267 bool isSub = OffImm < 0;
1269 if (OffImm == INT32_MIN)
1272 O <<
", " <<
markup(
"<imm:") <<
"#-" << -OffImm <<
markup(
">");
1273 }
else if (AlwaysPrintImm0 || OffImm > 0) {
1274 O <<
", " <<
markup(
"<imm:") <<
"#" << OffImm <<
markup(
">");
1279 template <
bool AlwaysPr
intImm0>
1292 O <<
markup(
"<mem:") <<
"[";
1295 int32_t OffImm = (int32_t)MO2.
getImm();
1296 bool isSub = OffImm < 0;
1298 assert(((OffImm & 0x3) == 0) &&
"Not a valid immediate!");
1301 if (OffImm == INT32_MIN)
1304 O <<
", " <<
markup(
"<imm:") <<
"#-" << -OffImm <<
markup(
">");
1305 }
else if (AlwaysPrintImm0 || OffImm > 0) {
1306 O <<
", " <<
markup(
"<imm:") <<
"#" << OffImm <<
markup(
">");
1317 O <<
markup(
"<mem:") <<
"[";
1330 int32_t OffImm = (int32_t)MO1.
getImm();
1331 O <<
", " <<
markup(
"<imm:");
1332 if (OffImm == INT32_MIN)
1334 else if (OffImm < 0)
1335 O <<
"#-" << -OffImm;
1345 int32_t OffImm = (int32_t)MO1.
getImm();
1347 assert(((OffImm & 0x3) == 0) &&
"Not a valid immediate!");
1349 O <<
", " <<
markup(
"<imm:");
1350 if (OffImm == INT32_MIN)
1352 else if (OffImm < 0)
1353 O <<
"#-" << -OffImm;
1367 O <<
markup(
"<mem:") <<
"[";
1370 assert(MO2.
getReg() &&
"Invalid so_reg load / store address!");
1374 unsigned ShAmt = MO3.
getImm();
1376 assert(ShAmt <= 3 &&
"Not a valid Thumb2 addressing mode!");
1377 O <<
", lsl " <<
markup(
"<imm:") <<
"#" << ShAmt <<
markup(
">");
1396 O <<
markup(
"<imm:") <<
"#0x";
1414 assert(Imm <= 3 &&
"illegal ror immediate!");
1415 O <<
", ror " <<
markup(
"<imm:") <<
"#" << 8 * Imm <<
markup(
">");
1428 unsigned Rot = (Op.
getImm() & 0xF00) >> 7;
1430 bool PrintUnsigned =
false;
1438 PrintUnsigned =
true;
1445 O <<
"#" <<
markup(
"<imm:");
1447 O << static_cast<uint32_t>(Rotated);
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 printNoHashImmediate(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
static unsigned char getAM3Offset(unsigned AM3Opc)
virtual bool printAliasInstr(const MCInst *MI, const MCSubtargetInfo &STI, raw_ostream &O)
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)
void printBankedRegOperand(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
static const char * getShiftOpcStr(ShiftOpc Op)
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)
std::size_t 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 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)
static unsigned rotr32(unsigned Val, unsigned Amt)
rotr32 - Rotate a 32-bit unsigned value right by a specified # bits.
void printPKHASRShiftImm(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
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)
static unsigned getAM3IdxMode(unsigned AM3Opc)
void printThumbAddrModeSPOperand(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
static MCOperand createReg(unsigned Reg)
void printT2AddrModeImm8s4OffsetOperand(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
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)
void printT2AddrModeImm8OffsetOperand(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.
Reg
All possible values of the reg field in the ModR/M byte.
static AMSubMode getAM4SubMode(unsigned Mode)
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)
void printCPSIFlag(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
unsigned getReg() const
Returns the register number.
static AddrOpc getAM5FP16Op(unsigned AM5Opc)
raw_ostream & write_hex(unsigned long long N)
Output N in hexadecimal, without any prefix or padding.
void printInstruction(const MCInst *MI, const MCSubtargetInfo &STI, raw_ostream &O)
void printSBitModifierOperand(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
static const char * getRegisterName(unsigned RegNo)
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...
This class is intended to be used as a base class for asm properties and features specific to the tar...
static unsigned getAM2IdxMode(unsigned AM2Opc)
const MCExpr * getExpr() const
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 printMandatoryPredicateOperand(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
unsigned const MachineRegisterInfo * MRI
Container class for subtarget features.
std::size_t 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...
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)
const MCRegisterClass & getRegClass(unsigned i) const
Returns the register class associated with the enumeration value.
This is an important base class in LLVM.
static unsigned char getAM5Offset(unsigned AM5Opc)
void printThumbAddrModeImm5S4Operand(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
unsigned getSubReg(unsigned Reg, unsigned Idx) const
Returns the physical register number of sub-register "Index" for physical register RegNo...
Interface to description of machine instruction set.
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)
void printAddrMode6Operand(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
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)
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)
static const char * getAddrOpcStr(AddrOpc Op)
void printThumbAddrModeRROperand(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
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 printCImmediate(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
format_object< int64_t > formatImm(int64_t Value) const
Utility function to print immediates in decimal or hex.
void printVectorListFourSpacedAllLanes(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
unsigned getMatchingSuperReg(unsigned 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...
static const char * ARMCondCodeToString(ARMCC::CondCodes CC)
static const char * IModToString(unsigned val)
static AddrOpc getAM2Op(unsigned AM2Opc)
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)
void printFBits16(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
bool contains(unsigned Reg) const
contains - Return true if the specified register is included in this register class.
void printVectorListTwoSpaced(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
static unsigned getAM2Offset(unsigned AM2Opc)
void printVectorListThreeSpaced(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
ARMInstPrinter(const MCAsmInfo &MAI, const MCInstrInfo &MII, const MCRegisterInfo &MRI)
const FeatureBitset & getFeatureBits() const
getFeatureBits - Return the feature bits.
void printPCLabel(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
void printAddrMode6OffsetOperand(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
unsigned getOpcode() const
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)
static AddrOpc getAM3Op(unsigned AM3Opc)
static const char * IFlagsToString(unsigned val)
static int getSOImmVal(unsigned Arg)
getSOImmVal - Given a 32-bit immediate, if it is something that can fit into an shifter_operand immed...
llvm_unreachable("Unknown RegBank!")
static const char * getAMSubModeStr(AMSubMode Mode)
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.
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)
unsigned getNumOperands() const
void printT2AddrModeImm0_1020s4Operand(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
MCSubtargetInfo - Generic base class for all target subtargets.
void printVectorListFour(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
bool evaluateAsAbsolute(int64_t &Res, const MCAsmLayout &Layout, const SectionAddrMap &Addrs) const
Try to evaluate the expression to an absolute value.
void printT2AddrModeSoRegOperand(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
static AddrOpc getAM5Op(unsigned AM5Opc)
void printPostIdxImm8Operand(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
static unsigned char getAM5FP16Offset(unsigned AM5Opc)
void print(raw_ostream &OS, const MCAsmInfo *MAI, bool InParens=false) const
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 printNEONModImmOperand(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
static ShiftOpc getAM2ShiftOpc(unsigned AM2Opc)
void printSetendOperand(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
uint16_t getEncodingValue(unsigned RegNo) const
Returns the encoding for RegNo.
static unsigned getSORegOffset(unsigned Op)
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)
void printThumbITMask(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
void printShiftImmOperand(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
void printAM3PreOrOffsetIndexOp(const MCInst *MI, unsigned Op, raw_ostream &O, bool AlwaysPrintImm0)
Instances of this class represent operands of the MCInst class.
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)
static float getFPImmFloat(unsigned Imm)
void printInst(const MCInst *MI, raw_ostream &O, StringRef Annot, const MCSubtargetInfo &STI) override
Print the specified MCInst to the specified raw_ostream.
void printThumbS4ImmOperand(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
const MCOperand & getOperand(unsigned i) const
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)
void printCPSIMod(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
static ShiftOpc getSORegShOp(unsigned Op)
const MCRegisterInfo & MRI
static uint64_t decodeNEONModImm(unsigned ModImm, unsigned &EltBits)
decodeNEONModImm - Decode a NEON modified immediate value into the element value and the element size...
void printModImmOperand(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)