Added --compact-ids to /tools/opt
authorAndrey Tuganov <andreyt@google.com>
Tue, 11 Apr 2017 19:11:04 +0000 (15:11 -0400)
committerDavid Neto <dneto@google.com>
Thu, 20 Apr 2017 14:54:39 +0000 (10:54 -0400)
commit1e309af80a4486f8826b66a4ea37777ed874ff87
tree14d07e2ca02d7369117b87c0155ce5e483787586
parentb173d1c3cdc7b2cba4302661e60e2f56ca98d34c
Added --compact-ids to /tools/opt

The pass remaps ids to a compact set which starts with %1 and
has no gaps.
13 files changed:
include/spirv-tools/optimizer.hpp
source/opt/CMakeLists.txt
source/opt/build_module.cpp
source/opt/build_module.h
source/opt/compact_ids_pass.cpp [new file with mode: 0644]
source/opt/compact_ids_pass.h [new file with mode: 0644]
source/opt/optimizer.cpp
source/opt/passes.h
test/opt/CMakeLists.txt
test/opt/compact_ids_test.cpp [new file with mode: 0644]
test/opt/pass_fixture.h
test/scripts/test_compact_ids.py [new file with mode: 0644]
tools/opt/opt.cpp