Path: blob/main/contrib/llvm-project/llvm/lib/Target/X86/MCTargetDesc/X86InstPrinterCommon.h
35294 views
//===-- X86InstPrinterCommon.cpp - X86 assembly instruction printing ------===//1//2// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.3// See https://llvm.org/LICENSE.txt for license information.4// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception5//6//===----------------------------------------------------------------------===//7//8// This file includes code common for rendering MCInst instances as AT&T-style9// and Intel-style assembly.10//11//===----------------------------------------------------------------------===//1213#ifndef LLVM_LIB_TARGET_X86_MCTARGETDESC_X86INSTPRINTERCOMMON_H14#define LLVM_LIB_TARGET_X86_MCTARGETDESC_X86INSTPRINTERCOMMON_H1516#include "llvm/MC/MCInstPrinter.h"1718namespace llvm {1920class X86InstPrinterCommon : public MCInstPrinter {21public:22using MCInstPrinter::MCInstPrinter;2324virtual void printOperand(const MCInst *MI, unsigned OpNo, raw_ostream &O) = 0;25void printCondCode(const MCInst *MI, unsigned Op, raw_ostream &OS);26void printCondFlags(const MCInst *MI, unsigned Op, raw_ostream &OS);27void printSSEAVXCC(const MCInst *MI, unsigned Op, raw_ostream &OS);28void printVPCOMMnemonic(const MCInst *MI, raw_ostream &OS);29void printVPCMPMnemonic(const MCInst *MI, raw_ostream &OS);30void printCMPMnemonic(const MCInst *MI, bool IsVCmp, raw_ostream &OS);31void printRoundingControl(const MCInst *MI, unsigned Op, raw_ostream &O);32void printPCRelImm(const MCInst *MI, uint64_t Address, unsigned OpNo,33raw_ostream &O);3435protected:36void printInstFlags(const MCInst *MI, raw_ostream &O,37const MCSubtargetInfo &STI);38void printOptionalSegReg(const MCInst *MI, unsigned OpNo, raw_ostream &O);39void printVKPair(const MCInst *MI, unsigned OpNo, raw_ostream &OS);40};4142} // end namespace llvm4344#endif // LLVM_LIB_TARGET_X86_MCTARGETDESC_X86INSTPRINTERCOMMON_H454647