LLVM  8.0.1
X86InstPrinterCommon.h
Go to the documentation of this file.
1 //===-- X86InstPrinterCommon.cpp - X86 assembly instruction printing ------===//
2 //
3 // The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 //
10 // This file includes code common for rendering MCInst instances as AT&T-style
11 // and Intel-style assembly.
12 //
13 //===----------------------------------------------------------------------===//
14 
15 #ifndef LLVM_LIB_TARGET_X86_INSTPRINTER_X86INSTPRINTERCOMMON_H
16 #define LLVM_LIB_TARGET_X86_INSTPRINTER_X86INSTPRINTERCOMMON_H
17 
18 #include "llvm/MC/MCInstPrinter.h"
19 
20 namespace llvm {
21 
23 public:
25 
26  virtual void printOperand(const MCInst *MI, unsigned OpNo, raw_ostream &O) = 0;
27  void printSSEAVXCC(const MCInst *MI, unsigned Op, raw_ostream &OS);
28  void printXOPCC(const MCInst *MI, unsigned Op, raw_ostream &OS);
29  void printRoundingControl(const MCInst *MI, unsigned Op, raw_ostream &O);
30  void printPCRelImm(const MCInst *MI, unsigned OpNo, raw_ostream &O);
31 protected:
32  void printInstFlags(const MCInst *MI, raw_ostream &O);
33  void printOptionalSegReg(const MCInst *MI, unsigned OpNo, raw_ostream &O);
34 };
35 
36 } // end namespace llvm
37 
38 #endif // LLVM_LIB_TARGET_X86_INSTPRINTER_X86ATTINSTPRINTER_H
This class represents lattice values for constants.
Definition: AllocatorList.h:24
void printXOPCC(const MCInst *MI, unsigned Op, raw_ostream &OS)
Instances of this class represent a single low-level machine instruction.
Definition: MCInst.h:161
void printOptionalSegReg(const MCInst *MI, unsigned OpNo, raw_ostream &O)
void printPCRelImm(const MCInst *MI, unsigned OpNo, raw_ostream &O)
printPCRelImm - This is used to print an immediate value that ends up being encoded as a pc-relative ...
virtual void printOperand(const MCInst *MI, unsigned OpNo, raw_ostream &O)=0
void printInstFlags(const MCInst *MI, raw_ostream &O)
void printRoundingControl(const MCInst *MI, unsigned Op, raw_ostream &O)
void printSSEAVXCC(const MCInst *MI, unsigned Op, raw_ostream &OS)
This is an instance of a target assembly language printer that converts an MCInst to valid target ass...
Definition: MCInstPrinter.h:40
This class implements an extremely fast bulk output stream that can only output to a stream...
Definition: raw_ostream.h:46
IRTranslator LLVM IR MI
MCInstPrinter(const MCAsmInfo &mai, const MCInstrInfo &mii, const MCRegisterInfo &mri)
Definition: MCInstPrinter.h:63