Lei Zhang
f18e1f293b
Add a C++ interface to the optimization functionalities.
2016-09-20 16:52:05 -04:00
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
Lei Zhang
d9e63de117
Create a separate header and source file for each pass.
2016-08-29 15:46:09 -04:00