LLVM  13.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  /// Print a list of vector registers where the type suffix is implicit
150  /// (i.e. attached to the instruction rather than the registers).
151  void printImplicitlyTypedVectorList(const MCInst *MI, unsigned OpNum,
152  const MCSubtargetInfo &STI,
153  raw_ostream &O);
154 
155  template <unsigned NumLanes, char LaneKind>
156  void printTypedVectorList(const MCInst *MI, unsigned OpNum,
157  const MCSubtargetInfo &STI, raw_ostream &O);
158 
159  void printVectorIndex(const MCInst *MI, unsigned OpNum,
160  const MCSubtargetInfo &STI, raw_ostream &O);
161  void printAdrpLabel(const MCInst *MI, uint64_t Address, unsigned OpNum,
162  const MCSubtargetInfo &STI, raw_ostream &O);
163  void printBarrierOption(const MCInst *MI, unsigned OpNum,
164  const MCSubtargetInfo &STI, raw_ostream &O);
165  void printBarriernXSOption(const MCInst *MI, unsigned OpNum,
166  const MCSubtargetInfo &STI, raw_ostream &O);
167  void printMSRSystemRegister(const MCInst *MI, unsigned OpNum,
168  const MCSubtargetInfo &STI, raw_ostream &O);
169  void printMRSSystemRegister(const MCInst *MI, unsigned OpNum,
170  const MCSubtargetInfo &STI, raw_ostream &O);
171  void printSystemPStateField(const MCInst *MI, unsigned OpNum,
172  const MCSubtargetInfo &STI, raw_ostream &O);
173  void printSIMDType10Operand(const MCInst *MI, unsigned OpNum,
174  const MCSubtargetInfo &STI, raw_ostream &O);
175  template<int64_t Angle, int64_t Remainder>
176  void printComplexRotationOp(const MCInst *MI, unsigned OpNo,
177  const MCSubtargetInfo &STI, raw_ostream &O);
178  template<unsigned size>
179  void printGPRSeqPairsClassOperand(const MCInst *MI, unsigned OpNum,
180  const MCSubtargetInfo &STI,
181  raw_ostream &O);
182  template <typename T>
183  void printImm8OptLsl(const MCInst *MI, unsigned OpNum,
184  const MCSubtargetInfo &STI, raw_ostream &O);
185  template <typename T>
186  void printSVELogicalImm(const MCInst *MI, unsigned OpNum,
187  const MCSubtargetInfo &STI, raw_ostream &O);
188  void printSVEPattern(const MCInst *MI, unsigned OpNum,
189  const MCSubtargetInfo &STI, raw_ostream &O);
190  template <char = 0>
191  void printSVERegOp(const MCInst *MI, unsigned OpNum,
192  const MCSubtargetInfo &STI, raw_ostream &O);
193  void printGPR64as32(const MCInst *MI, unsigned OpNum,
194  const MCSubtargetInfo &STI, raw_ostream &O);
195  void printGPR64x8(const MCInst *MI, unsigned OpNum,
196  const MCSubtargetInfo &STI, raw_ostream &O);
197  template <int Width>
198  void printZPRasFPR(const MCInst *MI, unsigned OpNum,
199  const MCSubtargetInfo &STI, raw_ostream &O);
200  template <unsigned ImmIs0, unsigned ImmIs1>
201  void printExactFPImm(const MCInst *MI, unsigned OpNum,
202  const MCSubtargetInfo &STI, raw_ostream &O);
203 };
204 
206 public:
208  const MCRegisterInfo &MRI);
209 
210  void printInst(const MCInst *MI, uint64_t Address, StringRef Annot,
211  const MCSubtargetInfo &STI, raw_ostream &O) override;
212 
213  std::pair<const char *, uint64_t> getMnemonic(const MCInst *MI) override;
214  void printInstruction(const MCInst *MI, uint64_t Address,
215  const MCSubtargetInfo &STI, raw_ostream &O) override;
216  bool printAliasInstr(const MCInst *MI, uint64_t Address,
217  const MCSubtargetInfo &STI, raw_ostream &O) override;
218  void printCustomAliasOperand(const MCInst *MI, uint64_t Address,
219  unsigned OpIdx, unsigned PrintMethodIdx,
220  const MCSubtargetInfo &STI,
221  raw_ostream &O) override;
222 
223  StringRef getRegName(unsigned RegNo) const override {
224  return getRegisterName(RegNo);
225  }
226 
227  static const char *getRegisterName(unsigned RegNo,
228  unsigned AltIdx = AArch64::NoRegAltName);
229 };
230 
231 } // end namespace llvm
232 
233 #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:1448
llvm::AArch64InstPrinter::printSysCROperand
void printSysCROperand(const MCInst *MI, unsigned OpNo, const MCSubtargetInfo &STI, raw_ostream &O)
Definition: AArch64InstPrinter.cpp:947
llvm::AArch64InstPrinter::printAlignedLabel
void printAlignedLabel(const MCInst *MI, uint64_t Address, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
Definition: AArch64InstPrinter.cpp:1359
llvm::AArch64InstPrinter::printSImm
void printSImm(const MCInst *MI, unsigned OpNo, const MCSubtargetInfo &STI, raw_ostream &O)
Definition: AArch64InstPrinter.cpp:913
llvm::AArch64InstPrinter::printUImm12Offset
void printUImm12Offset(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
Definition: AArch64InstPrinter.h:114
llvm::MCInstPrinter::MII
const MCInstrInfo & MII
Definition: MCInstPrinter.h:50
MI
IRTranslator LLVM IR MI
Definition: IRTranslator.cpp:102
llvm::AArch64InstPrinter::printSystemPStateField
void printSystemPStateField(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
Definition: AArch64InstPrinter.cpp:1500
llvm
Definition: AllocatorList.h:23
llvm::AArch64InstPrinter::printZPRasFPR
void printZPRasFPR(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
Definition: AArch64InstPrinter.cpp:1622
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:1333
llvm::AArch64InstPrinter::printSIMDType10Operand
void printSIMDType10Operand(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
Definition: AArch64InstPrinter.cpp:1512
llvm::AArch64InstPrinter::printSVEPattern
void printSVEPattern(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
Definition: AArch64InstPrinter.cpp:1528
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:1012
llvm::AArch64InstPrinter::getRegisterName
static const char * getRegisterName(unsigned RegNo, unsigned AltIdx=AArch64::NoRegAltName)
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:1132
llvm::AArch64InstPrinter::printAddSubImm
void printAddSubImm(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
Definition: AArch64InstPrinter.cpp:955
llvm::AArch64InstPrinter::printImm8OptLsl
void printImm8OptLsl(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
Definition: AArch64InstPrinter.cpp:1578
llvm::AArch64InstPrinter::printShifter
void printShifter(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
Definition: AArch64InstPrinter.cpp:986
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:1649
llvm::AArch64InstPrinter::printBarriernXSOption
void printBarriernXSOption(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
Definition: AArch64InstPrinter.cpp:1432
llvm::AArch64InstPrinter::printMemExtend
void printMemExtend(const MCInst *MI, unsigned OpNum, raw_ostream &O, char SrcRegKind, unsigned Width)
Definition: AArch64InstPrinter.cpp:1053
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:1079
llvm::AArch64InstPrinter::printUImm12Offset
void printUImm12Offset(const MCInst *MI, unsigned OpNum, unsigned Scale, raw_ostream &O)
Definition: AArch64InstPrinter.cpp:1106
llvm::raw_ostream
This class implements an extremely fast bulk output stream that can only output to a stream.
Definition: raw_ostream.h:50
llvm::AArch64InstPrinter::printFPImmOperand
void printFPImmOperand(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
Definition: AArch64InstPrinter.cpp:1171
MCInstPrinter.h
llvm::AArch64InstPrinter::printExtendedRegister
void printExtendedRegister(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
Definition: AArch64InstPrinter.cpp:1005
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:1521
llvm::AArch64InstPrinter::printSVELogicalImm
void printSVELogicalImm(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
Definition: AArch64InstPrinter.cpp:1603
llvm::AArch64AppleInstPrinter
Definition: AArch64InstPrinter.h:205
llvm::AArch64InstPrinter::printAMNoIndex
void printAMNoIndex(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
Definition: AArch64InstPrinter.cpp:1093
llvm::AArch64InstPrinter::printBarrierOption
void printBarrierOption(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
Definition: AArch64InstPrinter.cpp:1409
llvm::RISCVFenceField::O
@ O
Definition: RISCVBaseInfo.h:179
llvm::AArch64InstPrinter::printPSBHintOp
void printPSBHintOp(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
Definition: AArch64InstPrinter.cpp:1149
llvm::AArch64InstPrinter::printAMIndexedWB
void printAMIndexedWB(const MCInst *MI, unsigned OpNum, unsigned Scale, raw_ostream &O)
Definition: AArch64InstPrinter.cpp:1117
llvm::AArch64InstPrinter::printTypedVectorList
void printTypedVectorList(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
Definition: AArch64InstPrinter.cpp:1341
llvm::AArch64InstPrinter::printOperand
void printOperand(const MCInst *MI, unsigned OpNo, const MCSubtargetInfo &STI, raw_ostream &O)
Definition: AArch64InstPrinter.cpp:883
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:1279
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:1388
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:1062
llvm::AArch64InstPrinter::printImmSVE
void printImmSVE(T Value, raw_ostream &O)
Definition: AArch64InstPrinter.cpp:1560
llvm::AArch64InstPrinter::printSVERegOp
void printSVERegOp(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
Definition: AArch64InstPrinter.cpp:1539
llvm::AArch64InstPrinter::printPostIncOperand
void printPostIncOperand(const MCInst *MI, unsigned OpNo, unsigned Imm, raw_ostream &O)
Definition: AArch64InstPrinter.cpp:925
llvm::AArch64InstPrinter::printImm
void printImm(const MCInst *MI, unsigned OpNo, const MCSubtargetInfo &STI, raw_ostream &O)
Definition: AArch64InstPrinter.cpp:898
llvm::AArch64InstPrinter::printLogicalImm
void printLogicalImm(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
Definition: AArch64InstPrinter.cpp:978
llvm::AArch64InstPrinter::printShiftedRegister
void printShiftedRegister(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
Definition: AArch64InstPrinter.cpp:998
llvm::AArch64InstPrinter
Definition: AArch64InstPrinter.h:23
llvm::StringRef
StringRef - Represent a constant reference to a string, i.e.
Definition: StringRef.h:58
llvm::AArch64InstPrinter::printVRegOperand
void printVRegOperand(const MCInst *MI, unsigned OpNo, const MCSubtargetInfo &STI, raw_ostream &O)
Definition: AArch64InstPrinter.cpp:938
llvm::MCRegisterInfo
MCRegisterInfo base class - We assume that the target defines a static array of MCRegisterDesc object...
Definition: MCRegisterInfo.h:135
llvm::AArch64AppleInstPrinter::getRegName
StringRef getRegName(unsigned RegNo) const override
Definition: AArch64InstPrinter.h:223
llvm::AArch64InstPrinter::printInverseCondCode
void printInverseCondCode(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
Definition: AArch64InstPrinter.cpp:1086
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:1474
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:1640
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:1353
llvm::AArch64InstPrinter::printImmScale
void printImmScale(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
Definition: AArch64InstPrinter.cpp:1100
llvm::AMDGPU::Hwreg::Width
Width
Definition: SIDefines.h:403
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:1263
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:1160
llvm::AArch64InstPrinter::printGPR64x8
void printGPR64x8(const MCInst *MI, unsigned OpNum, const MCSubtargetInfo &STI, raw_ostream &O)
Definition: AArch64InstPrinter.cpp:1656
llvm::AArch64InstPrinter::printImmHex
void printImmHex(const MCInst *MI, unsigned OpNo, const MCSubtargetInfo &STI, raw_ostream &O)
Definition: AArch64InstPrinter.cpp:905
llvm::MCSubtargetInfo
Generic base class for all target subtargets.
Definition: MCSubtargetInfo.h:75
llvm::Value
LLVM Value Representation.
Definition: Value.h:75