Add exhaustive function call inlining to spirv-opt
authorGreg Fischer <greg@lunarg.com>
Thu, 10 Nov 2016 17:11:50 +0000 (10:11 -0700)
committerDavid Neto <dneto@google.com>
Wed, 29 Mar 2017 22:02:40 +0000 (18:02 -0400)
commit04fcc6674333914e9b8da9e4c103de638ef4c609
tree984b63f7cb52cd89f4e88f2bb1227de1ee9aaf9f
parentb85997a1df2c050855837989d7c7aa73be8e3a9b
Add exhaustive function call inlining to spirv-opt

Inlining is done for all functions designated as entry points.

Add optional validation to test fixture method SinglePassRunAndCheck.
21 files changed:
README.md
include/spirv-tools/optimizer.hpp
source/opt/CMakeLists.txt
source/opt/basic_block.cpp [new file with mode: 0644]
source/opt/basic_block.h
source/opt/build_module.cpp
source/opt/function.cpp
source/opt/function.h
source/opt/inline_pass.cpp [new file with mode: 0644]
source/opt/inline_pass.h [new file with mode: 0644]
source/opt/instruction.h
source/opt/iterator.h
source/opt/module.cpp
source/opt/module.h
source/opt/optimizer.cpp
source/opt/passes.h
source/opt/types.cpp
test/opt/CMakeLists.txt
test/opt/inline_test.cpp [new file with mode: 0644]
test/opt/pass_fixture.h
tools/opt/opt.cpp