LLVM  14.0.0git
AArch64InstPrinter.h
Go to the documentation of this file.
1 //===-- AArch64InstPrinter.h - Convert AArch64 MCInst to assembly syntax --===//
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 AArch64 MCInst to a .s file.
10 //
11 //===----------------------------------------------------------------------===//
12 
13 #ifndef LLVM_LIB_TARGET_AARCH64_MCTARGETDESC_AARCH64INSTPRINTER_H
14 #define LLVM_LIB_TARGET_AARCH64_MCTARGETDESC_AARCH64INSTPRINTER_H
15 
17 #include "llvm/ADT/StringRef.h"
18 #include "llvm/MC/MCInstPrinter.h"
19 #include "../Utils/AArch64BaseInfo.h"
20 
21 namespace llvm {
22 
24 public:
26  const MCRegisterInfo &MRI);
27 
28  bool applyTargetSpecificCLOption(StringRef Opt) override;
29 
30  void printInst(const MCInst *MI, uint64_t Address, StringRef Annot,
31  const MCSubtargetInfo &STI, raw_ostream &O) override;
32  void printRegName(raw_ostream &OS, unsigned RegNo) const override;
33 
34  // Autogenerated by tblgen.
35  std::pair<const char *, uint64_t> getMnemonic(const MCInst *MI) override;
36  virtual void printInstruction(const MCInst *MI, uint64_t Address,
37  const MCSubtargetInfo &STI, raw_ostream &O);
38  virtual bool printAliasInstr(const MCInst *MI, uint64_t Address,
39  const MCSubtargetInfo &STI, raw_ostream &O);
40  virtual void printCustomAliasOperand(const MCInst *MI, uint64_t Address,
41  unsigned OpIdx, unsigned PrintMethodIdx,
42  const MCSubtargetInfo &STI,
43  raw_ostream &O);
44 
45  virtual StringRef getRegName(unsigned RegNo) const {
46  return getRegisterName(RegNo);
47  }
48 
49  static const char *getRegisterName(unsigned RegNo,
50  unsigned AltIdx = AArch64::NoRegAltName);
51 
52 protected:
53  bool printSysAlias(const MCInst *MI, const MCSubtargetInfo &STI,
54  raw_ostream &O);
55  // Operand printers
56  void printOperand(const MCInst *MI, unsigned OpNo, const MCSubtargetInfo &STI,
57  raw_ostream &O);
58  void printImm(const MCInst *MI, unsigned OpNo, const MCSubtargetInfo &STI,
59  raw_ostream &O);
60  void printImmHex(const MCInst *MI, unsigned OpNo, const MCSubtargetInfo &STI,
61  raw_ostream &O);
62  template <int Size>
63  void printSImm(const MCInst *MI, unsigned OpNo, const MCSubtargetInfo &STI,
64  raw_ostream &O);
65  template <typename T> void printImmSVE(T Value, raw_ostream &O);
66  void printPostIncOperand(const MCInst *MI, unsigned OpNo, unsigned Imm,
67  raw_ostream &O);
68  template <int Amount>
69  void printPostIncOperand(const MCInst *MI, unsigned OpNo,
70  const MCSubtargetInfo &STI, raw_ostream &O) {
71  printPostIncOperand(MI, OpNo, Amount, O);
72  }
73 
74  void printVRegOperand(const MCInst *MI, unsigned OpNo,
75  const MCSubtargetInfo &STI, raw_ostream &O);
76  void printSysCROperand(const MCInst *MI, unsigned OpNo,
77  const MCSubtargetInfo &STI, raw_ostream &O);
78  void printAddSubImm(const MCInst *MI, unsigned OpNum,
79  const MCSubtargetInfo &STI, raw_ostream &O);
80  template <typename T>
81  void printLogicalImm(const MCInst *MI, unsigned OpNum,
82  const MCSubtargetInfo &STI, raw_ostream &O);
83  void printShifter(const MCInst *MI, unsigned OpNum,
84  const MCSubtargetInfo &STI, raw_ostream &O);
85  void printShiftedRegister(const MCInst *MI, unsigned OpNum,
86  const MCSubtargetInfo &STI, raw_ostream &O);
87  void printExtendedRegister(const MCInst *MI, unsigned OpNum,
88  const MCSubtargetInfo &STI, raw_ostream &O);
89  void printArithExtend(const MCInst *MI, unsigned OpNum,
90  const MCSubtargetInfo &STI, raw_ostream &O);
91 
92  void printMemExtend(const MCInst *MI, unsigned OpNum, raw_ostream &O,
93  char SrcRegKind, unsigned Width);
94  template <char SrcRegKind, unsigned Width>
95  void printMemExtend(const MCInst *MI, unsigned OpNum,
96  const MCSubtargetInfo &STI, raw_ostream &O) {
97  printMemExtend(MI, OpNum, O, SrcRegKind, Width);
98  }
99  template <bool SignedExtend, int ExtWidth, char SrcRegKind, char Suffix>
100  void printRegWithShiftExtend(const MCInst *MI, unsigned OpNum,
101  const MCSubtargetInfo &STI, raw_ostream &O);
102  void printCondCode(const MCInst *MI, unsigned OpNum,
103  const MCSubtargetInfo &STI, raw_ostream &O);
104  void printInverseCondCode(const MCInst *MI, unsigned OpNum,
105  const MCSubtargetInfo &STI, raw_ostream &O);
106  void printAlignedLabel(const MCInst *MI, uint64_t Address, unsigned OpNum,
107  const MCSubtargetInfo &STI, raw_ostream &O);
108  void printUImm12Offset(const MCInst *MI, unsigned OpNum, unsigned Scale,
109  raw_ostream &O);
110  void printAMIndexedWB(const MCInst *MI, unsigned OpNum, unsigned Scale,
111  raw_ostream &O);
112 
113  template <int Scale>
114  void printUImm12Offset(const MCInst *MI, unsigned OpNum,
115  const MCSubtargetInfo &STI, raw_ostream &O) {
116  printUImm12Offset(MI, OpNum, Scale, O);
117  }
118 
119  template <int BitWidth>
120  void printAMIndexedWB(const MCInst *MI, unsigned OpNum,
121  const MCSubtargetInfo &STI, raw_ostream &O) {
122  printAMIndexedWB(MI, OpNum, BitWidth / 8, O);
123  }
124 
125  void printAMNoIndex(const MCInst *MI, unsigned OpNum,
126  const MCSubtargetInfo &STI, raw_ostream &O);
127 
128  template <int Scale>
129  void printImmScale(const MCInst *MI, unsigned OpNum,
130  const MCSubtargetInfo &STI, raw_ostream &O);
131 
132  template <bool IsSVEPrefetch = false>
133  void printPrefetchOp(const MCInst *MI, unsigned OpNum,
134  const MCSubtargetInfo &STI, raw_ostream &O);
135 
136  void printPSBHintOp(const MCInst *MI, unsigned OpNum,
137  const MCSubtargetInfo &STI, raw_ostream &O);
138 
139  void printBTIHintOp(const MCInst *MI, unsigned OpNum,
140  const MCSubtargetInfo &STI, raw_ostream &O);
141 
142  void printFPImmOperand(const MCInst *MI, unsigned OpNum,
143  const MCSubtargetInfo &STI, raw_ostream &O);
144 
145  void printVectorList(const MCInst *MI, unsigned OpNum,
146  const MCSubtargetInfo &STI, raw_ostream &O,
147  StringRef LayoutSuffix);
148 
149  void printMatrixTileList(const MCInst *MI, unsigned OpNum,
150  const MCSubtargetInfo &STI, raw_ostream &O);
151 
152  /// Print a list of vector registers where the type suffix is implicit
153  /// (i.e. attached to the instruction rather than the registers).
154  void printImplicitlyTypedVectorList(const MCInst *MI, unsigned OpNum,
155  const MCSubtargetInfo &STI,
156  raw_ostream &O);
157 
158  template <unsigned NumLanes, char LaneKind>
159  void printTypedVectorList(const MCInst *MI, unsigned OpNum,
160  const MCSubtargetInfo &STI, raw_ostream &O);
161 
162  void printVectorIndex(const MCInst *MI, unsigned OpNum,
163  const MCSubtargetInfo &STI, raw_ostream &O);
164  void printMatrixIndex(const MCInst *MI, unsigned OpNum,
165  const MCSubtargetInfo &STI, raw_ostream &O);
166  void printAdrpLabel(const MCInst *MI, uint64_t Address, unsigned OpNum,
167  const MCSubtargetInfo &STI, raw_ostream &O);
168  void printBarrierOption(const MCInst *MI, unsigned OpNum,
169  const MCSubtargetInfo &STI, raw_ostream &O);
170  void printBarriernXSOption(const MCInst *MI, unsigned OpNum,
171  const MCSubtargetInfo &STI, raw_ostream &O);
172  void printMSRSystemRegister(const MCInst *MI, unsigned OpNum,
173  const MCSubtargetInfo &STI, raw_ostream &O);
174  void printMRSSystemRegister(const MCInst *MI, unsigned OpNum,
175  const MCSubtargetInfo &STI, raw_ostream &O);
176  void printSystemPStateField(const MCInst *MI, unsigned OpNum,
177  const MCSubtargetInfo &STI, raw_ostream &O);
178  void printSIMDType10Operand(const MCInst *MI, unsigned OpNum,
179  const MCSubtargetInfo &STI, raw_ostream &O);
180  template<int64_t Angle, int64_t Remainder>
181  void printComplexRotationOp(const MCInst *MI, unsigned OpNo,
182  const MCSubtargetInfo &STI, raw_ostream &O);
183  template<unsigned size>
184  void printGPRSeqPairsClassOperand(const MCInst *MI, unsigned OpNum,
185  const MCSubtargetInfo &STI,
186  raw_ostream &O);
187  template <typename T>
188  void printImm8OptLsl(const MCInst *MI, unsigned OpNum,
189  const MCSubtargetInfo &STI, raw_ostream &O);
190  template <typename T>
191  void printSVELogicalImm(const MCInst *MI, unsigned OpNum,
192  const MCSubtargetInfo &STI, raw_ostream &O);
193  void printSVEPattern(const MCInst *MI, unsigned OpNum,
194  const MCSubtargetInfo &STI, raw_ostream &O);
195 
196  template <bool IsVertical>
197  void printMatrixTileVector(const MCInst *MI, unsigned OpNum,
198  const MCSubtargetInfo &STI, raw_ostream &O);
199  void printMatrixTile(const MCInst *MI, unsigned OpNum,
200  const MCSubtargetInfo &STI, raw_ostream &O);
201  template <int EltSize>
202  void printMatrix(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI,
203  raw_ostream &O);
204  void printSVCROp(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI,
205  raw_ostream &O);
206  template <char = 0>
207  void printSVERegOp(const MCInst *MI, unsigned OpNum,
208  const MCSubtargetInfo &STI, raw_ostream &O);
209  void printGPR64as32(const MCInst *MI, unsigned OpNum,
210  const MCSubtargetInfo &STI, raw_ostream &O);
211  void printGPR64x8(const MCInst *MI, unsigned OpNum,
212  const MCSubtargetInfo &STI, raw_ostream &O);
213  template <int Width>
214  void printZPRasFPR(const MCInst *MI, unsigned OpNum,
215  const MCSubtargetInfo &STI, raw_ostream &O);
216  template <unsigned ImmIs0, unsigned ImmIs1>
217  void printExactFPImm(const MCInst *MI, unsigned OpNum,
218  const MCSubtargetInfo &STI, raw_ostream &O);
219 };
220 
222 public:
224  const MCRegisterInfo &MRI);
225 
226  void printInst(const MCInst *MI, uint64_t Address, StringRef Annot,
227  const MCSubtargetInfo &STI, raw_ostream &O) override;
228 
229  std::pair<const char *, uint64_t> getMnemonic(const MCInst *MI) override;
231  const MCSubtargetInfo &STI, raw_ostream &O) override;
233  const MCSubtargetInfo &STI, raw_ostream &O) override;
235  unsigned OpIdx, unsigned PrintMethodIdx,
236  const MCSubtargetInfo &STI,
237  raw_ostream &O) override;
238 
239  StringRef getRegName(unsigned RegNo) const override {
240  return getRegisterName(RegNo);
241  }
242 
243  static const char *getRegisterName(unsigned RegNo,
244  unsigned AltIdx = AArch64::NoRegAltName);
245 };
246 
247 } // end namespace llvm
248 
249 #endif // LLVM_LIB_TARGET_AARCH64_MCTARGETDESC_AARCH64INSTPRINTER_H
llvm::AArch64InstPrinter::getMnemonic
std::pair< const char *, uint64_t > getMnemonic(const MCInst *MI) override
Returns a pair containing the mnemonic for MI and the number of bits left for further processing by p...
llvm::AArch64InstPrinter::printMRSSystemRegister
void printMRSSystemRegister(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
Definition: AArch64InstPrinter.cpp:1570
llvm::AArch64InstPrinter::printSysCROperand
void printSysCROperand(const MCInst *MI, unsigned OpNo, const MCSubtargetInfo &STI, raw_ostream &O)
Definition: AArch64InstPrinter.cpp:1011
llvm::AArch64InstPrinter::printAlignedLabel
void printAlignedLabel(const MCInst *MI, uint64_t Address, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
Definition: AArch64InstPrinter.cpp:1459
llvm::AArch64InstPrinter::printSImm
void printSImm(const MCInst *MI, unsigned OpNo, const MCSubtargetInfo &STI, raw_ostream &O)
Definition: AArch64InstPrinter.cpp:977
llvm::AArch64InstPrinter::printUImm12Offset
void printUImm12Offset(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
Definition: AArch64InstPrinter.h:114
llvm::AArch64InstPrinter::printMatrix
void printMatrix(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
Definition: AArch64InstPrinter.cpp:884
llvm::MCInstPrinter::MII
const MCInstrInfo & MII
Definition: MCInstPrinter.h:50
MI
IRTranslator LLVM IR MI
Definition: IRTranslator.cpp:105
llvm::AArch64InstPrinter::printSystemPStateField
void printSystemPStateField(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
Definition: AArch64InstPrinter.cpp:1624
llvm
This is an optimization pass for GlobalISel generic memory operations.
Definition: AllocatorList.h:23
llvm::AArch64InstPrinter::printZPRasFPR
void printZPRasFPR(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
Definition: AArch64InstPrinter.cpp:1746
llvm::AArch64InstPrinter::printImplicitlyTypedVectorList
void printImplicitlyTypedVectorList(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
Print a list of vector registers where the type suffix is implicit (i.e.
Definition: AArch64InstPrinter.cpp:1427
llvm::AArch64InstPrinter::printSIMDType10Operand
void printSIMDType10Operand(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
Definition: AArch64InstPrinter.cpp:1636
llvm::AArch64InstPrinter::printSVEPattern
void printSVEPattern(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
Definition: AArch64InstPrinter.cpp:1652
StringRef.h
llvm::MCAsmInfo
This class is intended to be used as a base class for asm properties and features specific to the tar...
Definition: MCAsmInfo.h:56
llvm::AArch64AppleInstPrinter::printInst
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.
Definition: AArch64InstPrinter.cpp:716
llvm::AArch64InstPrinter::printArithExtend
void printArithExtend(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
Definition: AArch64InstPrinter.cpp:1076
llvm::AArch64InstPrinter::getRegisterName
static const char * getRegisterName(unsigned RegNo, unsigned AltIdx=AArch64::NoRegAltName)
llvm::AArch64InstPrinter::printMatrixTileList
void printMatrixTileList(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
Definition: AArch64InstPrinter.cpp:1348
llvm::AArch64InstPrinter::printPostIncOperand
void printPostIncOperand(const MCInst *MI, unsigned OpNo, const MCSubtargetInfo &STI, raw_ostream &O)
Definition: AArch64InstPrinter.h:69
llvm::MCInst
Instances of this class represent a single low-level machine instruction.
Definition: MCInst.h:184
llvm::AArch64InstPrinter::printPrefetchOp
void printPrefetchOp(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
Definition: AArch64InstPrinter.cpp:1196
llvm::AArch64InstPrinter::printAddSubImm
void printAddSubImm(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
Definition: AArch64InstPrinter.cpp:1019
llvm::AArch64InstPrinter::printImm8OptLsl
void printImm8OptLsl(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
Definition: AArch64InstPrinter.cpp:1702
llvm::AArch64InstPrinter::printShifter
void printShifter(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
Definition: AArch64InstPrinter.cpp:1050
llvm::MCInstPrinter::MRI
const MCRegisterInfo & MRI
Definition: MCInstPrinter.h:51
llvm::AArch64AppleInstPrinter::printInstruction
void printInstruction(const MCInst *MI, uint64_t Address, const MCSubtargetInfo &STI, raw_ostream &O) override
llvm::AArch64InstPrinter::printGPR64as32
void printGPR64as32(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
Definition: AArch64InstPrinter.cpp:1773
llvm::AArch64InstPrinter::printBarriernXSOption
void printBarriernXSOption(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
Definition: AArch64InstPrinter.cpp:1532
llvm::AArch64InstPrinter::printMemExtend
void printMemExtend(const MCInst *MI, unsigned OpNum, raw_ostream &O, char SrcRegKind, unsigned Width)
Definition: AArch64InstPrinter.cpp:1117
llvm::AArch64InstPrinter::printAliasInstr
virtual bool printAliasInstr(const MCInst *MI, uint64_t Address, const MCSubtargetInfo &STI, raw_ostream &O)
llvm::AArch64InstPrinter::printCondCode
void printCondCode(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
Definition: AArch64InstPrinter.cpp:1143
llvm::AArch64InstPrinter::printUImm12Offset
void printUImm12Offset(const MCInst *MI, unsigned OpNum, unsigned Scale, raw_ostream &O)
Definition: AArch64InstPrinter.cpp:1170
llvm::AArch64InstPrinter::printMatrixTileVector
void printMatrixTileVector(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
Definition: AArch64InstPrinter.cpp:915
llvm::raw_ostream
This class implements an extremely fast bulk output stream that can only output to a stream.
Definition: raw_ostream.h:53
llvm::AArch64InstPrinter::printFPImmOperand
void printFPImmOperand(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
Definition: AArch64InstPrinter.cpp:1235
llvm::AArch64InstPrinter::printMatrixTile
void printMatrixTile(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
Definition: AArch64InstPrinter.cpp:928
MCInstPrinter.h
llvm::AArch64InstPrinter::printExtendedRegister
void printExtendedRegister(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
Definition: AArch64InstPrinter.cpp:1069
llvm::AArch64InstPrinter::AArch64InstPrinter
AArch64InstPrinter(const MCAsmInfo &MAI, const MCInstrInfo &MII, const MCRegisterInfo &MRI)
Definition: AArch64InstPrinter.cpp:44
llvm::AArch64AppleInstPrinter::getRegisterName
static const char * getRegisterName(unsigned RegNo, unsigned AltIdx=AArch64::NoRegAltName)
llvm::AArch64InstPrinter::printRegName
void printRegName(raw_ostream &OS, unsigned RegNo) const override
Print the assembler register name.
Definition: AArch64InstPrinter.cpp:62
llvm::AArch64InstPrinter::printComplexRotationOp
void printComplexRotationOp(const MCInst *MI, unsigned OpNo, const MCSubtargetInfo &STI, raw_ostream &O)
Definition: AArch64InstPrinter.cpp:1645
llvm::AArch64InstPrinter::printSVELogicalImm
void printSVELogicalImm(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
Definition: AArch64InstPrinter.cpp:1727
llvm::AArch64AppleInstPrinter
Definition: AArch64InstPrinter.h:221
llvm::AArch64InstPrinter::printAMNoIndex
void printAMNoIndex(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
Definition: AArch64InstPrinter.cpp:1157
llvm::AArch64InstPrinter::printBarrierOption
void printBarrierOption(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
Definition: AArch64InstPrinter.cpp:1509
llvm::RISCVFenceField::O
@ O
Definition: RISCVBaseInfo.h:206
llvm::AArch64InstPrinter::printPSBHintOp
void printPSBHintOp(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
Definition: AArch64InstPrinter.cpp:1213
llvm::AArch64InstPrinter::printAMIndexedWB
void printAMIndexedWB(const MCInst *MI, unsigned OpNum, unsigned Scale, raw_ostream &O)
Definition: AArch64InstPrinter.cpp:1181
llvm::AArch64InstPrinter::printTypedVectorList
void printTypedVectorList(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
Definition: AArch64InstPrinter.cpp:1435
llvm::AArch64InstPrinter::printOperand
void printOperand(const MCInst *MI, unsigned OpNo, const MCSubtargetInfo &STI, raw_ostream &O)
Definition: AArch64InstPrinter.cpp:947
uint64_t
llvm::MCInstPrinter
This is an instance of a target assembly language printer that converts an MCInst to valid target ass...
Definition: MCInstPrinter.h:43
llvm::AArch64InstPrinter::printVectorList
void printVectorList(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O, StringRef LayoutSuffix)
Definition: AArch64InstPrinter.cpp:1373
llvm::AArch64AppleInstPrinter::AArch64AppleInstPrinter
AArch64AppleInstPrinter(const MCAsmInfo &MAI, const MCInstrInfo &MII, const MCRegisterInfo &MRI)
Definition: AArch64InstPrinter.cpp:49
llvm::AArch64InstPrinter::printSysAlias
bool printSysAlias(const MCInst *MI, const MCSubtargetInfo &STI, raw_ostream &O)
Definition: AArch64InstPrinter.cpp:770
llvm::HighlightColor::Address
@ Address
llvm::AArch64InstPrinter::printAdrpLabel
void printAdrpLabel(const MCInst *MI, uint64_t Address, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
Definition: AArch64InstPrinter.cpp:1488
llvm::AArch64InstPrinter::printAMIndexedWB
void printAMIndexedWB(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
Definition: AArch64InstPrinter.h:120
llvm::AArch64AppleInstPrinter::getMnemonic
std::pair< const char *, uint64_t > getMnemonic(const MCInst *MI) override
Returns a pair containing the mnemonic for MI and the number of bits left for further processing by p...
llvm::AArch64InstPrinter::printRegWithShiftExtend
void printRegWithShiftExtend(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
Definition: AArch64InstPrinter.cpp:1126
llvm::AArch64InstPrinter::printImmSVE
void printImmSVE(T Value, raw_ostream &O)
Definition: AArch64InstPrinter.cpp:1684
llvm::AArch64InstPrinter::printSVERegOp
void printSVERegOp(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
Definition: AArch64InstPrinter.cpp:1663
llvm::AArch64InstPrinter::printPostIncOperand
void printPostIncOperand(const MCInst *MI, unsigned OpNo, unsigned Imm, raw_ostream &O)
Definition: AArch64InstPrinter.cpp:989
llvm::AArch64InstPrinter::printImm
void printImm(const MCInst *MI, unsigned OpNo, const MCSubtargetInfo &STI, raw_ostream &O)
Definition: AArch64InstPrinter.cpp:962
llvm::AArch64InstPrinter::printLogicalImm
void printLogicalImm(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
Definition: AArch64InstPrinter.cpp:1042
llvm::AArch64InstPrinter::printMatrixIndex
void printMatrixIndex(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
Definition: AArch64InstPrinter.cpp:1453
llvm::AArch64InstPrinter::printShiftedRegister
void printShiftedRegister(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
Definition: AArch64InstPrinter.cpp:1062
llvm::AArch64InstPrinter
Definition: AArch64InstPrinter.h:23
llvm::StringRef
StringRef - Represent a constant reference to a string, i.e.
Definition: StringRef.h:57
llvm::AArch64InstPrinter::printVRegOperand
void printVRegOperand(const MCInst *MI, unsigned OpNo, const MCSubtargetInfo &STI, raw_ostream &O)
Definition: AArch64InstPrinter.cpp:1002
llvm::MCRegisterInfo
MCRegisterInfo base class - We assume that the target defines a static array of MCRegisterDesc object...
Definition: MCRegisterInfo.h:135
llvm::AArch64InstPrinter::printSVCROp
void printSVCROp(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
Definition: AArch64InstPrinter.cpp:936
llvm::AArch64AppleInstPrinter::getRegName
StringRef getRegName(unsigned RegNo) const override
Definition: AArch64InstPrinter.h:239
llvm::AArch64InstPrinter::printInverseCondCode
void printInverseCondCode(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
Definition: AArch64InstPrinter.cpp:1150
llvm::AArch64AppleInstPrinter::printCustomAliasOperand
void printCustomAliasOperand(const MCInst *MI, uint64_t Address, unsigned OpIdx, unsigned PrintMethodIdx, const MCSubtargetInfo &STI, raw_ostream &O) override
llvm::MCInstrInfo
Interface to description of machine instruction set.
Definition: MCInstrInfo.h:25
llvm::AArch64InstPrinter::printMSRSystemRegister
void printMSRSystemRegister(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
Definition: AArch64InstPrinter.cpp:1597
llvm::AArch64InstPrinter::printCustomAliasOperand
virtual void printCustomAliasOperand(const MCInst *MI, uint64_t Address, unsigned OpIdx, unsigned PrintMethodIdx, const MCSubtargetInfo &STI, raw_ostream &O)
llvm::AArch64InstPrinter::printExactFPImm
void printExactFPImm(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
Definition: AArch64InstPrinter.cpp:1764
llvm::BitWidth
constexpr unsigned BitWidth
Definition: BitmaskEnum.h:147
AArch64MCTargetDesc.h
llvm::AArch64InstPrinter::printMemExtend
void printMemExtend(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
Definition: AArch64InstPrinter.h:95
llvm::AArch64InstPrinter::printVectorIndex
void printVectorIndex(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
Definition: AArch64InstPrinter.cpp:1447
llvm::AArch64InstPrinter::printImmScale
void printImmScale(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
Definition: AArch64InstPrinter.cpp:1164
llvm::AMDGPU::Hwreg::Width
Width
Definition: SIDefines.h:413
llvm::AArch64InstPrinter::printInst
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.
Definition: AArch64InstPrinter.cpp:67
llvm::AArch64InstPrinter::printInstruction
virtual void printInstruction(const MCInst *MI, uint64_t Address, const MCSubtargetInfo &STI, raw_ostream &O)
llvm::MCInstPrinter::MAI
const MCAsmInfo & MAI
Definition: MCInstPrinter.h:49
llvm::AArch64InstPrinter::applyTargetSpecificCLOption
bool applyTargetSpecificCLOption(StringRef Opt) override
Customize the printer according to a command line option.
Definition: AArch64InstPrinter.cpp:54
llvm::AArch64InstPrinter::printGPRSeqPairsClassOperand
void printGPRSeqPairsClassOperand(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
Definition: AArch64InstPrinter.cpp:1327
llvm::AArch64InstPrinter::getRegName
virtual StringRef getRegName(unsigned RegNo) const
Definition: AArch64InstPrinter.h:45
llvm::AArch64AppleInstPrinter::printAliasInstr
bool printAliasInstr(const MCInst *MI, uint64_t Address, const MCSubtargetInfo &STI, raw_ostream &O) override
llvm::AArch64InstPrinter::printBTIHintOp
void printBTIHintOp(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
Definition: AArch64InstPrinter.cpp:1224
llvm::AArch64InstPrinter::printGPR64x8
void printGPR64x8(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
Definition: AArch64InstPrinter.cpp:1780
llvm::AArch64InstPrinter::printImmHex
void printImmHex(const MCInst *MI, unsigned OpNo, const MCSubtargetInfo &STI, raw_ostream &O)
Definition: AArch64InstPrinter.cpp:969
llvm::MCSubtargetInfo
Generic base class for all target subtargets.
Definition: MCSubtargetInfo.h:75
llvm::Value
LLVM Value Representation.
Definition: Value.h:74