Lei Zhang
dc6e4834d6
Clean up header dependency.
2016-09-22 18:15:23 -04:00
Lei Zhang
6effeaa7f1
Change some asserts to normal errors in IrLoader.
2016-09-21 17:22:00 -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
David Neto
cc60caba1d
IrLoader gracefully handles incomplete blocks and functions
...
This lets us write smaller test cases with the IrLoader, avoiding
boilerplate for function begin/end, and basic block begin/end.
Also ForEachInst is more forgiving of cases where a basic block
doesn't have a label, and when a function doesn't have a defining
or end instruction.
2016-08-26 10:15:15 -04:00
Lei Zhang
abf8f6413c
Promote ir namespace and create draft libspirv.{h|c}pp.
2016-06-28 14:52:34 -04:00
Lei Zhang
8590f9cc81
Add IrBuilder for constructing SPIR-V in-memory representation.
2016-06-27 16:57:42 -04:00