Lei Zhang
1bc0b275dd
Allow changing MessageConsumer in Pass & PassManager.
...
Default-constructed Pass/PassManager will have a MessageConsumer
which ignores all messages. SetMessageConsumer() should be called
to supply a meaningful MessageConsumer.
2016-09-20 16:48:00 -04:00
Lei Zhang
2cbb2cce3e
Change interface of Pass::Process() to return possible failures.
2016-09-20 16:40:17 -04:00
Lei Zhang
114af21994
Add MessageConsumer to PassManager, Pass, and analysis interfaces.
...
Also convert some uses of assert() in optimization code to use
SPIRV_ASSERT(), SPIRV_UNIMPLEMENTED(), or SPIRV_UNREACHABLE()
accordingly.
2016-09-16 13:14:57 -04:00
David Neto
9fc8658ef3
Relicense SPIRV-Tools under Apache 2.0
...
Fixes https://github.com/KhronosGroup/SPIRV-Tools/issues/383
Finalize v2016.4
2016-09-02 10:00:29 -04:00
qining
60461428f4
Separate pass.h from passes.h
...
Future pass implementations should only need to include pass.h
2016-08-09 17:16:52 -04:00