diff options
author | Quentin Colombet <qcolombet@apple.com> | 2013-10-01 22:14:56 +0000 |
---|---|---|
committer | Quentin Colombet <qcolombet@apple.com> | 2013-10-01 22:14:56 +0000 |
commit | 76502a756da8fbc3cf6f2f26bc09cce598a9fc03 (patch) | |
tree | e2bf8a5ff9a3322590cbcd857b9269210bcac0ed /include | |
parent | 9432820cafe49c8716a5c0f6033d866cf9c244cb (diff) | |
download | external_llvm-76502a756da8fbc3cf6f2f26bc09cce598a9fc03.zip external_llvm-76502a756da8fbc3cf6f2f26bc09cce598a9fc03.tar.gz external_llvm-76502a756da8fbc3cf6f2f26bc09cce598a9fc03.tar.bz2 |
[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 <rdar://problem/14687488>.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191799 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm-c/Disassembler.h | 2 |
1 files changed, 2 insertions, 0 deletions
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. |