aboutsummaryrefslogtreecommitdiff
path: root/source/val
diff options
context:
space:
mode:
authorAndrey Tuganov <andreyt@google.com>2017-05-31 13:07:51 -0400
committerDavid Neto <dneto@google.com>2017-06-30 12:22:48 -0400
commit73e8dac5b925f979d5c9e94770fb104fcc539ac2 (patch)
treef8d3ed449e0bdf8e43c4b6a8ff2f03ce49c3c0f6 /source/val
parent8d3882a40807f0df5d7b5c09239f47f6c209eb46 (diff)
downloadspirv-tools-73e8dac5b925f979d5c9e94770fb104fcc539ac2.tar.gz
Added compression tool tools/spirv-markv. Work in progress.
Command line application is located at tools/spirv-markv API at include/spirv-tools/markv.h At the moment only very basic compression is implemented, mostly varint. Scope of supported SPIR-V opcodes is also limited. Using a simple move-to-front implementation instead of encoding mapped ids. Work in progress: - Does not cover all of SPIR-V - Does not promise compatibility of compression/decompression across different versions of the code.
Diffstat (limited to 'source/val')
-rw-r--r--source/val/validation_state.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/val/validation_state.h b/source/val/validation_state.h
index 87a80ce4..d94093b1 100644
--- a/source/val/validation_state.h
+++ b/source/val/validation_state.h
@@ -268,7 +268,7 @@ class ValidationState_t {
Instruction* FindDef(uint32_t id);
/// Returns a deque of instructions in the order they appear in the binary
- const std::deque<Instruction>& ordered_instructions() {
+ const std::deque<Instruction>& ordered_instructions() const {
return ordered_instructions_;
}