LLVM  14.0.0git
X86InstPrinterCommon.h
Go to the documentation of this file.
1 //===-- X86InstPrinterCommon.cpp - X86 assembly instruction printing ------===//
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 file includes code common for rendering MCInst instances as AT&T-style
10 // and Intel-style assembly.
11 //
12 //===----------------------------------------------------------------------===//
13 
14 #ifndef LLVM_LIB_TARGET_X86_MCTARGETDESC_X86INSTPRINTERCOMMON_H
15 #define LLVM_LIB_TARGET_X86_MCTARGETDESC_X86INSTPRINTERCOMMON_H
16 
17 #include "llvm/MC/MCInstPrinter.h"
18 
19 namespace llvm {
20 
22 public:
24 
25  virtual void printOperand(const MCInst *MI, unsigned OpNo, raw_ostream &O) = 0;
26  void printCondCode(const MCInst *MI, unsigned Op, raw_ostream &OS);
27  void printSSEAVXCC(const MCInst *MI, unsigned Op, raw_ostream &OS);
28  void printVPCOMMnemonic(const MCInst *MI, raw_ostream &OS);
29  void printVPCMPMnemonic(const MCInst *MI, raw_ostream &OS);
30  void printCMPMnemonic(const MCInst *MI, bool IsVCmp, raw_ostream &OS);
31  void printRoundingControl(const MCInst *MI, unsigned Op, raw_ostream &O);
32  void printPCRelImm(const MCInst *MI, uint64_t Address, unsigned OpNo,
33  raw_ostream &O);
34 
35 protected:
36  void printInstFlags(const MCInst *MI, raw_ostream &O);
37  void printOptionalSegReg(const MCInst *MI, unsigned OpNo, raw_ostream &O);
38  void printVKPair(const MCInst *MI, unsigned OpNo, raw_ostream &OS);
39 };
40 
41 } // end namespace llvm
42 
43 #endif // LLVM_LIB_TARGET_X86_MCTARGETDESC_X86ATTINSTPRINTER_H
MI
IRTranslator LLVM IR MI
Definition: IRTranslator.cpp:105
llvm
This file implements support for optimizing divisions by a constant.
Definition: AllocatorList.h:23
llvm::X86InstPrinterCommon::printRoundingControl
void printRoundingControl(const MCInst *MI, unsigned Op, raw_ostream &O)
Definition: X86InstPrinterCommon.cpp:288
llvm::MCInst
Instances of this class represent a single low-level machine instruction.
Definition: MCInst.h:184
llvm::X86InstPrinterCommon::printInstFlags
void printInstFlags(const MCInst *MI, raw_ostream &O)
Definition: X86InstPrinterCommon.cpp:352
llvm::X86InstPrinterCommon::printSSEAVXCC
void printSSEAVXCC(const MCInst *MI, unsigned Op, raw_ostream &OS)
Definition: X86InstPrinterCommon.cpp:52
llvm::X86InstPrinterCommon::printVPCMPMnemonic
void printVPCMPMnemonic(const MCInst *MI, raw_ostream &OS)
Definition: X86InstPrinterCommon.cpp:122
llvm::X86InstPrinterCommon::printCMPMnemonic
void printCMPMnemonic(const MCInst *MI, bool IsVCmp, raw_ostream &OS)
Definition: X86InstPrinterCommon.cpp:209
llvm::X86InstPrinterCommon
Definition: X86InstPrinterCommon.h:21
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::X86InstPrinterCommon::printCondCode
void printCondCode(const MCInst *MI, unsigned Op, raw_ostream &OS)
Definition: X86InstPrinterCommon.cpp:28
MCInstPrinter.h
llvm::RISCVFenceField::O
@ O
Definition: RISCVBaseInfo.h:197
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::HighlightColor::Address
@ Address
llvm::MCInstPrinter::MCInstPrinter
MCInstPrinter(const MCAsmInfo &mai, const MCInstrInfo &mii, const MCRegisterInfo &mri)
Definition: MCInstPrinter.h:82
llvm::X86InstPrinterCommon::printVPCOMMnemonic
void printVPCOMMnemonic(const MCInst *MI, raw_ostream &OS)
Definition: X86InstPrinterCommon.cpp:92
llvm::X86InstPrinterCommon::printOptionalSegReg
void printOptionalSegReg(const MCInst *MI, unsigned OpNo, raw_ostream &O)
Definition: X86InstPrinterCommon.cpp:344
llvm::AMDGPU::SendMsg::Op
Op
Definition: SIDefines.h:324
llvm::X86InstPrinterCommon::printPCRelImm
void printPCRelImm(const MCInst *MI, uint64_t Address, unsigned OpNo, raw_ostream &O)
value (e.g.
Definition: X86InstPrinterCommon.cpp:314
llvm::X86InstPrinterCommon::printOperand
virtual void printOperand(const MCInst *MI, unsigned OpNo, raw_ostream &O)=0
llvm::X86InstPrinterCommon::printVKPair
void printVKPair(const MCInst *MI, unsigned OpNo, raw_ostream &OS)
Definition: X86InstPrinterCommon.cpp:384