CMakeLists.txt 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. # Copyright (c) 2016 Google Inc.
  2. #
  3. # Licensed under the Apache License, Version 2.0 (the "License");
  4. # you may not use this file except in compliance with the License.
  5. # You may obtain a copy of the License at
  6. #
  7. # http://www.apache.org/licenses/LICENSE-2.0
  8. #
  9. # Unless required by applicable law or agreed to in writing, software
  10. # distributed under the License is distributed on an "AS IS" BASIS,
  11. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. # See the License for the specific language governing permissions and
  13. # limitations under the License.
  14. add_subdirectory(dominator_tree)
  15. add_subdirectory(loop_optimizations)
  16. add_spvtools_unittest(TARGET opt
  17. SRCS aggressive_dead_code_elim_test.cpp
  18. assembly_builder_test.cpp
  19. block_merge_test.cpp
  20. ccp_test.cpp
  21. cfg_cleanup_test.cpp
  22. code_sink_test.cpp
  23. combine_access_chains_test.cpp
  24. common_uniform_elim_test.cpp
  25. compact_ids_test.cpp
  26. constant_manager_test.cpp
  27. copy_prop_array_test.cpp
  28. dead_branch_elim_test.cpp
  29. dead_insert_elim_test.cpp
  30. dead_variable_elim_test.cpp
  31. decoration_manager_test.cpp
  32. def_use_test.cpp
  33. eliminate_dead_const_test.cpp
  34. eliminate_dead_functions_test.cpp
  35. feature_manager_test.cpp
  36. flatten_decoration_test.cpp
  37. fold_spec_const_op_composite_test.cpp
  38. fold_test.cpp
  39. freeze_spec_const_test.cpp
  40. function_test.cpp
  41. if_conversion_test.cpp
  42. inline_opaque_test.cpp
  43. inline_test.cpp
  44. insert_extract_elim_test.cpp
  45. inst_bindless_check_test.cpp
  46. instruction_list_test.cpp
  47. instruction_test.cpp
  48. ir_builder.cpp
  49. ir_context_test.cpp
  50. ir_loader_test.cpp
  51. iterator_test.cpp
  52. line_debug_info_test.cpp
  53. local_access_chain_convert_test.cpp
  54. local_redundancy_elimination_test.cpp
  55. local_single_block_elim.cpp
  56. local_single_store_elim_test.cpp
  57. local_ssa_elim_test.cpp
  58. module_test.cpp
  59. module_utils.h
  60. optimizer_test.cpp
  61. pass_manager_test.cpp
  62. pass_merge_return_test.cpp
  63. pass_remove_duplicates_test.cpp
  64. pass_utils.cpp
  65. private_to_local_test.cpp
  66. process_lines_test.cpp
  67. propagator_test.cpp
  68. reduce_load_size_test.cpp
  69. redundancy_elimination_test.cpp
  70. register_liveness.cpp
  71. replace_invalid_opc_test.cpp
  72. scalar_analysis.cpp
  73. scalar_replacement_test.cpp
  74. set_spec_const_default_value_test.cpp
  75. simplification_test.cpp
  76. strength_reduction_test.cpp
  77. strip_debug_info_test.cpp
  78. strip_reflect_info_test.cpp
  79. struct_cfg_analysis_test.cpp
  80. type_manager_test.cpp
  81. types_test.cpp
  82. unify_const_test.cpp
  83. upgrade_memory_model_test.cpp
  84. utils_test.cpp pass_utils.cpp
  85. value_table_test.cpp
  86. vector_dce_test.cpp
  87. workaround1209_test.cpp
  88. LIBS SPIRV-Tools-opt
  89. PCH_FILE pch_test_opt
  90. )