Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/KhronosGroup/SPIRV-Tools.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordan sinclair <dj2@everburning.com>2020-09-28 17:59:50 +0300
committerGitHub <noreply@github.com>2020-09-28 17:59:50 +0300
commitc6ca885c0b4af75735944c725be56b642a77b17d (patch)
tree33e0ad16bb0a833526af93dc014e2b34697be222 /include
parent446adb05ff6446bb1c93a6ca03ad6796b5ffb279 (diff)
[spirv-dis] Add some context comments to disassembly. (#3847)
This CL adds some extra new lines and context comments into the spirv-dis output format. This CL adds: - Blank line and '; Annotations' before decorations - Blank line and '; Debug Information' before debug instructions - Blank line and '; Types, variables and constants' before type section - Blank line and '; Function <name>' before each function. Issue #788
Diffstat (limited to 'include')
-rw-r--r--include/spirv-tools/libspirv.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/spirv-tools/libspirv.h b/include/spirv-tools/libspirv.h
index 16cdd1b18..16ea7ffac 100644
--- a/include/spirv-tools/libspirv.h
+++ b/include/spirv-tools/libspirv.h
@@ -325,6 +325,8 @@ typedef enum spv_binary_to_text_options_t {
// time, but will use common names for scalar types, and debug names from
// OpName instructions.
SPV_BINARY_TO_TEXT_OPTION_FRIENDLY_NAMES = SPV_BIT(6),
+ // Add some comments to the generated assembly
+ SPV_BINARY_TO_TEXT_OPTION_COMMENT = SPV_BIT(7),
SPV_FORCE_32_BIT_ENUM(spv_binary_to_text_options_t)
} spv_binary_to_text_options_t;