aboutsummaryrefslogtreecommitdiff
path: root/contrib/llvm/lib/Target/X86/InstPrinter/X86InstComments.h
blob: 629c02c95c7f2301e3259a5786d15c91ad473986 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
//=- X86InstComments.h - Generate verbose-asm comments for instrs -*- C++ -*-=//
//
//                     The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
//
// This defines functionality used to emit comments about X86 instructions to
// an output stream for -fverbose-asm.
//
//===----------------------------------------------------------------------===//

#ifndef LLVM_LIB_TARGET_X86_INSTPRINTER_X86INSTCOMMENTS_H
#define LLVM_LIB_TARGET_X86_INSTPRINTER_X86INSTCOMMENTS_H

#include "llvm/CodeGen/MachineInstr.h"

namespace llvm {

  enum AsmComments {
    // For instr that was compressed from EVEX to VEX.
    AC_EVEX_2_VEX = MachineInstr::TAsmComments
  };

  class MCInst;
  class raw_ostream;
  bool EmitAnyX86InstComments(const MCInst *MI, raw_ostream &OS,
                              const char *(*getRegName)(unsigned));
}

#endif