blob: c6d0d85a7d3d34d27464d1a2475d62cdb1c1a6d7 [file] [log] [blame]
Jia Liub22310f2012-02-18 12:03:15 +00001//=- X86InstComments.h - Generate verbose-asm comments for instrs -*- C++ -*-=//
Chris Lattner7a05e6d2010-08-28 20:42:31 +00002//
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 defines functionality used to emit comments about X86 instructions to
11// an output stream for -fverbose-asm.
12//
13//===----------------------------------------------------------------------===//
14
Benjamin Kramera7c40ef2014-08-13 16:26:38 +000015#ifndef LLVM_LIB_TARGET_X86_INSTPRINTER_X86INSTCOMMENTS_H
16#define LLVM_LIB_TARGET_X86_INSTPRINTER_X86INSTCOMMENTS_H
Chris Lattner7a05e6d2010-08-28 20:42:31 +000017
18namespace llvm {
Gadi Haber19c4fc52016-12-28 10:12:48 +000019
20 enum AsmComments {
21 AC_EVEX_2_VEX = 0x2 // For instr that was compressed from EVEX to VEX.
22 };
23
Chris Lattner7a05e6d2010-08-28 20:42:31 +000024 class MCInst;
25 class raw_ostream;
Chandler Carruth23173112014-09-03 22:46:44 +000026 bool EmitAnyX86InstComments(const MCInst *MI, raw_ostream &OS,
Chris Lattner7a05e6d2010-08-28 20:42:31 +000027 const char *(*getRegName)(unsigned));
28}
29
30#endif