SPIRV-Tools/test/opt
Steven Perron 476cae6f7d Add the IRContext (part 1)
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.
2017-10-31 13:46:05 -04:00
..
aggressive_dead_code_elim_test.cpp ADCE: Dead if elimination 2017-10-31 11:51:30 -04:00
assembly_builder_test.cpp Renaming test files to comply with Google style guide. 2016-11-07 14:41:51 -05:00
assembly_builder.h Relicense SPIRV-Tools under Apache 2.0 2016-09-02 10:00:29 -04:00
block_merge_test.cpp BlockMerge: Add BlockMergePass 2017-06-27 11:31:33 -04:00
cfg_cleanup_test.cpp The reviewed cfg_cleanup optimize pass 2017-10-19 15:28:09 -04:00
CMakeLists.txt Add pass to remove dead variables at the module level. 2017-10-23 13:57:05 -04:00
common_uniform_elim_test.cpp Fixed --eliminate-common-uniform so that it does not eliminate loads of volatile variables. 2017-10-24 11:17:33 -04:00
compact_ids_test.cpp Compact-ids pass should update the header ID bound 2017-10-03 11:24:28 -04:00
dead_branch_elim_test.cpp DeadBranchElim: Add dead case elimination 2017-10-12 11:44:05 -04:00
dead_variable_elim_test.cpp Add pass to remove dead variables at the module level. 2017-10-23 13:57:05 -04:00
def_use_test.cpp Renaming test files to comply with Google style guide. 2016-11-07 14:41:51 -05:00
eliminate_dead_const_test.cpp Provide friendly names for true and false 2017-01-11 16:33:45 -05:00
eliminate_dead_functions_test.cpp Create the dead function elimination pass 2017-09-26 11:18:06 -04:00
flatten_decoration_test.cpp Add FlattenDecoration transform 2017-04-06 11:19:56 -04:00
fold_spec_const_op_composite_test.cpp Provide friendly names for true and false 2017-01-11 16:33:45 -05:00
freeze_spec_const_test.cpp Provide friendly names for true and false 2017-01-11 16:33:45 -05:00
inline_opaque_test.cpp Opt: Create InlineOpaquePass 2017-08-18 18:04:30 -04:00
inline_test.cpp Add strength reduction; for now replace multiply by power of 2 2017-09-18 17:01:36 -04:00
insert_extract_elim_test.cpp Opt: Add opaque tests 2017-08-15 15:54:41 -06:00
instruction_list_test.cpp Change the sections in the module to use the InstructionList class. 2017-10-25 15:52:06 -04:00
instruction_test.cpp Include memory and semantics IDs when iterating over inbound IDs 2017-07-05 10:36:57 -04:00
ir_loader_test.cpp Optimizer: OpModuleProcessed is in its own layout section 2017-10-23 10:46:37 -04:00
iterator_test.cpp Renaming test files to comply with Google style guide. 2016-11-07 14:41:51 -05:00
line_debug_info_test.cpp Add the IRContext (part 1) 2017-10-31 13:46:05 -04:00
local_access_chain_convert_test.cpp Opt: Add opaque tests 2017-08-15 15:54:41 -06:00
local_single_block_elim.cpp Add strength reduction; for now replace multiply by power of 2 2017-09-18 17:01:36 -04:00
local_single_store_elim_test.cpp Opt: Delete names and decorations of dead instructions 2017-07-26 18:36:41 -04:00
local_ssa_elim_test.cpp elim-multi-store: only patch loop header phis that we created 2017-09-21 10:01:30 -04:00
module_test.cpp Renaming test files to comply with Google style guide. 2016-11-07 14:41:51 -05:00
module_utils.h Relicense SPIRV-Tools under Apache 2.0 2016-09-02 10:00:29 -04:00
optimizer_test.cpp Fix optimizer on when to write the binary 2017-04-03 15:48:50 -04:00
pass_fixture.h Add the IRContext (part 1) 2017-10-31 13:46:05 -04:00
pass_manager_test.cpp Add the IRContext (part 1) 2017-10-31 13:46:05 -04:00
pass_test.cpp Add the IRContext (part 1) 2017-10-31 13:46:05 -04:00
pass_utils.cpp Relicense SPIRV-Tools under Apache 2.0 2016-09-02 10:00:29 -04:00
pass_utils.h Add strength reduction; for now replace multiply by power of 2 2017-09-18 17:01:36 -04:00
set_spec_const_default_value_test.cpp Update set_spec_const_default_value_test.cpp 2017-05-08 10:41:48 -04:00
strength_reduction_test.cpp Add strength reduction; for now replace multiply by power of 2 2017-09-18 17:01:36 -04:00
strip_debug_info_test.cpp Optimizer: OpModuleProcessed is in its own layout section 2017-10-23 10:46:37 -04:00
type_manager_test.cpp Renaming test files to comply with Google style guide. 2016-11-07 14:41:51 -05:00
types_test.cpp Renaming test files to comply with Google style guide. 2016-11-07 14:41:51 -05:00
unify_const_test.cpp Renaming test files to comply with Google style guide. 2016-11-07 14:41:51 -05:00
utils_test.cpp Renaming test files to comply with Google style guide. 2016-11-07 14:41:51 -05:00