summaryrefslogtreecommitdiffstats
path: root/llvm/include/llvm-c
diff options
context:
space:
mode:
authorQuentin Colombet <qcolombet@apple.com>2013-10-01 22:14:56 +0000
committerQuentin Colombet <qcolombet@apple.com>2013-10-01 22:14:56 +0000
commit93a98aac8be37f50e7c2d234e15b720f55217f91 (patch)
treec3eb4f88dbed59d0dc449e9b3d6cabc5b974197c /llvm/include/llvm-c
parent07e627263fec4770ca990cc10024daeb820bbac7 (diff)
downloadbcm5719-llvm-93a98aac8be37f50e7c2d234e15b720f55217f91.tar.gz
bcm5719-llvm-93a98aac8be37f50e7c2d234e15b720f55217f91.zip
[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>. llvm-svn: 191799
Diffstat (limited to 'llvm/include/llvm-c')
-rw-r--r--llvm/include/llvm-c/Disassembler.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/include/llvm-c/Disassembler.h b/llvm/include/llvm-c/Disassembler.h
index df65a7b2084..0c5bd5c5e85 100644
--- a/llvm/include/llvm-c/Disassembler.h
+++ b/llvm/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.
OpenPOWER on IntegriCloud