From 76502a756da8fbc3cf6f2f26bc09cce598a9fc03 Mon Sep 17 00:00:00 2001 From: Quentin Colombet Date: Tue, 1 Oct 2013 22:14:56 +0000 Subject: [llvm-c][Disassembler] Add an option to reproduce in disassembled output the comments issued with verbose assembly. E.g., on a vector shuffle operation, disassembled output are: * Without the option: vpshufd $-0x79, (%rsp), %xmm0 * With the option: vpshufd $-0x79, (%rsp), %xmm0 ## xmm0 = mem[3,1,0,2] This part of . git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191799 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm-c/Disassembler.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') diff --git a/include/llvm-c/Disassembler.h b/include/llvm-c/Disassembler.h index df65a7b..0c5bd5c 100644 --- a/include/llvm-c/Disassembler.h +++ b/include/llvm-c/Disassembler.h @@ -170,6 +170,8 @@ int LLVMSetDisasmOptions(LLVMDisasmContextRef DC, uint64_t Options); #define LLVMDisassembler_Option_PrintImmHex 2 /* The option use the other assembler printer variant */ #define LLVMDisassembler_Option_AsmPrinterVariant 4 +/* The option to set comment on instructions */ +#define LLVMDisassembler_Option_SetInstrComments 8 /** * Dispose of a disassembler context. -- cgit v1.1