SPIRV-Tools/source/reduce
Ben Clayton 6aed7ffbc7
CMake: Enable building with BUILD_SHARED_LIBS=1 (#3490)
Rename the `${SPIRV_TOOLS}` target to `${SPIRV_TOOLS}-static` and alias `${SPIRV_TOOLS}` to either `${SPIRV_TOOLS}-static` or `${SPIRV_TOOLS}-shared` depending on `BUILD_SHARED_LIBS`.

Re-point all internal uses of `${SPIRV_TOOLS}` to `${SPIRV_TOOLS}-static`.

`${SPIRV_TOOLS}-static` is explicitly renamed to just `${SPIRV_TOOLS}` to ensure the name does not change from current behavior.

Build the `SPIRV-Tools-*` libraries as static, as this is what they always were.

Force the external targets `gmock` and `effcee` to be built statically. These either do not support being built as shared libraries, or require special flags.

Issue: #3482
2020-07-27 13:29:07 -04:00
..
change_operand_reduction_opportunity.cpp reduce: miscellaneous fixes (#2494) 2019-04-08 19:37:17 +01:00
change_operand_reduction_opportunity.h reduce: miscellaneous fixes (#2494) 2019-04-08 19:37:17 +01:00
change_operand_to_undef_reduction_opportunity.cpp spirv-reduce: add OperandToUndefReductionPass (#2200) 2018-12-19 13:25:56 +00:00
change_operand_to_undef_reduction_opportunity.h spirv-reduce: add OperandToUndefReductionPass (#2200) 2018-12-19 13:25:56 +00:00
CMakeLists.txt CMake: Enable building with BUILD_SHARED_LIBS=1 (#3490) 2020-07-27 13:29:07 -04:00
conditional_branch_to_simple_conditional_branch_opportunity_finder.cpp reduce: add large tests and fix (#2947) 2019-10-10 17:12:42 +01:00
conditional_branch_to_simple_conditional_branch_opportunity_finder.h reduce: Add two branch reduction passes (#2507) 2019-04-15 19:54:36 +01:00
conditional_branch_to_simple_conditional_branch_reduction_opportunity.cpp reduce: add large tests and fix (#2947) 2019-10-10 17:12:42 +01:00
conditional_branch_to_simple_conditional_branch_reduction_opportunity.h reduce: add large tests and fix (#2947) 2019-10-10 17:12:42 +01:00
merge_blocks_reduction_opportunity_finder.cpp reduce: miscellaneous fixes (#2494) 2019-04-08 19:37:17 +01:00
merge_blocks_reduction_opportunity_finder.h Merge blocks in reducer (#2353) 2019-02-01 14:56:54 +00:00
merge_blocks_reduction_opportunity.cpp reduce: miscellaneous fixes (#2494) 2019-04-08 19:37:17 +01:00
merge_blocks_reduction_opportunity.h reduce: miscellaneous fixes (#2494) 2019-04-08 19:37:17 +01:00
operand_to_const_reduction_opportunity_finder.cpp reduce: miscellaneous fixes (#2494) 2019-04-08 19:37:17 +01:00
operand_to_const_reduction_opportunity_finder.h Fixed names in ifdefs and GetName functions that had been forgotten in a previous refactoring. Also shortened names of test files as those files test both the new 'finder' classes introduced in the refactoring, as well as the 'reduction pass' class; the shorter names capture both. (#2336) 2019-01-25 11:37:03 -05:00
operand_to_dominating_id_reduction_opportunity_finder.cpp reduce: miscellaneous fixes (#2494) 2019-04-08 19:37:17 +01:00
operand_to_dominating_id_reduction_opportunity_finder.h reduce: miscellaneous fixes (#2494) 2019-04-08 19:37:17 +01:00
operand_to_undef_reduction_opportunity_finder.cpp reduce: miscellaneous fixes (#2494) 2019-04-08 19:37:17 +01:00
operand_to_undef_reduction_opportunity_finder.h Fixed names in ifdefs and GetName functions that had been forgotten in a previous refactoring. Also shortened names of test files as those files test both the new 'finder' classes introduced in the refactoring, as well as the 'reduction pass' class; the shorter names capture both. (#2336) 2019-01-25 11:37:03 -05:00
pch_source_reduce.cpp Fix the missing pch files in spirv-reduce (#2097) 2018-11-22 18:00:08 -05:00
pch_source_reduce.h spirv-reduce: Remove unused uniforms and similar (#3321) 2020-05-13 22:08:40 +01:00
reducer.cpp spirv-reduce: Remove unused struct members (#3329) 2020-05-14 15:36:38 +01:00
reducer.h reduce: improve remove unref instr pass (#2945) 2019-10-08 13:02:34 +01:00
reduction_opportunity_finder.h reduce: miscellaneous fixes (#2494) 2019-04-08 19:37:17 +01:00
reduction_opportunity.cpp reduce: miscellaneous fixes (#2494) 2019-04-08 19:37:17 +01:00
reduction_opportunity.h spirv-reduce: add OperandToUndefReductionPass (#2200) 2018-12-19 13:25:56 +00:00
reduction_pass.cpp reduce: miscellaneous fixes (#2494) 2019-04-08 19:37:17 +01:00
reduction_pass.h Improve reducer algorithm and other changes (#2472) 2019-03-26 13:22:31 +00:00
reduction_util.cpp reduce: add large tests and fix (#2947) 2019-10-10 17:12:42 +01:00
reduction_util.h reduce: add large tests and fix (#2947) 2019-10-10 17:12:42 +01:00
remove_block_reduction_opportunity_finder.cpp reduce: miscellaneous fixes (#2494) 2019-04-08 19:37:17 +01:00
remove_block_reduction_opportunity_finder.h reduce: remove unreferenced blocks pass (#2398) 2019-03-21 13:32:21 +00:00
remove_block_reduction_opportunity.cpp reduce: miscellaneous fixes (#2494) 2019-04-08 19:37:17 +01:00
remove_block_reduction_opportunity.h reduce: miscellaneous fixes (#2494) 2019-04-08 19:37:17 +01:00
remove_function_reduction_opportunity_finder.cpp reduce: miscellaneous fixes (#2494) 2019-04-08 19:37:17 +01:00
remove_function_reduction_opportunity_finder.h Fixes #2358. Added to the reducer the ability to remove a function t… (#2361) 2019-02-08 16:20:29 +00:00
remove_function_reduction_opportunity.cpp reduce: miscellaneous fixes (#2494) 2019-04-08 19:37:17 +01:00
remove_function_reduction_opportunity.h reduce: miscellaneous fixes (#2494) 2019-04-08 19:37:17 +01:00
remove_instruction_reduction_opportunity.cpp spirv-reduce: Remove unused uniforms and similar (#3321) 2020-05-13 22:08:40 +01:00
remove_instruction_reduction_opportunity.h reduce: miscellaneous fixes (#2494) 2019-04-08 19:37:17 +01:00
remove_selection_reduction_opportunity_finder.cpp Implement WebGPU->Vulkan initializer conversion for 'Function' variables (#2513) 2019-04-16 14:31:36 -04:00
remove_selection_reduction_opportunity_finder.h reduce: add remove_selection_reduction_opportunity (#2485) 2019-04-02 16:50:15 +01:00
remove_selection_reduction_opportunity.cpp reduce: add remove_selection_reduction_opportunity (#2485) 2019-04-02 16:50:15 +01:00
remove_selection_reduction_opportunity.h reduce: add remove_selection_reduction_opportunity (#2485) 2019-04-02 16:50:15 +01:00
remove_struct_member_reduction_opportunity.cpp spirv-reduce: Remove unused struct members (#3329) 2020-05-14 15:36:38 +01:00
remove_struct_member_reduction_opportunity.h spirv-reduce: Remove unused struct members (#3329) 2020-05-14 15:36:38 +01:00
remove_unused_instruction_reduction_opportunity_finder.cpp spirv-reduce: Remove unused uniforms and similar (#3321) 2020-05-13 22:08:40 +01:00
remove_unused_instruction_reduction_opportunity_finder.h spirv-reduce: Remove unused uniforms and similar (#3321) 2020-05-13 22:08:40 +01:00
remove_unused_struct_member_reduction_opportunity_finder.cpp spirv-reduce: Remove unused struct members (#3329) 2020-05-14 15:36:38 +01:00
remove_unused_struct_member_reduction_opportunity_finder.h spirv-reduce: Remove unused struct members (#3329) 2020-05-14 15:36:38 +01:00
simple_conditional_branch_to_branch_opportunity_finder.cpp reduce: Add two branch reduction passes (#2507) 2019-04-15 19:54:36 +01:00
simple_conditional_branch_to_branch_opportunity_finder.h reduce: Add two branch reduction passes (#2507) 2019-04-15 19:54:36 +01:00
simple_conditional_branch_to_branch_reduction_opportunity.cpp reduce: Add two branch reduction passes (#2507) 2019-04-15 19:54:36 +01:00
simple_conditional_branch_to_branch_reduction_opportunity.h reduce: Add two branch reduction passes (#2507) 2019-04-15 19:54:36 +01:00
structured_loop_to_selection_reduction_opportunity_finder.cpp reduce: miscellaneous fixes (#2494) 2019-04-08 19:37:17 +01:00
structured_loop_to_selection_reduction_opportunity_finder.h reduce: miscellaneous fixes (#2494) 2019-04-08 19:37:17 +01:00
structured_loop_to_selection_reduction_opportunity.cpp reduce: add large tests and fix (#2947) 2019-10-10 17:12:42 +01:00
structured_loop_to_selection_reduction_opportunity.h reduce: add large tests and fix (#2947) 2019-10-10 17:12:42 +01:00