Commit Graph

4 Commits

Author SHA1 Message Date
David Neto afc60bbebf Fix optimizer on when to write the binary
The spvtools::Optimizer::Run method should also write the output binary
if optimization succeeds without changes but the output binary vector
does not have exactly the same contents as the input binary.
We have to check both the base pointer of the storage and the size of
the vector

Added a test for this too.

Fixes https://github.com/KhronosGroup/SPIRV-Tools/issues/611
2017-04-03 15:48:50 -04:00
Greg Fischer 04fcc66743 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.
2017-03-29 18:02:40 -04:00
Lei Zhang 620f05e679 Publish the C++ interface. 2016-09-21 14:41:47 -04:00
Lei Zhang f18e1f293b Add a C++ interface to the optimization functionalities. 2016-09-20 16:52:05 -04:00