mirror of
https://github.com/KhronosGroup/SPIRV-Tools
synced 2024-10-19 11:30:15 +00:00
80c94a4fa8
Previously we use vectors of objects and move semantics to handle ownership. That approach has the flaw that inserting an object into the middle of a vector, which may trigger a vector reallocation, can invalidate some addresses taken from instructions. Now the in-memory representation internally uses vector of unique pointers to handle ownership. Since objects are explicitly heap- allocated now, pointers to them won't be invalidated by vector resizing anymore. |
||
---|---|---|
.. | ||
BasicBlock.cpp | ||
BasicBlock.h | ||
Construct.cpp | ||
Construct.h | ||
Function.cpp | ||
Function.h | ||
Instruction.cpp | ||
Instruction.h | ||
ValidationState.cpp | ||
ValidationState.h |