Jia Liu | b22310f | 2012-02-18 12:03:15 +0000 | [diff] [blame] | 1 | //=- X86InstComments.h - Generate verbose-asm comments for instrs -*- C++ -*-=// |
Chris Lattner | 7a05e6d | 2010-08-28 20:42:31 +0000 | [diff] [blame] | 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 defines functionality used to emit comments about X86 instructions to |
| 11 | // an output stream for -fverbose-asm. |
| 12 | // |
| 13 | //===----------------------------------------------------------------------===// |
| 14 | |
Benjamin Kramer | a7c40ef | 2014-08-13 16:26:38 +0000 | [diff] [blame] | 15 | #ifndef LLVM_LIB_TARGET_X86_INSTPRINTER_X86INSTCOMMENTS_H |
| 16 | #define LLVM_LIB_TARGET_X86_INSTPRINTER_X86INSTCOMMENTS_H |
Chris Lattner | 7a05e6d | 2010-08-28 20:42:31 +0000 | [diff] [blame] | 17 | |
| 18 | namespace llvm { |
| 19 | class MCInst; |
| 20 | class raw_ostream; |
Chandler Carruth | 2317311 | 2014-09-03 22:46:44 +0000 | [diff] [blame] | 21 | bool EmitAnyX86InstComments(const MCInst *MI, raw_ostream &OS, |
Chris Lattner | 7a05e6d | 2010-08-28 20:42:31 +0000 | [diff] [blame] | 22 | const char *(*getRegName)(unsigned)); |
| 23 | } |
| 24 | |
| 25 | #endif |