SPIRV-Tools/include/spirv-tools
Paul Thomson 7d1b176c1d
Improve reducer algorithm and other changes (#2472)
Fix #2475. Fix #2476. 

* Improve reducer algorithm: shrink granularity, remove an early return, no lazy initialization, notify pass if binary is interesting, add comments.
* Add fail-on-validation-error option to fail a reduction if an invalid state is reached; useful for tests.
* Set fail-on-validation-error in tests.
* Improve some documentation comments.
* Add Reducer::AddDefaultReductionPasses so tests (and other library consumers) can add the default reduction passes.
* Add CLIMessageConsumer in test_reduce so we can see messages for tricky tests.
* Remove test RemoveUnreferencedInstructionReductionPassTest_ApplyReduction because it was indirectly testing the reduction algorithm, not the RemoveUnreferencedInstruction pass.
* Tweak tests where needed.
2019-03-26 13:22:31 +00:00
..
instrument.hpp Bindless Validation: Descriptor Initialization Check (#2419) 2019-03-19 09:53:43 -04:00
libspirv.h Improve reducer algorithm and other changes (#2472) 2019-03-26 13:22:31 +00:00
libspirv.hpp Improve reducer algorithm and other changes (#2472) 2019-03-26 13:22:31 +00:00
linker.hpp Rewrite include guards (#1793) 2018-08-03 08:05:33 -04:00
optimizer.hpp Bindless Validation: Descriptor Initialization Check (#2419) 2019-03-19 09:53:43 -04:00