LLVM  9.0.0svn
ARMInstPrinter.h
Go to the documentation of this file.
1 //===- ARMInstPrinter.h - Convert ARM MCInst to assembly syntax -*- C++ -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 //
9 // This class prints an ARM MCInst to a .s file.
10 //
11 //===----------------------------------------------------------------------===//
12 
13 #ifndef LLVM_LIB_TARGET_ARM_INSTPRINTER_ARMINSTPRINTER_H
14 #define LLVM_LIB_TARGET_ARM_INSTPRINTER_ARMINSTPRINTER_H
15 
17 #include "llvm/MC/MCInstPrinter.h"
18 
19 namespace llvm {
20 
21 class ARMInstPrinter : public MCInstPrinter {
22 public:
24  const MCRegisterInfo &MRI);
25 
26  bool applyTargetSpecificCLOption(StringRef Opt) override;
27 
28  void printInst(const MCInst *MI, raw_ostream &O, StringRef Annot,
29  const MCSubtargetInfo &STI) override;
30  void printRegName(raw_ostream &OS, unsigned RegNo) const override;
31 
32  // Autogenerated by tblgen.
33  void printInstruction(const MCInst *MI, const MCSubtargetInfo &STI,
34  raw_ostream &O);
35  virtual bool printAliasInstr(const MCInst *MI, const MCSubtargetInfo &STI,
36  raw_ostream &O);
37  virtual void printCustomAliasOperand(const MCInst *MI, unsigned OpIdx,
38  unsigned PrintMethodIdx,
39  const MCSubtargetInfo &STI,
40  raw_ostream &O);
41  static const char *getRegisterName(unsigned RegNo,
42  unsigned AltIdx = ARM::NoRegAltName);
43 
44  void printOperand(const MCInst *MI, unsigned OpNo, const MCSubtargetInfo &STI,
45  raw_ostream &O);
46 
47  void printSORegRegOperand(const MCInst *MI, unsigned OpNum,
48  const MCSubtargetInfo &STI, raw_ostream &O);
49  void printSORegImmOperand(const MCInst *MI, unsigned OpNum,
50  const MCSubtargetInfo &STI, raw_ostream &O);
51 
52  void printAddrModeTBB(const MCInst *MI, unsigned OpNum,
53  const MCSubtargetInfo &STI, raw_ostream &O);
54  void printAddrModeTBH(const MCInst *MI, unsigned OpNum,
55  const MCSubtargetInfo &STI, raw_ostream &O);
56  void printAddrMode2Operand(const MCInst *MI, unsigned OpNum,
57  const MCSubtargetInfo &STI, raw_ostream &O);
58  void printAM2PostIndexOp(const MCInst *MI, unsigned OpNum,
59  const MCSubtargetInfo &STI, raw_ostream &O);
60  void printAM2PreOrOffsetIndexOp(const MCInst *MI, unsigned OpNum,
61  const MCSubtargetInfo &STI, raw_ostream &O);
62  void printAddrMode2OffsetOperand(const MCInst *MI, unsigned OpNum,
63  const MCSubtargetInfo &STI, raw_ostream &O);
64  template <bool AlwaysPrintImm0>
65  void printAddrMode3Operand(const MCInst *MI, unsigned OpNum,
66  const MCSubtargetInfo &STI, raw_ostream &O);
67  void printAddrMode3OffsetOperand(const MCInst *MI, unsigned OpNum,
68  const MCSubtargetInfo &STI, raw_ostream &O);
69  void printAM3PreOrOffsetIndexOp(const MCInst *MI, unsigned Op, raw_ostream &O,
70  bool AlwaysPrintImm0);
71  void printPostIdxImm8Operand(const MCInst *MI, unsigned OpNum,
72  const MCSubtargetInfo &STI, raw_ostream &O);
73  void printPostIdxRegOperand(const MCInst *MI, unsigned OpNum,
74  const MCSubtargetInfo &STI, raw_ostream &O);
75  void printPostIdxImm8s4Operand(const MCInst *MI, unsigned OpNum,
76  const MCSubtargetInfo &STI, raw_ostream &O);
77 
78  void printLdStmModeOperand(const MCInst *MI, unsigned OpNum,
79  const MCSubtargetInfo &STI, raw_ostream &O);
80  template <bool AlwaysPrintImm0>
81  void printAddrMode5Operand(const MCInst *MI, unsigned OpNum,
82  const MCSubtargetInfo &STI, raw_ostream &O);
83  template <bool AlwaysPrintImm0>
84  void printAddrMode5FP16Operand(const MCInst *MI, unsigned OpNum,
85  const MCSubtargetInfo &STI, raw_ostream &O);
86  void printAddrMode6Operand(const MCInst *MI, unsigned OpNum,
87  const MCSubtargetInfo &STI, raw_ostream &O);
88  void printAddrMode7Operand(const MCInst *MI, unsigned OpNum,
89  const MCSubtargetInfo &STI, raw_ostream &O);
90  void printAddrMode6OffsetOperand(const MCInst *MI, unsigned OpNum,
91  const MCSubtargetInfo &STI, raw_ostream &O);
92 
93  void printBitfieldInvMaskImmOperand(const MCInst *MI, unsigned OpNum,
94  const MCSubtargetInfo &STI,
95  raw_ostream &O);
96  void printMemBOption(const MCInst *MI, unsigned OpNum,
97  const MCSubtargetInfo &STI, raw_ostream &O);
98  void printInstSyncBOption(const MCInst *MI, unsigned OpNum,
99  const MCSubtargetInfo &STI, raw_ostream &O);
100  void printTraceSyncBOption(const MCInst *MI, unsigned OpNum,
101  const MCSubtargetInfo &STI, raw_ostream &O);
102  void printShiftImmOperand(const MCInst *MI, unsigned OpNum,
103  const MCSubtargetInfo &STI, raw_ostream &O);
104  void printPKHLSLShiftImm(const MCInst *MI, unsigned OpNum,
105  const MCSubtargetInfo &STI, raw_ostream &O);
106  void printPKHASRShiftImm(const MCInst *MI, unsigned OpNum,
107  const MCSubtargetInfo &STI, raw_ostream &O);
108 
109  template <unsigned scale>
110  void printAdrLabelOperand(const MCInst *MI, unsigned OpNum,
111  const MCSubtargetInfo &STI, raw_ostream &O);
112  void printThumbS4ImmOperand(const MCInst *MI, unsigned OpNum,
113  const MCSubtargetInfo &STI, raw_ostream &O);
114  void printThumbSRImm(const MCInst *MI, unsigned OpNum,
115  const MCSubtargetInfo &STI, raw_ostream &O);
116  void printThumbITMask(const MCInst *MI, unsigned OpNum,
117  const MCSubtargetInfo &STI, raw_ostream &O);
118  void printThumbAddrModeRROperand(const MCInst *MI, unsigned OpNum,
119  const MCSubtargetInfo &STI, raw_ostream &O);
120  void printThumbAddrModeImm5SOperand(const MCInst *MI, unsigned OpNum,
121  const MCSubtargetInfo &STI,
122  raw_ostream &O, unsigned Scale);
123  void printThumbAddrModeImm5S1Operand(const MCInst *MI, unsigned OpNum,
124  const MCSubtargetInfo &STI,
125  raw_ostream &O);
126  void printThumbAddrModeImm5S2Operand(const MCInst *MI, unsigned OpNum,
127  const MCSubtargetInfo &STI,
128  raw_ostream &O);
129  void printThumbAddrModeImm5S4Operand(const MCInst *MI, unsigned OpNum,
130  const MCSubtargetInfo &STI,
131  raw_ostream &O);
132  void printThumbAddrModeSPOperand(const MCInst *MI, unsigned OpNum,
133  const MCSubtargetInfo &STI, raw_ostream &O);
134 
135  void printT2SOOperand(const MCInst *MI, unsigned OpNum,
136  const MCSubtargetInfo &STI, raw_ostream &O);
137  template <bool AlwaysPrintImm0>
138  void printAddrModeImm12Operand(const MCInst *MI, unsigned OpNum,
139  const MCSubtargetInfo &STI, raw_ostream &O);
140  template <bool AlwaysPrintImm0>
141  void printT2AddrModeImm8Operand(const MCInst *MI, unsigned OpNum,
142  const MCSubtargetInfo &STI, raw_ostream &O);
143  template <bool AlwaysPrintImm0>
144  void printT2AddrModeImm8s4Operand(const MCInst *MI, unsigned OpNum,
145  const MCSubtargetInfo &STI, raw_ostream &O);
146  void printT2AddrModeImm0_1020s4Operand(const MCInst *MI, unsigned OpNum,
147  const MCSubtargetInfo &STI,
148  raw_ostream &O);
149  void printT2AddrModeImm8OffsetOperand(const MCInst *MI, unsigned OpNum,
150  const MCSubtargetInfo &STI,
151  raw_ostream &O);
152  void printT2AddrModeImm8s4OffsetOperand(const MCInst *MI, unsigned OpNum,
153  const MCSubtargetInfo &STI,
154  raw_ostream &O);
155  void printT2AddrModeSoRegOperand(const MCInst *MI, unsigned OpNum,
156  const MCSubtargetInfo &STI, raw_ostream &O);
157 
158  void printSetendOperand(const MCInst *MI, unsigned OpNum,
159  const MCSubtargetInfo &STI, raw_ostream &O);
160  void printCPSIMod(const MCInst *MI, unsigned OpNum,
161  const MCSubtargetInfo &STI, raw_ostream &O);
162  void printCPSIFlag(const MCInst *MI, unsigned OpNum,
163  const MCSubtargetInfo &STI, raw_ostream &O);
164  void printMSRMaskOperand(const MCInst *MI, unsigned OpNum,
165  const MCSubtargetInfo &STI, raw_ostream &O);
166  void printBankedRegOperand(const MCInst *MI, unsigned OpNum,
167  const MCSubtargetInfo &STI, raw_ostream &O);
168  void printPredicateOperand(const MCInst *MI, unsigned OpNum,
169  const MCSubtargetInfo &STI, raw_ostream &O);
170  void printMandatoryPredicateOperand(const MCInst *MI, unsigned OpNum,
171  const MCSubtargetInfo &STI,
172  raw_ostream &O);
173  void printSBitModifierOperand(const MCInst *MI, unsigned OpNum,
174  const MCSubtargetInfo &STI, raw_ostream &O);
175  void printRegisterList(const MCInst *MI, unsigned OpNum,
176  const MCSubtargetInfo &STI, raw_ostream &O);
177  void printNoHashImmediate(const MCInst *MI, unsigned OpNum,
178  const MCSubtargetInfo &STI, raw_ostream &O);
179  void printPImmediate(const MCInst *MI, unsigned OpNum,
180  const MCSubtargetInfo &STI, raw_ostream &O);
181  void printCImmediate(const MCInst *MI, unsigned OpNum,
182  const MCSubtargetInfo &STI, raw_ostream &O);
183  void printCoprocOptionImm(const MCInst *MI, unsigned OpNum,
184  const MCSubtargetInfo &STI, raw_ostream &O);
185  void printFPImmOperand(const MCInst *MI, unsigned OpNum,
186  const MCSubtargetInfo &STI, raw_ostream &O);
187  void printNEONModImmOperand(const MCInst *MI, unsigned OpNum,
188  const MCSubtargetInfo &STI, raw_ostream &O);
189  void printImmPlusOneOperand(const MCInst *MI, unsigned OpNum,
190  const MCSubtargetInfo &STI, raw_ostream &O);
191  void printRotImmOperand(const MCInst *MI, unsigned OpNum,
192  const MCSubtargetInfo &STI, raw_ostream &O);
193  void printModImmOperand(const MCInst *MI, unsigned OpNum,
194  const MCSubtargetInfo &STI, raw_ostream &O);
195  void printGPRPairOperand(const MCInst *MI, unsigned OpNum,
196  const MCSubtargetInfo &STI, raw_ostream &O);
197 
198  void printPCLabel(const MCInst *MI, unsigned OpNum,
199  const MCSubtargetInfo &STI, raw_ostream &O);
200  void printThumbLdrLabelOperand(const MCInst *MI, unsigned OpNum,
201  const MCSubtargetInfo &STI, raw_ostream &O);
202  void printFBits16(const MCInst *MI, unsigned OpNum,
203  const MCSubtargetInfo &STI, raw_ostream &O);
204  void printFBits32(const MCInst *MI, unsigned OpNum,
205  const MCSubtargetInfo &STI, raw_ostream &O);
206  void printVectorIndex(const MCInst *MI, unsigned OpNum,
207  const MCSubtargetInfo &STI, raw_ostream &O);
208  void printVectorListOne(const MCInst *MI, unsigned OpNum,
209  const MCSubtargetInfo &STI, raw_ostream &O);
210  void printVectorListTwo(const MCInst *MI, unsigned OpNum,
211  const MCSubtargetInfo &STI, raw_ostream &O);
212  void printVectorListTwoSpaced(const MCInst *MI, unsigned OpNum,
213  const MCSubtargetInfo &STI, raw_ostream &O);
214  void printVectorListThree(const MCInst *MI, unsigned OpNum,
215  const MCSubtargetInfo &STI, raw_ostream &O);
216  void printVectorListFour(const MCInst *MI, unsigned OpNum,
217  const MCSubtargetInfo &STI, raw_ostream &O);
218  void printVectorListOneAllLanes(const MCInst *MI, unsigned OpNum,
219  const MCSubtargetInfo &STI, raw_ostream &O);
220  void printVectorListTwoAllLanes(const MCInst *MI, unsigned OpNum,
221  const MCSubtargetInfo &STI, raw_ostream &O);
222  void printVectorListThreeAllLanes(const MCInst *MI, unsigned OpNum,
223  const MCSubtargetInfo &STI, raw_ostream &O);
224  void printVectorListFourAllLanes(const MCInst *MI, unsigned OpNum,
225  const MCSubtargetInfo &STI, raw_ostream &O);
226  void printVectorListTwoSpacedAllLanes(const MCInst *MI, unsigned OpNum,
227  const MCSubtargetInfo &STI,
228  raw_ostream &O);
229  void printVectorListThreeSpacedAllLanes(const MCInst *MI, unsigned OpNum,
230  const MCSubtargetInfo &STI,
231  raw_ostream &O);
232  void printVectorListFourSpacedAllLanes(const MCInst *MI, unsigned OpNum,
233  const MCSubtargetInfo &STI,
234  raw_ostream &O);
235  void printVectorListThreeSpaced(const MCInst *MI, unsigned OpNum,
236  const MCSubtargetInfo &STI, raw_ostream &O);
237  void printVectorListFourSpaced(const MCInst *MI, unsigned OpNum,
238  const MCSubtargetInfo &STI, raw_ostream &O);
239  template<int64_t Angle, int64_t Remainder>
240  void printComplexRotationOp(const MCInst *MI, unsigned OpNum,
241  const MCSubtargetInfo &STI, raw_ostream &O);
242 
243 private:
244  unsigned DefaultAltIdx = ARM::NoRegAltName;
245 };
246 
247 } // end namespace llvm
248 
249 #endif // LLVM_LIB_TARGET_ARM_INSTPRINTER_ARMINSTPRINTER_H
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)
virtual void printCustomAliasOperand(const MCInst *MI, unsigned OpIdx, unsigned PrintMethodIdx, 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.
Definition: AllocatorList.h:23
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)
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 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)
void printPKHASRShiftImm(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
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)
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.
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)
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)
void printInstruction(const MCInst *MI, const MCSubtargetInfo &STI, raw_ostream &O)
void printSBitModifierOperand(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
Instances of this class represent a single low-level machine instruction.
Definition: MCInst.h:158
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...
Definition: MCAsmInfo.h:55
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)
void printGPRPairOperand(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
void printRegisterList(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
void printAM2PostIndexOp(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
void printComplexRotationOp(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
void printThumbAddrModeImm5S4Operand(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
Interface to description of machine instruction set.
Definition: MCInstrInfo.h:23
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)
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)
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)
void printVectorListFourSpacedAllLanes(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
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 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)
ARMInstPrinter(const MCAsmInfo &MAI, const MCInstrInfo &MII, const MCRegisterInfo &MRI)
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)
const MCAsmInfo & MAI
Definition: MCInstPrinter.h:45
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)
This is an instance of a target assembly language printer that converts an MCInst to valid target ass...
Definition: MCInstPrinter.h:39
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.
const MCInstrInfo & MII
Definition: MCInstPrinter.h:46
void printVectorListFour(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)
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)
void printSetendOperand(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
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)
This class implements an extremely fast bulk output stream that can only output to a stream...
Definition: raw_ostream.h:45
void printVectorListThreeSpacedAllLanes(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
IRTranslator LLVM IR MI
StringRef - Represent a constant reference to a string, i.e.
Definition: StringRef.h:48
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)
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 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)
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)
const MCRegisterInfo & MRI
Definition: MCInstPrinter.h:47
void printModImmOperand(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)