mirror of
https://github.com/KhronosGroup/SPIRV-Tools
synced 2025-01-14 10:20:19 +00:00
476cae6f7d
This is the first part of adding the IRContext. This class is meant to hold the extra data that is build on top of the module that it owns. The first part will simply create the IRContext class and get it passed to the passes in place of the module. For now it does not have any functionality of its own, but it acts more as a wrapper for the module. The functions that I added to the IRContext are those that either traverse the headers or add to them. I did this because we may decide to have other ways of dealing with these sections (for example adding a type pool, or use the decoration manager). I also added the function that add to the header because the IRContext needs to know when an instruction is added to update other data structures appropriately. Note that there is still lots of work that needs to be done. There are still many places that change the module, and do not inform the context. That will be the next step. |
||
---|---|---|
.. | ||
aggressive_dead_code_elim_test.cpp | ||
assembly_builder_test.cpp | ||
assembly_builder.h | ||
block_merge_test.cpp | ||
cfg_cleanup_test.cpp | ||
CMakeLists.txt | ||
common_uniform_elim_test.cpp | ||
compact_ids_test.cpp | ||
dead_branch_elim_test.cpp | ||
dead_variable_elim_test.cpp | ||
def_use_test.cpp | ||
eliminate_dead_const_test.cpp | ||
eliminate_dead_functions_test.cpp | ||
flatten_decoration_test.cpp | ||
fold_spec_const_op_composite_test.cpp | ||
freeze_spec_const_test.cpp | ||
inline_opaque_test.cpp | ||
inline_test.cpp | ||
insert_extract_elim_test.cpp | ||
instruction_list_test.cpp | ||
instruction_test.cpp | ||
ir_loader_test.cpp | ||
iterator_test.cpp | ||
line_debug_info_test.cpp | ||
local_access_chain_convert_test.cpp | ||
local_single_block_elim.cpp | ||
local_single_store_elim_test.cpp | ||
local_ssa_elim_test.cpp | ||
module_test.cpp | ||
module_utils.h | ||
optimizer_test.cpp | ||
pass_fixture.h | ||
pass_manager_test.cpp | ||
pass_test.cpp | ||
pass_utils.cpp | ||
pass_utils.h | ||
set_spec_const_default_value_test.cpp | ||
strength_reduction_test.cpp | ||
strip_debug_info_test.cpp | ||
type_manager_test.cpp | ||
types_test.cpp | ||
unify_const_test.cpp | ||
utils_test.cpp |