SPIRV-Tools/source/opt
Pierre Moreau 86627f7b3f Implement Linker (module combiner)
Add extra iterators for ir::Module's sections
Add extra getters to ir::Function
Add a const version of BasicBlock::GetLabelInst()

Use the max of all inputs' version as version

Split debug in debug1 and debug2
- Debug1 instructions have to be placed before debug2 instructions.

Error out if different addressing or memory models are found

Exit early if no binaries were given

Error out if entry points are redeclared

Implement copy ctors for Function and BasicBlock
- Visual Studio ends up generating copy constructors that call deleted
  functions while compiling the linker code, while GCC and clang do not.
  So explicitly write those functions to avoid Visual Studio messing up.

Move removing duplicate capabilities to its own pass

Add functions running on all IDs present in an instruction

Remove duplicate SpvOpExtInstImport

Give default options value for link functions

Remove linkage capability if not making a library

Check types before allowing to link

Detect if two types/variables/functions have different decorations

Remove decorations of imported variables/functions and their types

Add a DecorationManager

Add a method for removing all decorations of id

Add methods for removing operands from instructions

Error out if one of the modules has a non-zero schema

Update README.md to talk about the linker

Do not freak out if an imported built-in variable has no export
2017-10-06 18:33:53 -04:00
..
aggressive_dead_code_elim_pass.cpp Implement Linker (module combiner) 2017-10-06 18:33:53 -04:00
aggressive_dead_code_elim_pass.h Opt: Have "size" passes process full entry point call tree. 2017-08-18 10:16:01 -04:00
basic_block.cpp Implement Linker (module combiner) 2017-10-06 18:33:53 -04:00
basic_block.h Implement Linker (module combiner) 2017-10-06 18:33:53 -04:00
block_merge_pass.cpp Opt: Have "size" passes process full entry point call tree. 2017-08-18 10:16:01 -04:00
block_merge_pass.h Opt: Have "size" passes process full entry point call tree. 2017-08-18 10:16:01 -04:00
build_module.cpp Added --compact-ids to /tools/opt 2017-04-20 10:54:39 -04:00
build_module.h Added --compact-ids to /tools/opt 2017-04-20 10:54:39 -04:00
CMakeLists.txt Implement Linker (module combiner) 2017-10-06 18:33:53 -04:00
common_uniform_elim_pass.cpp Opt: Have "size" passes process full entry point call tree. 2017-08-18 10:16:01 -04:00
common_uniform_elim_pass.h Opt: Have "size" passes process full entry point call tree. 2017-08-18 10:16:01 -04:00
compact_ids_pass.cpp Compact-ids pass should update the header ID bound 2017-10-03 11:24:28 -04:00
compact_ids_pass.h Added --compact-ids to /tools/opt 2017-04-20 10:54:39 -04:00
constants.h Clean up header dependency. 2016-09-22 18:15:23 -04:00
dead_branch_elim_pass.cpp DeadBranchElim: Fix dead block detection to ignore backedges 2017-08-30 13:37:46 -04:00
dead_branch_elim_pass.h Opt: Have "size" passes process full entry point call tree. 2017-08-18 10:16:01 -04:00
decoration_manager.cpp Implement Linker (module combiner) 2017-10-06 18:33:53 -04:00
decoration_manager.h Implement Linker (module combiner) 2017-10-06 18:33:53 -04:00
def_use_manager.cpp Implement Linker (module combiner) 2017-10-06 18:33:53 -04:00
def_use_manager.h Implement Linker (module combiner) 2017-10-06 18:33:53 -04:00
eliminate_dead_constant_pass.cpp Implement Linker (module combiner) 2017-10-06 18:33:53 -04:00
eliminate_dead_constant_pass.h Add a C++ interface to the optimization functionalities. 2016-09-20 16:52:05 -04:00
eliminate_dead_functions_pass.cpp Create the dead function elimination pass 2017-09-26 11:18:06 -04:00
eliminate_dead_functions_pass.h Create the dead function elimination pass 2017-09-26 11:18:06 -04:00
flatten_decoration_pass.cpp Implement Linker (module combiner) 2017-10-06 18:33:53 -04:00
flatten_decoration_pass.h Add FlattenDecoration transform 2017-04-06 11:19:56 -04:00
fold_spec_constant_op_and_composite_pass.cpp Clean up header dependency. 2016-09-22 18:15:23 -04:00
fold_spec_constant_op_and_composite_pass.h Clean up header dependency. 2016-09-22 18:15:23 -04:00
freeze_spec_constant_value_pass.cpp Change interface of Pass::Process() to return possible failures. 2016-09-20 16:40:17 -04:00
freeze_spec_constant_value_pass.h Add a C++ interface to the optimization functionalities. 2016-09-20 16:52:05 -04:00
function.cpp Implement Linker (module combiner) 2017-10-06 18:33:53 -04:00
function.h Implement Linker (module combiner) 2017-10-06 18:33:53 -04:00
inline_exhaustive_pass.cpp Opt: Have "size" passes process full entry point call tree. 2017-08-18 10:16:01 -04:00
inline_exhaustive_pass.h Inline: Split out InlineExhaustivePass from InlinePass 2017-08-04 17:56:46 -04:00
inline_opaque_pass.cpp Opt: Create InlineOpaquePass 2017-08-18 18:04:30 -04:00
inline_opaque_pass.h Opt: Create InlineOpaquePass 2017-08-18 18:04:30 -04:00
inline_pass.cpp Inliner: Fix LoopMerge when inline into loop header of multi block loop 2017-09-05 19:46:24 -04:00
inline_pass.h Opt: Create InlineOpaquePass 2017-08-18 18:04:30 -04:00
insert_extract_elim.cpp ExtractInsert: Handle rudimentary CompositeConstruct and ConstantComposite 2017-09-15 20:33:53 -04:00
insert_extract_elim.h ExtractInsert: Handle rudimentary CompositeConstruct and ConstantComposite 2017-09-15 20:33:53 -04:00
instruction.cpp Clean up header dependency. 2016-09-22 18:15:23 -04:00
instruction.h Implement Linker (module combiner) 2017-10-06 18:33:53 -04:00
ir_loader.cpp Implement Linker (module combiner) 2017-10-06 18:33:53 -04:00
ir_loader.h Clean up header dependency. 2016-09-22 18:15:23 -04:00
iterator.h Add exhaustive function call inlining to spirv-opt 2017-03-29 18:02:40 -04:00
local_access_chain_convert_pass.cpp Opt: Have "size" passes process full entry point call tree. 2017-08-18 10:16:01 -04:00
local_access_chain_convert_pass.h Opt: Have "size" passes process full entry point call tree. 2017-08-18 10:16:01 -04:00
local_single_block_elim_pass.cpp Opt: Have "size" passes process full entry point call tree. 2017-08-18 10:16:01 -04:00
local_single_block_elim_pass.h Opt: Have "size" passes process full entry point call tree. 2017-08-18 10:16:01 -04:00
local_single_store_elim_pass.cpp Opt: Have "size" passes process full entry point call tree. 2017-08-18 10:16:01 -04:00
local_single_store_elim_pass.h Opt: Have "size" passes process full entry point call tree. 2017-08-18 10:16:01 -04:00
local_ssa_elim_pass.cpp elim-multi-store: only patch loop header phis that we created 2017-09-21 10:01:30 -04:00
local_ssa_elim_pass.h elim-multi-store: only patch loop header phis that we created 2017-09-21 10:01:30 -04:00
log.h Avoid snprintf warning in GCC 7.1 2017-05-08 15:58:24 -04:00
make_unique.h Relicense SPIRV-Tools under Apache 2.0 2016-09-02 10:00:29 -04:00
mem_pass.cpp Implement Linker (module combiner) 2017-10-06 18:33:53 -04:00
mem_pass.h Opt: Have "size" passes process full entry point call tree. 2017-08-18 10:16:01 -04:00
module.cpp Implement Linker (module combiner) 2017-10-06 18:33:53 -04:00
module.h Implement Linker (module combiner) 2017-10-06 18:33:53 -04:00
null_pass.h Add a C++ interface to the optimization functionalities. 2016-09-20 16:52:05 -04:00
optimizer.cpp Create the dead function elimination pass 2017-09-26 11:18:06 -04:00
pass_manager.cpp Implement Linker (module combiner) 2017-10-06 18:33:53 -04:00
pass_manager.h Implement Linker (module combiner) 2017-10-06 18:33:53 -04:00
pass.cpp Create the dead function elimination pass 2017-09-26 11:18:06 -04:00
pass.h Create the dead function elimination pass 2017-09-26 11:18:06 -04:00
passes.h Create the dead function elimination pass 2017-09-26 11:18:06 -04:00
reflect.h Implement Linker (module combiner) 2017-10-06 18:33:53 -04:00
remove_duplicates_pass.cpp Implement Linker (module combiner) 2017-10-06 18:33:53 -04:00
remove_duplicates_pass.h Implement Linker (module combiner) 2017-10-06 18:33:53 -04:00
set_spec_constant_default_value_pass.cpp Add bit pattern interface for setting default value for spec constants 2017-04-21 11:22:47 -04:00
set_spec_constant_default_value_pass.h Add bit pattern interface for setting default value for spec constants 2017-04-21 11:22:47 -04:00
strength_reduction_pass.cpp Add strength reduction; for now replace multiply by power of 2 2017-09-18 17:01:36 -04:00
strength_reduction_pass.h Add strength reduction; for now replace multiply by power of 2 2017-09-18 17:01:36 -04:00
strip_debug_info_pass.cpp Implement Linker (module combiner) 2017-10-06 18:33:53 -04:00
strip_debug_info_pass.h Add a C++ interface to the optimization functionalities. 2016-09-20 16:52:05 -04:00
type_manager.cpp Fix typo in method name Struct::AddMemberName 2017-04-01 11:19:40 -04:00
type_manager.h Add begin() and end() for TypeManager. 2016-09-30 16:56:42 -04:00
types.cpp Fix typo in method name Struct::AddMemberName 2017-04-01 11:19:40 -04:00
types.h Add SPIR-V 1.2 support, for OpenCL 2.2 2017-05-15 17:10:07 -04:00
unify_const_pass.cpp Change interface of Pass::Process() to return possible failures. 2016-09-20 16:40:17 -04:00
unify_const_pass.h Add a C++ interface to the optimization functionalities. 2016-09-20 16:52:05 -04:00