Dan Sinclair | a114e1f | 2018-07-17 13:53:15 -0400 | [diff] [blame] | 1 | # Copyright 2018 Google Inc. All rights reserved. |
| 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 | |
Dan Sinclair | a114e1f | 2018-07-17 13:53:15 -0400 | [diff] [blame] | 15 | import("//build_overrides/build.gni") |
David Turner | 5081512 | 2019-07-10 22:37:10 +0200 | [diff] [blame] | 16 | import("//build_overrides/spirv_tools.gni") |
David Turner | a6bfc26 | 2019-07-03 22:26:06 +0200 | [diff] [blame] | 17 | if (build_with_chromium) { |
| 18 | import("//testing/test.gni") |
Alastair Donaldson | feb0544 | 2021-07-14 10:04:50 +0100 | [diff] [blame] | 19 | import("//third_party/protobuf/proto_library.gni") |
David Turner | a6bfc26 | 2019-07-03 22:26:06 +0200 | [diff] [blame] | 20 | } |
Dan Sinclair | a114e1f | 2018-07-17 13:53:15 -0400 | [diff] [blame] | 21 | |
Corentin Wallez | 2d9a325 | 2018-08-02 18:48:03 +0200 | [diff] [blame] | 22 | spirv_headers = spirv_tools_spirv_headers_dir |
Shahbaz Youssefi | ae6a1e1 | 2021-04-12 13:17:44 -0400 | [diff] [blame] | 23 | spirv_is_winuwp = is_win && target_os == "winuwp" |
Dan Sinclair | a114e1f | 2018-07-17 13:53:15 -0400 | [diff] [blame] | 24 | |
| 25 | template("spvtools_core_tables") { |
| 26 | assert(defined(invoker.version), "Need version in $target_name generation.") |
| 27 | |
| 28 | action("spvtools_core_tables_" + target_name) { |
| 29 | script = "utils/generate_grammar_tables.py" |
| 30 | |
| 31 | version = invoker.version |
| 32 | |
| 33 | core_json_file = |
| 34 | "${spirv_headers}/include/spirv/$version/spirv.core.grammar.json" |
| 35 | core_insts_file = "${target_gen_dir}/core.insts-$version.inc" |
| 36 | operand_kinds_file = "${target_gen_dir}/operand.kinds-$version.inc" |
Corentin Wallez | 77eb2b6 | 2021-03-10 20:19:24 +0000 | [diff] [blame] | 37 | debuginfo_insts_file = |
| 38 | "${spirv_headers}/include/spirv/unified1/extinst.debuginfo.grammar.json" |
alan-baker | 5030045 | 2020-07-30 12:08:53 -0400 | [diff] [blame] | 39 | cldebuginfo100_insts_file = "${spirv_headers}/include/spirv/unified1/extinst.opencl.debuginfo.100.grammar.json" |
Dan Sinclair | a114e1f | 2018-07-17 13:53:15 -0400 | [diff] [blame] | 40 | |
| 41 | sources = [ |
Corentin Wallez | 77eb2b6 | 2021-03-10 20:19:24 +0000 | [diff] [blame] | 42 | cldebuginfo100_insts_file, |
Dan Sinclair | a114e1f | 2018-07-17 13:53:15 -0400 | [diff] [blame] | 43 | core_json_file, |
Geoff Lang | c316fb1 | 2020-02-21 17:23:42 -0500 | [diff] [blame] | 44 | debuginfo_insts_file, |
Dan Sinclair | a114e1f | 2018-07-17 13:53:15 -0400 | [diff] [blame] | 45 | ] |
| 46 | outputs = [ |
| 47 | core_insts_file, |
| 48 | operand_kinds_file, |
| 49 | ] |
| 50 | args = [ |
| 51 | "--spirv-core-grammar", |
| 52 | rebase_path(core_json_file, root_build_dir), |
| 53 | "--core-insts-output", |
| 54 | rebase_path(core_insts_file, root_build_dir), |
| 55 | "--extinst-debuginfo-grammar", |
David Neto | 64f36ea | 2019-12-19 17:16:26 -0500 | [diff] [blame] | 56 | rebase_path(debuginfo_insts_file, root_build_dir), |
| 57 | "--extinst-cldebuginfo100-grammar", |
| 58 | rebase_path(cldebuginfo100_insts_file, root_build_dir), |
Dan Sinclair | a114e1f | 2018-07-17 13:53:15 -0400 | [diff] [blame] | 59 | "--operand-kinds-output", |
| 60 | rebase_path(operand_kinds_file, root_build_dir), |
| 61 | ] |
| 62 | } |
| 63 | } |
| 64 | |
| 65 | template("spvtools_core_enums") { |
| 66 | assert(defined(invoker.version), "Need version in $target_name generation.") |
| 67 | |
| 68 | action("spvtools_core_enums_" + target_name) { |
| 69 | script = "utils/generate_grammar_tables.py" |
| 70 | |
| 71 | version = invoker.version |
| 72 | |
| 73 | core_json_file = |
| 74 | "${spirv_headers}/include/spirv/$version/spirv.core.grammar.json" |
Corentin Wallez | 77eb2b6 | 2021-03-10 20:19:24 +0000 | [diff] [blame] | 75 | debuginfo_insts_file = |
| 76 | "${spirv_headers}/include/spirv/unified1/extinst.debuginfo.grammar.json" |
alan-baker | 5030045 | 2020-07-30 12:08:53 -0400 | [diff] [blame] | 77 | cldebuginfo100_insts_file = "${spirv_headers}/include/spirv/unified1/extinst.opencl.debuginfo.100.grammar.json" |
David Neto | fb2e819 | 2020-01-08 17:27:38 -0500 | [diff] [blame] | 78 | |
Dan Sinclair | a114e1f | 2018-07-17 13:53:15 -0400 | [diff] [blame] | 79 | extension_enum_file = "${target_gen_dir}/extension_enum.inc" |
| 80 | extension_map_file = "${target_gen_dir}/enum_string_mapping.inc" |
| 81 | |
| 82 | args = [ |
| 83 | "--spirv-core-grammar", |
| 84 | rebase_path(core_json_file, root_build_dir), |
| 85 | "--extinst-debuginfo-grammar", |
David Neto | 64f36ea | 2019-12-19 17:16:26 -0500 | [diff] [blame] | 86 | rebase_path(debuginfo_insts_file, root_build_dir), |
| 87 | "--extinst-cldebuginfo100-grammar", |
| 88 | rebase_path(cldebuginfo100_insts_file, root_build_dir), |
Dan Sinclair | a114e1f | 2018-07-17 13:53:15 -0400 | [diff] [blame] | 89 | "--extension-enum-output", |
| 90 | rebase_path(extension_enum_file, root_build_dir), |
| 91 | "--enum-string-mapping-output", |
| 92 | rebase_path(extension_map_file, root_build_dir), |
| 93 | ] |
| 94 | inputs = [ |
| 95 | core_json_file, |
David Neto | fb2e819 | 2020-01-08 17:27:38 -0500 | [diff] [blame] | 96 | debuginfo_insts_file, |
| 97 | cldebuginfo100_insts_file, |
Dan Sinclair | a114e1f | 2018-07-17 13:53:15 -0400 | [diff] [blame] | 98 | ] |
| 99 | outputs = [ |
| 100 | extension_enum_file, |
| 101 | extension_map_file, |
| 102 | ] |
| 103 | } |
| 104 | } |
| 105 | |
| 106 | template("spvtools_glsl_tables") { |
| 107 | assert(defined(invoker.version), "Need version in $target_name generation.") |
| 108 | |
| 109 | action("spvtools_glsl_tables_" + target_name) { |
| 110 | script = "utils/generate_grammar_tables.py" |
| 111 | |
| 112 | version = invoker.version |
| 113 | |
| 114 | core_json_file = |
| 115 | "${spirv_headers}/include/spirv/$version/spirv.core.grammar.json" |
| 116 | glsl_json_file = "${spirv_headers}/include/spirv/${version}/extinst.glsl.std.450.grammar.json" |
Corentin Wallez | 77eb2b6 | 2021-03-10 20:19:24 +0000 | [diff] [blame] | 117 | debuginfo_insts_file = |
| 118 | "${spirv_headers}/include/spirv/unified1/extinst.debuginfo.grammar.json" |
alan-baker | 5030045 | 2020-07-30 12:08:53 -0400 | [diff] [blame] | 119 | cldebuginfo100_insts_file = "${spirv_headers}/include/spirv/unified1/extinst.opencl.debuginfo.100.grammar.json" |
David Neto | fb2e819 | 2020-01-08 17:27:38 -0500 | [diff] [blame] | 120 | |
Dan Sinclair | a114e1f | 2018-07-17 13:53:15 -0400 | [diff] [blame] | 121 | glsl_insts_file = "${target_gen_dir}/glsl.std.450.insts.inc" |
Dan Sinclair | a114e1f | 2018-07-17 13:53:15 -0400 | [diff] [blame] | 122 | |
| 123 | args = [ |
| 124 | "--spirv-core-grammar", |
| 125 | rebase_path(core_json_file, root_build_dir), |
David Neto | fb2e819 | 2020-01-08 17:27:38 -0500 | [diff] [blame] | 126 | "--extinst-debuginfo-grammar", |
| 127 | rebase_path(debuginfo_insts_file, root_build_dir), |
| 128 | "--extinst-cldebuginfo100-grammar", |
| 129 | rebase_path(cldebuginfo100_insts_file, root_build_dir), |
Dan Sinclair | a114e1f | 2018-07-17 13:53:15 -0400 | [diff] [blame] | 130 | "--extinst-glsl-grammar", |
| 131 | rebase_path(glsl_json_file, root_build_dir), |
| 132 | "--glsl-insts-output", |
| 133 | rebase_path(glsl_insts_file, root_build_dir), |
Dan Sinclair | a114e1f | 2018-07-17 13:53:15 -0400 | [diff] [blame] | 134 | ] |
| 135 | inputs = [ |
| 136 | core_json_file, |
| 137 | glsl_json_file, |
David Neto | fb2e819 | 2020-01-08 17:27:38 -0500 | [diff] [blame] | 138 | debuginfo_insts_file, |
| 139 | cldebuginfo100_insts_file, |
Dan Sinclair | a114e1f | 2018-07-17 13:53:15 -0400 | [diff] [blame] | 140 | ] |
Corentin Wallez | 77eb2b6 | 2021-03-10 20:19:24 +0000 | [diff] [blame] | 141 | outputs = [ glsl_insts_file ] |
Dan Sinclair | a114e1f | 2018-07-17 13:53:15 -0400 | [diff] [blame] | 142 | } |
| 143 | } |
| 144 | |
| 145 | template("spvtools_opencl_tables") { |
| 146 | assert(defined(invoker.version), "Need version in $target_name generation.") |
| 147 | |
| 148 | action("spvtools_opencl_tables_" + target_name) { |
| 149 | script = "utils/generate_grammar_tables.py" |
| 150 | |
| 151 | version = invoker.version |
| 152 | |
| 153 | core_json_file = |
| 154 | "${spirv_headers}/include/spirv/$version/spirv.core.grammar.json" |
David Neto | fb2e819 | 2020-01-08 17:27:38 -0500 | [diff] [blame] | 155 | opencl_json_file = "${spirv_headers}/include/spirv/${version}/extinst.opencl.std.100.grammar.json" |
Corentin Wallez | 77eb2b6 | 2021-03-10 20:19:24 +0000 | [diff] [blame] | 156 | debuginfo_insts_file = |
| 157 | "${spirv_headers}/include/spirv/unified1/extinst.debuginfo.grammar.json" |
alan-baker | 5030045 | 2020-07-30 12:08:53 -0400 | [diff] [blame] | 158 | cldebuginfo100_insts_file = "${spirv_headers}/include/spirv/unified1/extinst.opencl.debuginfo.100.grammar.json" |
David Neto | fb2e819 | 2020-01-08 17:27:38 -0500 | [diff] [blame] | 159 | |
Dan Sinclair | a114e1f | 2018-07-17 13:53:15 -0400 | [diff] [blame] | 160 | opencl_insts_file = "${target_gen_dir}/opencl.std.insts.inc" |
Dan Sinclair | a114e1f | 2018-07-17 13:53:15 -0400 | [diff] [blame] | 161 | |
| 162 | args = [ |
| 163 | "--spirv-core-grammar", |
| 164 | rebase_path(core_json_file, root_build_dir), |
David Neto | fb2e819 | 2020-01-08 17:27:38 -0500 | [diff] [blame] | 165 | "--extinst-debuginfo-grammar", |
| 166 | rebase_path(debuginfo_insts_file, root_build_dir), |
| 167 | "--extinst-cldebuginfo100-grammar", |
| 168 | rebase_path(cldebuginfo100_insts_file, root_build_dir), |
Dan Sinclair | a114e1f | 2018-07-17 13:53:15 -0400 | [diff] [blame] | 169 | "--extinst-opencl-grammar", |
David Neto | fb2e819 | 2020-01-08 17:27:38 -0500 | [diff] [blame] | 170 | rebase_path(opencl_json_file, root_build_dir), |
Dan Sinclair | a114e1f | 2018-07-17 13:53:15 -0400 | [diff] [blame] | 171 | "--opencl-insts-output", |
| 172 | rebase_path(opencl_insts_file, root_build_dir), |
Dan Sinclair | a114e1f | 2018-07-17 13:53:15 -0400 | [diff] [blame] | 173 | ] |
| 174 | inputs = [ |
| 175 | core_json_file, |
David Neto | fb2e819 | 2020-01-08 17:27:38 -0500 | [diff] [blame] | 176 | opencl_json_file, |
| 177 | debuginfo_insts_file, |
| 178 | cldebuginfo100_insts_file, |
Dan Sinclair | a114e1f | 2018-07-17 13:53:15 -0400 | [diff] [blame] | 179 | ] |
Corentin Wallez | 77eb2b6 | 2021-03-10 20:19:24 +0000 | [diff] [blame] | 180 | outputs = [ opencl_insts_file ] |
Dan Sinclair | a114e1f | 2018-07-17 13:53:15 -0400 | [diff] [blame] | 181 | } |
| 182 | } |
| 183 | |
| 184 | template("spvtools_language_header") { |
| 185 | assert(defined(invoker.name), "Need name in $target_name generation.") |
| 186 | |
| 187 | action("spvtools_language_header_" + target_name) { |
| 188 | script = "utils/generate_language_headers.py" |
| 189 | |
| 190 | name = invoker.name |
Geoff Lang | fb6e3e4 | 2020-02-25 00:46:52 -0500 | [diff] [blame] | 191 | extinst_output_path = "${target_gen_dir}/${name}.h" |
Dan Sinclair | a114e1f | 2018-07-17 13:53:15 -0400 | [diff] [blame] | 192 | |
| 193 | args = [ |
Dan Sinclair | a114e1f | 2018-07-17 13:53:15 -0400 | [diff] [blame] | 194 | "--extinst-grammar", |
David Neto | 64f36ea | 2019-12-19 17:16:26 -0500 | [diff] [blame] | 195 | rebase_path(invoker.grammar_file, root_build_dir), |
Geoff Lang | fb6e3e4 | 2020-02-25 00:46:52 -0500 | [diff] [blame] | 196 | "--extinst-output-path", |
| 197 | rebase_path(extinst_output_path, root_build_dir), |
Dan Sinclair | a114e1f | 2018-07-17 13:53:15 -0400 | [diff] [blame] | 198 | ] |
Corentin Wallez | 77eb2b6 | 2021-03-10 20:19:24 +0000 | [diff] [blame] | 199 | inputs = [ invoker.grammar_file ] |
| 200 | outputs = [ "${extinst_output_path}" ] |
Dan Sinclair | a114e1f | 2018-07-17 13:53:15 -0400 | [diff] [blame] | 201 | } |
| 202 | } |
| 203 | |
| 204 | template("spvtools_vendor_table") { |
| 205 | assert(defined(invoker.name), "Need name in $target_name generation.") |
| 206 | |
| 207 | action("spvtools_vendor_tables_" + target_name) { |
| 208 | script = "utils/generate_grammar_tables.py" |
| 209 | |
| 210 | name = invoker.name |
Corentin Wallez | 77eb2b6 | 2021-03-10 20:19:24 +0000 | [diff] [blame] | 211 | extinst_vendor_grammar = |
| 212 | "${spirv_headers}/include/spirv/unified1/extinst.${name}.grammar.json" |
Dan Sinclair | a114e1f | 2018-07-17 13:53:15 -0400 | [diff] [blame] | 213 | extinst_file = "${target_gen_dir}/${name}.insts.inc" |
| 214 | |
| 215 | args = [ |
| 216 | "--extinst-vendor-grammar", |
| 217 | rebase_path(extinst_vendor_grammar, root_build_dir), |
| 218 | "--vendor-insts-output", |
| 219 | rebase_path(extinst_file, root_build_dir), |
David Neto | 64f36ea | 2019-12-19 17:16:26 -0500 | [diff] [blame] | 220 | "--vendor-operand-kind-prefix", |
Corentin Wallez | 77eb2b6 | 2021-03-10 20:19:24 +0000 | [diff] [blame] | 221 | invoker.operand_kind_prefix, |
Dan Sinclair | a114e1f | 2018-07-17 13:53:15 -0400 | [diff] [blame] | 222 | ] |
Corentin Wallez | 77eb2b6 | 2021-03-10 20:19:24 +0000 | [diff] [blame] | 223 | inputs = [ extinst_vendor_grammar ] |
| 224 | outputs = [ extinst_file ] |
Dan Sinclair | a114e1f | 2018-07-17 13:53:15 -0400 | [diff] [blame] | 225 | } |
| 226 | } |
| 227 | |
| 228 | action("spvtools_generators_inc") { |
| 229 | script = "utils/generate_registry_tables.py" |
| 230 | |
| 231 | # TODO(dsinclair): Make work for chrome |
| 232 | xml_file = "${spirv_headers}/include/spirv/spir-v.xml" |
| 233 | inc_file = "${target_gen_dir}/generators.inc" |
| 234 | |
Corentin Wallez | 77eb2b6 | 2021-03-10 20:19:24 +0000 | [diff] [blame] | 235 | sources = [ xml_file ] |
| 236 | outputs = [ inc_file ] |
Dan Sinclair | a114e1f | 2018-07-17 13:53:15 -0400 | [diff] [blame] | 237 | args = [ |
| 238 | "--xml", |
| 239 | rebase_path(xml_file, root_build_dir), |
| 240 | "--generator", |
| 241 | rebase_path(inc_file, root_build_dir), |
| 242 | ] |
| 243 | } |
| 244 | |
dan sinclair | 1bdade7 | 2018-08-15 15:26:28 -0400 | [diff] [blame] | 245 | action("spvtools_build_version") { |
| 246 | script = "utils/update_build_version.py" |
| 247 | |
| 248 | src_dir = "." |
| 249 | inc_file = "${target_gen_dir}/build-version.inc" |
| 250 | |
Corentin Wallez | 77eb2b6 | 2021-03-10 20:19:24 +0000 | [diff] [blame] | 251 | outputs = [ inc_file ] |
dan sinclair | 1bdade7 | 2018-08-15 15:26:28 -0400 | [diff] [blame] | 252 | args = [ |
| 253 | rebase_path(src_dir, root_build_dir), |
| 254 | rebase_path(inc_file, root_build_dir), |
| 255 | ] |
| 256 | } |
| 257 | |
Dan Sinclair | a114e1f | 2018-07-17 13:53:15 -0400 | [diff] [blame] | 258 | spvtools_core_tables("unified1") { |
| 259 | version = "unified1" |
| 260 | } |
| 261 | spvtools_core_enums("unified1") { |
| 262 | version = "unified1" |
| 263 | } |
| 264 | spvtools_glsl_tables("glsl1-0") { |
| 265 | version = "1.0" |
| 266 | } |
| 267 | spvtools_opencl_tables("opencl1-0") { |
| 268 | version = "1.0" |
| 269 | } |
David Neto | 64f36ea | 2019-12-19 17:16:26 -0500 | [diff] [blame] | 270 | spvtools_language_header("debuginfo") { |
Dan Sinclair | a114e1f | 2018-07-17 13:53:15 -0400 | [diff] [blame] | 271 | name = "DebugInfo" |
Corentin Wallez | 77eb2b6 | 2021-03-10 20:19:24 +0000 | [diff] [blame] | 272 | grammar_file = |
| 273 | "${spirv_headers}/include/spirv/unified1/extinst.debuginfo.grammar.json" |
David Neto | 64f36ea | 2019-12-19 17:16:26 -0500 | [diff] [blame] | 274 | } |
| 275 | spvtools_language_header("cldebuginfo100") { |
| 276 | name = "OpenCLDebugInfo100" |
alan-baker | 5030045 | 2020-07-30 12:08:53 -0400 | [diff] [blame] | 277 | grammar_file = "${spirv_headers}/include/spirv/unified1/extinst.opencl.debuginfo.100.grammar.json" |
Dan Sinclair | a114e1f | 2018-07-17 13:53:15 -0400 | [diff] [blame] | 278 | } |
Greg Fischer | 3b6abf4 | 2021-07-12 03:51:08 -0600 | [diff] [blame] | 279 | spvtools_language_header("vkdebuginfo100") { |
Greg Fischer | 1454c95 | 2021-09-15 12:38:53 -0600 | [diff] [blame] | 280 | name = "NonSemanticShaderDebugInfo100" |
| 281 | grammar_file = "${spirv_headers}/include/spirv/unified1/extinst.nonsemantic.shader.debuginfo.100.grammar.json" |
Greg Fischer | 3b6abf4 | 2021-07-12 03:51:08 -0600 | [diff] [blame] | 282 | } |
Dan Sinclair | a114e1f | 2018-07-17 13:53:15 -0400 | [diff] [blame] | 283 | |
| 284 | spvtools_vendor_tables = [ |
Corentin Wallez | 77eb2b6 | 2021-03-10 20:19:24 +0000 | [diff] [blame] | 285 | [ |
| 286 | "spv-amd-shader-explicit-vertex-parameter", |
| 287 | "...nil...", |
| 288 | ], |
| 289 | [ |
| 290 | "spv-amd-shader-trinary-minmax", |
| 291 | "...nil...", |
| 292 | ], |
| 293 | [ |
| 294 | "spv-amd-gcn-shader", |
| 295 | "...nil...", |
| 296 | ], |
| 297 | [ |
| 298 | "spv-amd-shader-ballot", |
| 299 | "...nil...", |
| 300 | ], |
| 301 | [ |
| 302 | "debuginfo", |
| 303 | "...nil...", |
| 304 | ], |
| 305 | [ |
| 306 | "opencl.debuginfo.100", |
| 307 | "CLDEBUG100_", |
| 308 | ], |
| 309 | [ |
| 310 | "nonsemantic.clspvreflection", |
| 311 | "...nil...", |
| 312 | ], |
Jamie Madill | 134d763 | 2021-09-23 10:18:06 -0400 | [diff] [blame] | 313 | [ |
| 314 | "nonsemantic.shader.debuginfo.100", |
| 315 | "SHDEBUG100_", |
| 316 | ], |
Dan Sinclair | a114e1f | 2018-07-17 13:53:15 -0400 | [diff] [blame] | 317 | ] |
| 318 | |
David Neto | 64f36ea | 2019-12-19 17:16:26 -0500 | [diff] [blame] | 319 | foreach(table_def, spvtools_vendor_tables) { |
David Neto | fb2e819 | 2020-01-08 17:27:38 -0500 | [diff] [blame] | 320 | spvtools_vendor_table(table_def[0]) { |
David Neto | 64f36ea | 2019-12-19 17:16:26 -0500 | [diff] [blame] | 321 | name = table_def[0] |
| 322 | operand_kind_prefix = table_def[1] |
Dan Sinclair | a114e1f | 2018-07-17 13:53:15 -0400 | [diff] [blame] | 323 | } |
| 324 | } |
| 325 | |
Corentin Wallez | 21bcb9d | 2018-09-06 10:50:27 -0400 | [diff] [blame] | 326 | config("spvtools_public_config") { |
| 327 | include_dirs = [ "include" ] |
| 328 | } |
| 329 | |
Corentin Wallez | b2db20a | 2021-07-25 19:23:16 +0200 | [diff] [blame] | 330 | config("spvtools_include_gen_dirs") { |
| 331 | include_dirs = [ "$target_gen_dir" ] |
| 332 | } |
| 333 | |
Corentin Wallez | 21bcb9d | 2018-09-06 10:50:27 -0400 | [diff] [blame] | 334 | config("spvtools_internal_config") { |
Dan Sinclair | a114e1f | 2018-07-17 13:53:15 -0400 | [diff] [blame] | 335 | include_dirs = [ |
| 336 | ".", |
Dan Sinclair | a114e1f | 2018-07-17 13:53:15 -0400 | [diff] [blame] | 337 | "${spirv_headers}/include", |
| 338 | ] |
| 339 | |
Corentin Wallez | b2db20a | 2021-07-25 19:23:16 +0200 | [diff] [blame] | 340 | configs = [ |
| 341 | ":spvtools_public_config", |
| 342 | ":spvtools_include_gen_dirs", |
| 343 | ] |
Corentin Wallez | 21bcb9d | 2018-09-06 10:50:27 -0400 | [diff] [blame] | 344 | |
Corentin Wallez | 77eb2b6 | 2021-03-10 20:19:24 +0000 | [diff] [blame] | 345 | cflags = [] |
Dan Sinclair | a114e1f | 2018-07-17 13:53:15 -0400 | [diff] [blame] | 346 | if (is_clang) { |
Corentin Wallez | 77eb2b6 | 2021-03-10 20:19:24 +0000 | [diff] [blame] | 347 | cflags += [ |
David Turner | 36c1c0e | 2019-09-17 21:57:15 +0200 | [diff] [blame] | 348 | "-Wno-implicit-fallthrough", |
| 349 | "-Wno-newline-eof", |
Jamie Madill | 926ff6d | 2021-08-18 08:53:21 -0400 | [diff] [blame] | 350 | "-Wno-unreachable-code-break", |
| 351 | "-Wno-unreachable-code-return", |
David Turner | 36c1c0e | 2019-09-17 21:57:15 +0200 | [diff] [blame] | 352 | ] |
Corentin Wallez | 77eb2b6 | 2021-03-10 20:19:24 +0000 | [diff] [blame] | 353 | } else if (!is_win) { |
| 354 | # Work around a false-positive on a Skia GCC 10 builder. |
Corentin Wallez | 5d8c403 | 2021-03-11 10:08:33 +0000 | [diff] [blame] | 355 | cflags += [ "-Wno-format-truncation" ] |
Dan Sinclair | a114e1f | 2018-07-17 13:53:15 -0400 | [diff] [blame] | 356 | } |
| 357 | } |
| 358 | |
Corentin Wallez | 21bcb9d | 2018-09-06 10:50:27 -0400 | [diff] [blame] | 359 | source_set("spvtools_headers") { |
| 360 | sources = [ |
David Turner | 5081512 | 2019-07-10 22:37:10 +0200 | [diff] [blame] | 361 | "include/spirv-tools/instrument.hpp", |
Corentin Wallez | 21bcb9d | 2018-09-06 10:50:27 -0400 | [diff] [blame] | 362 | "include/spirv-tools/libspirv.h", |
| 363 | "include/spirv-tools/libspirv.hpp", |
| 364 | "include/spirv-tools/linker.hpp", |
| 365 | "include/spirv-tools/optimizer.hpp", |
| 366 | ] |
| 367 | |
| 368 | public_configs = [ ":spvtools_public_config" ] |
| 369 | } |
| 370 | |
Corentin Wallez | b2db20a | 2021-07-25 19:23:16 +0200 | [diff] [blame] | 371 | group("spvtools_language_headers") { |
| 372 | public_deps = [ |
| 373 | ":spvtools_language_header_cldebuginfo100", |
| 374 | ":spvtools_language_header_debuginfo", |
| 375 | ":spvtools_language_header_vkdebuginfo100", |
| 376 | ] |
| 377 | } |
| 378 | |
Dan Sinclair | a114e1f | 2018-07-17 13:53:15 -0400 | [diff] [blame] | 379 | static_library("spvtools") { |
| 380 | deps = [ |
Dan Sinclair | a114e1f | 2018-07-17 13:53:15 -0400 | [diff] [blame] | 381 | ":spvtools_core_tables_unified1", |
| 382 | ":spvtools_generators_inc", |
| 383 | ":spvtools_glsl_tables_glsl1-0", |
David Neto | 64f36ea | 2019-12-19 17:16:26 -0500 | [diff] [blame] | 384 | ":spvtools_language_header_cldebuginfo100", |
Corentin Wallez | 77eb2b6 | 2021-03-10 20:19:24 +0000 | [diff] [blame] | 385 | ":spvtools_language_header_debuginfo", |
Jamie Madill | 2685c9a | 2021-07-15 12:56:13 -0400 | [diff] [blame] | 386 | ":spvtools_language_header_vkdebuginfo100", |
Dan Sinclair | a114e1f | 2018-07-17 13:53:15 -0400 | [diff] [blame] | 387 | ":spvtools_opencl_tables_opencl1-0", |
| 388 | ] |
David Neto | 64f36ea | 2019-12-19 17:16:26 -0500 | [diff] [blame] | 389 | foreach(table_def, spvtools_vendor_tables) { |
| 390 | target_name = table_def[0] |
Dan Sinclair | a114e1f | 2018-07-17 13:53:15 -0400 | [diff] [blame] | 391 | deps += [ ":spvtools_vendor_tables_$target_name" ] |
| 392 | } |
| 393 | |
| 394 | sources = [ |
| 395 | "source/assembly_grammar.cpp", |
| 396 | "source/assembly_grammar.h", |
| 397 | "source/binary.cpp", |
| 398 | "source/binary.h", |
Jamie Madill | e0d5544 | 2019-11-04 21:01:57 -0500 | [diff] [blame] | 399 | "source/cfa.h", |
Greg Fischer | 8966cc2 | 2021-07-16 14:28:14 -0600 | [diff] [blame] | 400 | "source/common_debug_info.h", |
Dan Sinclair | a114e1f | 2018-07-17 13:53:15 -0400 | [diff] [blame] | 401 | "source/diagnostic.cpp", |
| 402 | "source/diagnostic.h", |
| 403 | "source/disassemble.cpp", |
Jamie Madill | e0d5544 | 2019-11-04 21:01:57 -0500 | [diff] [blame] | 404 | "source/disassemble.h", |
Dan Sinclair | a114e1f | 2018-07-17 13:53:15 -0400 | [diff] [blame] | 405 | "source/enum_set.h", |
| 406 | "source/enum_string_mapping.cpp", |
Jamie Madill | e0d5544 | 2019-11-04 21:01:57 -0500 | [diff] [blame] | 407 | "source/enum_string_mapping.h", |
Dan Sinclair | a114e1f | 2018-07-17 13:53:15 -0400 | [diff] [blame] | 408 | "source/ext_inst.cpp", |
| 409 | "source/ext_inst.h", |
| 410 | "source/extensions.cpp", |
| 411 | "source/extensions.h", |
| 412 | "source/instruction.h", |
Jamie Madill | e0d5544 | 2019-11-04 21:01:57 -0500 | [diff] [blame] | 413 | "source/latest_version_glsl_std_450_header.h", |
| 414 | "source/latest_version_opencl_std_header.h", |
| 415 | "source/latest_version_spirv_header.h", |
Dan Sinclair | a114e1f | 2018-07-17 13:53:15 -0400 | [diff] [blame] | 416 | "source/libspirv.cpp", |
| 417 | "source/macro.h", |
Dan Sinclair | a114e1f | 2018-07-17 13:53:15 -0400 | [diff] [blame] | 418 | "source/name_mapper.cpp", |
| 419 | "source/name_mapper.h", |
| 420 | "source/opcode.cpp", |
| 421 | "source/opcode.h", |
| 422 | "source/operand.cpp", |
| 423 | "source/operand.h", |
| 424 | "source/parsed_operand.cpp", |
| 425 | "source/parsed_operand.h", |
| 426 | "source/print.cpp", |
| 427 | "source/print.h", |
| 428 | "source/spirv_constant.h", |
| 429 | "source/spirv_definition.h", |
| 430 | "source/spirv_endian.cpp", |
| 431 | "source/spirv_endian.h", |
Alastair Donaldson | 2299b71 | 2021-07-13 19:45:01 +0100 | [diff] [blame] | 432 | "source/spirv_fuzzer_options.cpp", |
| 433 | "source/spirv_fuzzer_options.h", |
dan sinclair | 324be76 | 2018-09-11 09:34:42 -0400 | [diff] [blame] | 434 | "source/spirv_optimizer_options.cpp", |
| 435 | "source/spirv_optimizer_options.h", |
Alastair Donaldson | 2299b71 | 2021-07-13 19:45:01 +0100 | [diff] [blame] | 436 | "source/spirv_reducer_options.cpp", |
| 437 | "source/spirv_reducer_options.h", |
Dan Sinclair | a114e1f | 2018-07-17 13:53:15 -0400 | [diff] [blame] | 438 | "source/spirv_target_env.cpp", |
| 439 | "source/spirv_target_env.h", |
| 440 | "source/spirv_validator_options.cpp", |
| 441 | "source/spirv_validator_options.h", |
| 442 | "source/table.cpp", |
| 443 | "source/table.h", |
| 444 | "source/text.cpp", |
| 445 | "source/text.h", |
| 446 | "source/text_handler.cpp", |
| 447 | "source/text_handler.h", |
Dan Sinclair | a114e1f | 2018-07-17 13:53:15 -0400 | [diff] [blame] | 448 | "source/util/bit_vector.cpp", |
| 449 | "source/util/bit_vector.h", |
| 450 | "source/util/bitutils.h", |
| 451 | "source/util/hex_float.h", |
Dan Sinclair | a114e1f | 2018-07-17 13:53:15 -0400 | [diff] [blame] | 452 | "source/util/ilist.h", |
| 453 | "source/util/ilist_node.h", |
dan sinclair | 1553025 | 2018-08-14 12:44:54 -0400 | [diff] [blame] | 454 | "source/util/make_unique.h", |
Dan Sinclair | a114e1f | 2018-07-17 13:53:15 -0400 | [diff] [blame] | 455 | "source/util/parse_number.cpp", |
| 456 | "source/util/parse_number.h", |
| 457 | "source/util/small_vector.h", |
| 458 | "source/util/string_utils.cpp", |
| 459 | "source/util/string_utils.h", |
| 460 | "source/util/timer.cpp", |
| 461 | "source/util/timer.h", |
| 462 | ] |
| 463 | |
Corentin Wallez | 21bcb9d | 2018-09-06 10:50:27 -0400 | [diff] [blame] | 464 | public_deps = [ |
Takuto Ikuta | 0187c19 | 2019-02-14 00:24:06 +0900 | [diff] [blame] | 465 | ":spvtools_core_enums_unified1", |
Corentin Wallez | 21bcb9d | 2018-09-06 10:50:27 -0400 | [diff] [blame] | 466 | ":spvtools_headers", |
Shahbaz Youssefi | b97057e | 2020-01-23 13:40:13 -0500 | [diff] [blame] | 467 | "${spirv_headers}:spv_headers", |
Corentin Wallez | 21bcb9d | 2018-09-06 10:50:27 -0400 | [diff] [blame] | 468 | ] |
| 469 | |
David Turner | a6bfc26 | 2019-07-03 22:26:06 +0200 | [diff] [blame] | 470 | if (build_with_chromium) { |
| 471 | configs -= [ "//build/config/compiler:chromium_code" ] |
| 472 | configs += [ "//build/config/compiler:no_chromium_code" ] |
| 473 | } |
David Turner | 5081512 | 2019-07-10 22:37:10 +0200 | [diff] [blame] | 474 | configs += [ ":spvtools_internal_config" ] |
Dan Sinclair | a114e1f | 2018-07-17 13:53:15 -0400 | [diff] [blame] | 475 | } |
| 476 | |
| 477 | static_library("spvtools_val") { |
| 478 | sources = [ |
| 479 | "source/val/basic_block.cpp", |
Jamie Madill | e0d5544 | 2019-11-04 21:01:57 -0500 | [diff] [blame] | 480 | "source/val/basic_block.h", |
Dan Sinclair | a114e1f | 2018-07-17 13:53:15 -0400 | [diff] [blame] | 481 | "source/val/construct.cpp", |
Jamie Madill | e0d5544 | 2019-11-04 21:01:57 -0500 | [diff] [blame] | 482 | "source/val/construct.h", |
| 483 | "source/val/decoration.h", |
Dan Sinclair | a114e1f | 2018-07-17 13:53:15 -0400 | [diff] [blame] | 484 | "source/val/function.cpp", |
Jamie Madill | e0d5544 | 2019-11-04 21:01:57 -0500 | [diff] [blame] | 485 | "source/val/function.h", |
Dan Sinclair | a114e1f | 2018-07-17 13:53:15 -0400 | [diff] [blame] | 486 | "source/val/instruction.cpp", |
| 487 | "source/val/validate.cpp", |
| 488 | "source/val/validate.h", |
| 489 | "source/val/validate_adjacency.cpp", |
Alan Baker | 7d4b046 | 2018-08-08 14:21:27 -0400 | [diff] [blame] | 490 | "source/val/validate_annotation.cpp", |
Dan Sinclair | a114e1f | 2018-07-17 13:53:15 -0400 | [diff] [blame] | 491 | "source/val/validate_arithmetics.cpp", |
| 492 | "source/val/validate_atomics.cpp", |
| 493 | "source/val/validate_barriers.cpp", |
| 494 | "source/val/validate_bitwise.cpp", |
| 495 | "source/val/validate_builtins.cpp", |
| 496 | "source/val/validate_capability.cpp", |
| 497 | "source/val/validate_cfg.cpp", |
| 498 | "source/val/validate_composites.cpp", |
Alan Baker | c5b3806 | 2018-08-17 11:20:55 -0400 | [diff] [blame] | 499 | "source/val/validate_constants.cpp", |
Dan Sinclair | a114e1f | 2018-07-17 13:53:15 -0400 | [diff] [blame] | 500 | "source/val/validate_conversion.cpp", |
Alan Baker | ca7278c | 2018-08-08 13:47:09 -0400 | [diff] [blame] | 501 | "source/val/validate_debug.cpp", |
Dan Sinclair | a114e1f | 2018-07-17 13:53:15 -0400 | [diff] [blame] | 502 | "source/val/validate_decorations.cpp", |
| 503 | "source/val/validate_derivatives.cpp", |
Alan Baker | e7fdcdb | 2018-08-10 09:53:17 -0400 | [diff] [blame] | 504 | "source/val/validate_execution_limitations.cpp", |
dan sinclair | 703305b | 2018-11-28 09:17:13 -0500 | [diff] [blame] | 505 | "source/val/validate_extensions.cpp", |
Alan Baker | e7fdcdb | 2018-08-10 09:53:17 -0400 | [diff] [blame] | 506 | "source/val/validate_function.cpp", |
Dan Sinclair | a114e1f | 2018-07-17 13:53:15 -0400 | [diff] [blame] | 507 | "source/val/validate_id.cpp", |
| 508 | "source/val/validate_image.cpp", |
| 509 | "source/val/validate_instruction.cpp", |
| 510 | "source/val/validate_interfaces.cpp", |
| 511 | "source/val/validate_layout.cpp", |
| 512 | "source/val/validate_literals.cpp", |
| 513 | "source/val/validate_logicals.cpp", |
Alan Baker | d49bedc | 2018-08-01 14:44:56 -0400 | [diff] [blame] | 514 | "source/val/validate_memory.cpp", |
Ryan Harrison | cf37ab7 | 2018-12-06 14:38:15 -0500 | [diff] [blame] | 515 | "source/val/validate_memory_semantics.cpp", |
Jamie Madill | e0d5544 | 2019-11-04 21:01:57 -0500 | [diff] [blame] | 516 | "source/val/validate_memory_semantics.h", |
Jeff Bolz | 2c0111e | 2019-06-03 09:55:07 -0500 | [diff] [blame] | 517 | "source/val/validate_misc.cpp", |
Alan Baker | 714bf84 | 2018-08-08 14:49:59 -0400 | [diff] [blame] | 518 | "source/val/validate_mode_setting.cpp", |
Dan Sinclair | a114e1f | 2018-07-17 13:53:15 -0400 | [diff] [blame] | 519 | "source/val/validate_non_uniform.cpp", |
| 520 | "source/val/validate_primitives.cpp", |
Ryan Harrison | 8ce3dba | 2018-11-29 13:48:42 -0500 | [diff] [blame] | 521 | "source/val/validate_scopes.cpp", |
Jamie Madill | e0d5544 | 2019-11-04 21:01:57 -0500 | [diff] [blame] | 522 | "source/val/validate_scopes.h", |
alan-baker | 1a2de48 | 2019-07-11 13:05:14 -0400 | [diff] [blame] | 523 | "source/val/validate_small_type_uses.cpp", |
Alan Baker | f2a9900 | 2018-08-03 11:38:51 -0400 | [diff] [blame] | 524 | "source/val/validate_type.cpp", |
Dan Sinclair | a114e1f | 2018-07-17 13:53:15 -0400 | [diff] [blame] | 525 | "source/val/validation_state.cpp", |
Jamie Madill | e0d5544 | 2019-11-04 21:01:57 -0500 | [diff] [blame] | 526 | "source/val/validation_state.h", |
Dan Sinclair | a114e1f | 2018-07-17 13:53:15 -0400 | [diff] [blame] | 527 | ] |
| 528 | |
| 529 | deps = [ |
| 530 | ":spvtools", |
Shahbaz Youssefi | 1b34410 | 2020-01-24 17:14:16 -0500 | [diff] [blame] | 531 | ":spvtools_language_header_cldebuginfo100", |
| 532 | ":spvtools_language_header_debuginfo", |
Jamie Madill | 2685c9a | 2021-07-15 12:56:13 -0400 | [diff] [blame] | 533 | ":spvtools_language_header_vkdebuginfo100", |
Dan Sinclair | a114e1f | 2018-07-17 13:53:15 -0400 | [diff] [blame] | 534 | ] |
Corentin Wallez | 77eb2b6 | 2021-03-10 20:19:24 +0000 | [diff] [blame] | 535 | public_deps = [ ":spvtools_headers" ] |
Dan Sinclair | a114e1f | 2018-07-17 13:53:15 -0400 | [diff] [blame] | 536 | |
David Turner | a6bfc26 | 2019-07-03 22:26:06 +0200 | [diff] [blame] | 537 | if (build_with_chromium) { |
| 538 | configs -= [ "//build/config/compiler:chromium_code" ] |
| 539 | configs += [ "//build/config/compiler:no_chromium_code" ] |
| 540 | } |
David Turner | 5081512 | 2019-07-10 22:37:10 +0200 | [diff] [blame] | 541 | configs += [ ":spvtools_internal_config" ] |
Dan Sinclair | a114e1f | 2018-07-17 13:53:15 -0400 | [diff] [blame] | 542 | } |
| 543 | |
| 544 | static_library("spvtools_opt") { |
| 545 | sources = [ |
| 546 | "source/opt/aggressive_dead_code_elim_pass.cpp", |
| 547 | "source/opt/aggressive_dead_code_elim_pass.h", |
Steven Perron | 35d98be | 2019-08-29 12:48:17 -0400 | [diff] [blame] | 548 | "source/opt/amd_ext_to_khr.cpp", |
| 549 | "source/opt/amd_ext_to_khr.h", |
Dan Sinclair | a114e1f | 2018-07-17 13:53:15 -0400 | [diff] [blame] | 550 | "source/opt/basic_block.cpp", |
| 551 | "source/opt/basic_block.h", |
| 552 | "source/opt/block_merge_pass.cpp", |
| 553 | "source/opt/block_merge_pass.h", |
David Neto | cf78346 | 2019-01-28 18:42:35 -0800 | [diff] [blame] | 554 | "source/opt/block_merge_util.cpp", |
| 555 | "source/opt/block_merge_util.h", |
Dan Sinclair | a114e1f | 2018-07-17 13:53:15 -0400 | [diff] [blame] | 556 | "source/opt/build_module.cpp", |
| 557 | "source/opt/build_module.h", |
| 558 | "source/opt/ccp_pass.cpp", |
| 559 | "source/opt/ccp_pass.h", |
| 560 | "source/opt/cfg.cpp", |
| 561 | "source/opt/cfg.h", |
| 562 | "source/opt/cfg_cleanup_pass.cpp", |
| 563 | "source/opt/cfg_cleanup_pass.h", |
Steven Perron | dd4157d | 2019-01-17 15:56:36 -0500 | [diff] [blame] | 564 | "source/opt/code_sink.cpp", |
| 565 | "source/opt/code_sink.h", |
dan sinclair | de9496e | 2018-08-02 14:36:43 -0400 | [diff] [blame] | 566 | "source/opt/combine_access_chains.cpp", |
| 567 | "source/opt/combine_access_chains.h", |
Dan Sinclair | a114e1f | 2018-07-17 13:53:15 -0400 | [diff] [blame] | 568 | "source/opt/compact_ids_pass.cpp", |
| 569 | "source/opt/compact_ids_pass.h", |
| 570 | "source/opt/composite.cpp", |
| 571 | "source/opt/composite.h", |
| 572 | "source/opt/const_folding_rules.cpp", |
| 573 | "source/opt/const_folding_rules.h", |
| 574 | "source/opt/constants.cpp", |
| 575 | "source/opt/constants.h", |
dong-ja | 7dadcf9 | 2021-07-28 11:44:32 -0500 | [diff] [blame] | 576 | "source/opt/control_dependence.cpp", |
| 577 | "source/opt/control_dependence.h", |
greg-lunarg | d11725b | 2019-09-03 11:22:13 -0600 | [diff] [blame] | 578 | "source/opt/convert_to_half_pass.cpp", |
| 579 | "source/opt/convert_to_half_pass.h", |
Jamie Madill | 134d763 | 2021-09-23 10:18:06 -0400 | [diff] [blame] | 580 | "source/opt/convert_to_sampled_image_pass.cpp", |
| 581 | "source/opt/convert_to_sampled_image_pass.h", |
Dan Sinclair | a114e1f | 2018-07-17 13:53:15 -0400 | [diff] [blame] | 582 | "source/opt/copy_prop_arrays.cpp", |
| 583 | "source/opt/copy_prop_arrays.h", |
dong-ja | c4c6f2b | 2021-08-09 15:43:36 -0500 | [diff] [blame] | 584 | "source/opt/dataflow.cpp", |
Jamie Madill | 134d763 | 2021-09-23 10:18:06 -0400 | [diff] [blame] | 585 | "source/opt/dataflow.h", |
Dan Sinclair | a114e1f | 2018-07-17 13:53:15 -0400 | [diff] [blame] | 586 | "source/opt/dead_branch_elim_pass.cpp", |
| 587 | "source/opt/dead_branch_elim_pass.h", |
| 588 | "source/opt/dead_insert_elim_pass.cpp", |
| 589 | "source/opt/dead_insert_elim_pass.h", |
| 590 | "source/opt/dead_variable_elimination.cpp", |
| 591 | "source/opt/dead_variable_elimination.h", |
Jaebaek Seo | 4226874 | 2020-04-27 15:18:55 -0400 | [diff] [blame] | 592 | "source/opt/debug_info_manager.cpp", |
| 593 | "source/opt/debug_info_manager.h", |
Corentin Wallez | 77eb2b6 | 2021-03-10 20:19:24 +0000 | [diff] [blame] | 594 | "source/opt/decoration_manager.cpp", |
| 595 | "source/opt/decoration_manager.h", |
Dan Sinclair | a114e1f | 2018-07-17 13:53:15 -0400 | [diff] [blame] | 596 | "source/opt/def_use_manager.cpp", |
| 597 | "source/opt/def_use_manager.h", |
Steven Perron | 4b64beb | 2019-08-08 10:53:19 -0400 | [diff] [blame] | 598 | "source/opt/desc_sroa.cpp", |
| 599 | "source/opt/desc_sroa.h", |
Jaebaek Seo | d997c83 | 2021-10-26 17:20:58 -0400 | [diff] [blame] | 600 | "source/opt/desc_sroa_util.cpp", |
| 601 | "source/opt/desc_sroa_util.h", |
Dan Sinclair | a114e1f | 2018-07-17 13:53:15 -0400 | [diff] [blame] | 602 | "source/opt/dominator_analysis.cpp", |
| 603 | "source/opt/dominator_analysis.h", |
| 604 | "source/opt/dominator_tree.cpp", |
| 605 | "source/opt/dominator_tree.h", |
| 606 | "source/opt/eliminate_dead_constant_pass.cpp", |
| 607 | "source/opt/eliminate_dead_constant_pass.h", |
| 608 | "source/opt/eliminate_dead_functions_pass.cpp", |
| 609 | "source/opt/eliminate_dead_functions_pass.h", |
Alastair Donaldson | 34c5ac6 | 2019-02-08 16:20:29 +0000 | [diff] [blame] | 610 | "source/opt/eliminate_dead_functions_util.cpp", |
| 611 | "source/opt/eliminate_dead_functions_util.h", |
Steven Perron | 1b0047f | 2019-02-14 13:42:35 -0500 | [diff] [blame] | 612 | "source/opt/eliminate_dead_members_pass.cpp", |
| 613 | "source/opt/eliminate_dead_members_pass.h", |
Jaebaek Seo | f7da527 | 2020-10-30 18:03:56 -0400 | [diff] [blame] | 614 | "source/opt/empty_pass.h", |
Dan Sinclair | a114e1f | 2018-07-17 13:53:15 -0400 | [diff] [blame] | 615 | "source/opt/feature_manager.cpp", |
| 616 | "source/opt/feature_manager.h", |
Steven Perron | 3a0bc9e | 2019-04-05 13:12:08 -0400 | [diff] [blame] | 617 | "source/opt/fix_storage_class.cpp", |
| 618 | "source/opt/fix_storage_class.h", |
Dan Sinclair | a114e1f | 2018-07-17 13:53:15 -0400 | [diff] [blame] | 619 | "source/opt/flatten_decoration_pass.cpp", |
| 620 | "source/opt/flatten_decoration_pass.h", |
| 621 | "source/opt/fold.cpp", |
| 622 | "source/opt/fold.h", |
| 623 | "source/opt/fold_spec_constant_op_and_composite_pass.cpp", |
| 624 | "source/opt/fold_spec_constant_op_and_composite_pass.h", |
| 625 | "source/opt/folding_rules.cpp", |
| 626 | "source/opt/folding_rules.h", |
| 627 | "source/opt/freeze_spec_constant_value_pass.cpp", |
| 628 | "source/opt/freeze_spec_constant_value_pass.h", |
| 629 | "source/opt/function.cpp", |
| 630 | "source/opt/function.h", |
David Neto | 3159010 | 2019-07-30 19:52:46 -0400 | [diff] [blame] | 631 | "source/opt/graphics_robust_access_pass.cpp", |
| 632 | "source/opt/graphics_robust_access_pass.h", |
Dan Sinclair | a114e1f | 2018-07-17 13:53:15 -0400 | [diff] [blame] | 633 | "source/opt/if_conversion.cpp", |
| 634 | "source/opt/if_conversion.h", |
| 635 | "source/opt/inline_exhaustive_pass.cpp", |
| 636 | "source/opt/inline_exhaustive_pass.h", |
| 637 | "source/opt/inline_opaque_pass.cpp", |
| 638 | "source/opt/inline_opaque_pass.h", |
| 639 | "source/opt/inline_pass.cpp", |
| 640 | "source/opt/inline_pass.h", |
greg-lunarg | 1e9fc1a | 2018-11-08 11:54:54 -0700 | [diff] [blame] | 641 | "source/opt/inst_bindless_check_pass.cpp", |
| 642 | "source/opt/inst_bindless_check_pass.h", |
greg-lunarg | 0640725 | 2019-08-16 07:18:34 -0600 | [diff] [blame] | 643 | "source/opt/inst_buff_addr_check_pass.cpp", |
| 644 | "source/opt/inst_buff_addr_check_pass.h", |
greg-lunarg | 1fe9bcc | 2020-03-12 07:19:52 -0600 | [diff] [blame] | 645 | "source/opt/inst_debug_printf_pass.cpp", |
| 646 | "source/opt/inst_debug_printf_pass.h", |
Dan Sinclair | a114e1f | 2018-07-17 13:53:15 -0400 | [diff] [blame] | 647 | "source/opt/instruction.cpp", |
| 648 | "source/opt/instruction.h", |
| 649 | "source/opt/instruction_list.cpp", |
| 650 | "source/opt/instruction_list.h", |
greg-lunarg | 1e9fc1a | 2018-11-08 11:54:54 -0700 | [diff] [blame] | 651 | "source/opt/instrument_pass.cpp", |
| 652 | "source/opt/instrument_pass.h", |
Greg Fischer | 48007a5 | 2021-03-31 12:26:36 -0600 | [diff] [blame] | 653 | "source/opt/interp_fixup_pass.cpp", |
| 654 | "source/opt/interp_fixup_pass.h", |
Dan Sinclair | a114e1f | 2018-07-17 13:53:15 -0400 | [diff] [blame] | 655 | "source/opt/ir_builder.h", |
| 656 | "source/opt/ir_context.cpp", |
| 657 | "source/opt/ir_context.h", |
| 658 | "source/opt/ir_loader.cpp", |
| 659 | "source/opt/ir_loader.h", |
| 660 | "source/opt/iterator.h", |
| 661 | "source/opt/licm_pass.cpp", |
| 662 | "source/opt/licm_pass.h", |
| 663 | "source/opt/local_access_chain_convert_pass.cpp", |
| 664 | "source/opt/local_access_chain_convert_pass.h", |
| 665 | "source/opt/local_redundancy_elimination.cpp", |
| 666 | "source/opt/local_redundancy_elimination.h", |
| 667 | "source/opt/local_single_block_elim_pass.cpp", |
| 668 | "source/opt/local_single_block_elim_pass.h", |
| 669 | "source/opt/local_single_store_elim_pass.cpp", |
| 670 | "source/opt/local_single_store_elim_pass.h", |
Dan Sinclair | a114e1f | 2018-07-17 13:53:15 -0400 | [diff] [blame] | 671 | "source/opt/log.h", |
| 672 | "source/opt/loop_dependence.cpp", |
| 673 | "source/opt/loop_dependence.h", |
| 674 | "source/opt/loop_dependence_helpers.cpp", |
| 675 | "source/opt/loop_descriptor.cpp", |
| 676 | "source/opt/loop_descriptor.h", |
| 677 | "source/opt/loop_fission.cpp", |
| 678 | "source/opt/loop_fission.h", |
| 679 | "source/opt/loop_fusion.cpp", |
| 680 | "source/opt/loop_fusion.h", |
| 681 | "source/opt/loop_fusion_pass.cpp", |
| 682 | "source/opt/loop_fusion_pass.h", |
| 683 | "source/opt/loop_peeling.cpp", |
| 684 | "source/opt/loop_peeling.h", |
| 685 | "source/opt/loop_unroller.cpp", |
| 686 | "source/opt/loop_unroller.h", |
| 687 | "source/opt/loop_unswitch_pass.cpp", |
| 688 | "source/opt/loop_unswitch_pass.h", |
| 689 | "source/opt/loop_utils.cpp", |
| 690 | "source/opt/loop_utils.h", |
Dan Sinclair | a114e1f | 2018-07-17 13:53:15 -0400 | [diff] [blame] | 691 | "source/opt/mem_pass.cpp", |
| 692 | "source/opt/mem_pass.h", |
| 693 | "source/opt/merge_return_pass.cpp", |
| 694 | "source/opt/merge_return_pass.h", |
| 695 | "source/opt/module.cpp", |
| 696 | "source/opt/module.h", |
| 697 | "source/opt/null_pass.h", |
| 698 | "source/opt/optimizer.cpp", |
| 699 | "source/opt/pass.cpp", |
| 700 | "source/opt/pass.h", |
| 701 | "source/opt/pass_manager.cpp", |
| 702 | "source/opt/pass_manager.h", |
| 703 | "source/opt/passes.h", |
| 704 | "source/opt/private_to_local_pass.cpp", |
| 705 | "source/opt/private_to_local_pass.h", |
| 706 | "source/opt/propagator.cpp", |
| 707 | "source/opt/propagator.h", |
| 708 | "source/opt/reduce_load_size.cpp", |
| 709 | "source/opt/reduce_load_size.h", |
| 710 | "source/opt/redundancy_elimination.cpp", |
| 711 | "source/opt/redundancy_elimination.h", |
| 712 | "source/opt/reflect.h", |
| 713 | "source/opt/register_pressure.cpp", |
| 714 | "source/opt/register_pressure.h", |
greg-lunarg | d11725b | 2019-09-03 11:22:13 -0600 | [diff] [blame] | 715 | "source/opt/relax_float_ops_pass.cpp", |
| 716 | "source/opt/relax_float_ops_pass.h", |
Dan Sinclair | a114e1f | 2018-07-17 13:53:15 -0400 | [diff] [blame] | 717 | "source/opt/remove_duplicates_pass.cpp", |
| 718 | "source/opt/remove_duplicates_pass.h", |
Steven Perron | a95bc46 | 2021-07-02 10:18:19 -0400 | [diff] [blame] | 719 | "source/opt/remove_unused_interface_variables_pass.cpp", |
| 720 | "source/opt/remove_unused_interface_variables_pass.h", |
Jaebaek Seo | d997c83 | 2021-10-26 17:20:58 -0400 | [diff] [blame] | 721 | "source/opt/replace_desc_array_access_using_var_index.cpp", |
| 722 | "source/opt/replace_desc_array_access_using_var_index.h", |
Dan Sinclair | a114e1f | 2018-07-17 13:53:15 -0400 | [diff] [blame] | 723 | "source/opt/replace_invalid_opc.cpp", |
| 724 | "source/opt/replace_invalid_opc.h", |
| 725 | "source/opt/scalar_analysis.cpp", |
| 726 | "source/opt/scalar_analysis.h", |
| 727 | "source/opt/scalar_analysis_nodes.h", |
| 728 | "source/opt/scalar_analysis_simplification.cpp", |
| 729 | "source/opt/scalar_replacement_pass.cpp", |
| 730 | "source/opt/scalar_replacement_pass.h", |
| 731 | "source/opt/set_spec_constant_default_value_pass.cpp", |
| 732 | "source/opt/set_spec_constant_default_value_pass.h", |
| 733 | "source/opt/simplification_pass.cpp", |
| 734 | "source/opt/simplification_pass.h", |
Jaebaek Seo | fb9a10c | 2022-01-25 13:14:36 -0500 | [diff] [blame] | 735 | "source/opt/spread_volatile_semantics.cpp", |
| 736 | "source/opt/spread_volatile_semantics.h", |
Dan Sinclair | a114e1f | 2018-07-17 13:53:15 -0400 | [diff] [blame] | 737 | "source/opt/ssa_rewrite_pass.cpp", |
| 738 | "source/opt/ssa_rewrite_pass.h", |
| 739 | "source/opt/strength_reduction_pass.cpp", |
| 740 | "source/opt/strength_reduction_pass.h", |
| 741 | "source/opt/strip_debug_info_pass.cpp", |
| 742 | "source/opt/strip_debug_info_pass.h", |
Steven Perron | 354a46a | 2021-12-15 09:55:30 -0500 | [diff] [blame] | 743 | "source/opt/strip_nonsemantic_info_pass.cpp", |
| 744 | "source/opt/strip_nonsemantic_info_pass.h", |
Steven Perron | 5f599e7 | 2018-09-17 13:00:24 -0400 | [diff] [blame] | 745 | "source/opt/struct_cfg_analysis.cpp", |
| 746 | "source/opt/struct_cfg_analysis.h", |
Dan Sinclair | a114e1f | 2018-07-17 13:53:15 -0400 | [diff] [blame] | 747 | "source/opt/tree_iterator.h", |
| 748 | "source/opt/type_manager.cpp", |
| 749 | "source/opt/type_manager.h", |
| 750 | "source/opt/types.cpp", |
| 751 | "source/opt/types.h", |
| 752 | "source/opt/unify_const_pass.cpp", |
| 753 | "source/opt/unify_const_pass.h", |
dan sinclair | 67b2e15 | 2018-12-03 09:11:56 -0500 | [diff] [blame] | 754 | "source/opt/upgrade_memory_model.cpp", |
| 755 | "source/opt/upgrade_memory_model.h", |
Dan Sinclair | a114e1f | 2018-07-17 13:53:15 -0400 | [diff] [blame] | 756 | "source/opt/value_number_table.cpp", |
| 757 | "source/opt/value_number_table.h", |
| 758 | "source/opt/vector_dce.cpp", |
| 759 | "source/opt/vector_dce.h", |
| 760 | "source/opt/workaround1209.cpp", |
| 761 | "source/opt/workaround1209.h", |
Steven Perron | 60043ed | 2019-08-14 09:27:12 -0400 | [diff] [blame] | 762 | "source/opt/wrap_opkill.cpp", |
| 763 | "source/opt/wrap_opkill.h", |
Dan Sinclair | a114e1f | 2018-07-17 13:53:15 -0400 | [diff] [blame] | 764 | ] |
Corentin Wallez | 21bcb9d | 2018-09-06 10:50:27 -0400 | [diff] [blame] | 765 | |
Dan Sinclair | a114e1f | 2018-07-17 13:53:15 -0400 | [diff] [blame] | 766 | deps = [ |
| 767 | ":spvtools", |
Shahbaz Youssefi | 1b34410 | 2020-01-24 17:14:16 -0500 | [diff] [blame] | 768 | ":spvtools_language_header_debuginfo", |
Corentin Wallez | 4ae9b71 | 2019-08-30 15:09:34 +0200 | [diff] [blame] | 769 | ":spvtools_vendor_tables_spv-amd-shader-ballot", |
Dan Sinclair | a114e1f | 2018-07-17 13:53:15 -0400 | [diff] [blame] | 770 | ] |
krockot | 4376a10 | 2021-07-26 11:27:25 -0700 | [diff] [blame] | 771 | public_deps = [ |
| 772 | ":spvtools_headers", |
| 773 | ":spvtools_language_header_cldebuginfo100", |
| 774 | ":spvtools_language_header_vkdebuginfo100", |
| 775 | ] |
Dan Sinclair | a114e1f | 2018-07-17 13:53:15 -0400 | [diff] [blame] | 776 | |
David Turner | a6bfc26 | 2019-07-03 22:26:06 +0200 | [diff] [blame] | 777 | if (build_with_chromium) { |
| 778 | configs -= [ "//build/config/compiler:chromium_code" ] |
| 779 | configs += [ "//build/config/compiler:no_chromium_code" ] |
| 780 | } |
David Turner | 5081512 | 2019-07-10 22:37:10 +0200 | [diff] [blame] | 781 | configs += [ ":spvtools_internal_config" ] |
| 782 | } |
| 783 | |
| 784 | static_library("spvtools_link") { |
Corentin Wallez | 77eb2b6 | 2021-03-10 20:19:24 +0000 | [diff] [blame] | 785 | sources = [ "source/link/linker.cpp" ] |
David Turner | 5081512 | 2019-07-10 22:37:10 +0200 | [diff] [blame] | 786 | deps = [ |
| 787 | ":spvtools", |
Corentin Wallez | 59de04a | 2019-07-12 16:35:59 +0200 | [diff] [blame] | 788 | ":spvtools_opt", |
David Turner | 5081512 | 2019-07-10 22:37:10 +0200 | [diff] [blame] | 789 | ":spvtools_val", |
| 790 | ] |
Corentin Wallez | 77eb2b6 | 2021-03-10 20:19:24 +0000 | [diff] [blame] | 791 | public_deps = [ ":spvtools_headers" ] |
David Turner | 5081512 | 2019-07-10 22:37:10 +0200 | [diff] [blame] | 792 | if (build_with_chromium) { |
| 793 | configs -= [ "//build/config/compiler:chromium_code" ] |
| 794 | configs += [ "//build/config/compiler:no_chromium_code" ] |
| 795 | } |
| 796 | configs += [ ":spvtools_internal_config" ] |
| 797 | } |
| 798 | |
| 799 | static_library("spvtools_reduce") { |
| 800 | sources = [ |
| 801 | "source/reduce/change_operand_reduction_opportunity.cpp", |
| 802 | "source/reduce/change_operand_reduction_opportunity.h", |
| 803 | "source/reduce/change_operand_to_undef_reduction_opportunity.cpp", |
| 804 | "source/reduce/change_operand_to_undef_reduction_opportunity.h", |
| 805 | "source/reduce/conditional_branch_to_simple_conditional_branch_opportunity_finder.cpp", |
| 806 | "source/reduce/conditional_branch_to_simple_conditional_branch_opportunity_finder.h", |
| 807 | "source/reduce/conditional_branch_to_simple_conditional_branch_reduction_opportunity.cpp", |
| 808 | "source/reduce/conditional_branch_to_simple_conditional_branch_reduction_opportunity.h", |
| 809 | "source/reduce/merge_blocks_reduction_opportunity.cpp", |
| 810 | "source/reduce/merge_blocks_reduction_opportunity.h", |
| 811 | "source/reduce/merge_blocks_reduction_opportunity_finder.cpp", |
| 812 | "source/reduce/merge_blocks_reduction_opportunity_finder.h", |
| 813 | "source/reduce/operand_to_const_reduction_opportunity_finder.cpp", |
| 814 | "source/reduce/operand_to_const_reduction_opportunity_finder.h", |
| 815 | "source/reduce/operand_to_dominating_id_reduction_opportunity_finder.cpp", |
| 816 | "source/reduce/operand_to_dominating_id_reduction_opportunity_finder.h", |
| 817 | "source/reduce/operand_to_undef_reduction_opportunity_finder.cpp", |
| 818 | "source/reduce/operand_to_undef_reduction_opportunity_finder.h", |
| 819 | "source/reduce/reducer.cpp", |
| 820 | "source/reduce/reducer.h", |
| 821 | "source/reduce/reduction_opportunity.cpp", |
| 822 | "source/reduce/reduction_opportunity.h", |
Alastair Donaldson | 726af6f | 2020-09-11 22:20:58 +0100 | [diff] [blame] | 823 | "source/reduce/reduction_opportunity_finder.cpp", |
Jamie Madill | e0d5544 | 2019-11-04 21:01:57 -0500 | [diff] [blame] | 824 | "source/reduce/reduction_opportunity_finder.h", |
David Turner | 5081512 | 2019-07-10 22:37:10 +0200 | [diff] [blame] | 825 | "source/reduce/reduction_pass.cpp", |
| 826 | "source/reduce/reduction_pass.h", |
| 827 | "source/reduce/reduction_util.cpp", |
| 828 | "source/reduce/reduction_util.h", |
| 829 | "source/reduce/remove_block_reduction_opportunity.cpp", |
| 830 | "source/reduce/remove_block_reduction_opportunity.h", |
| 831 | "source/reduce/remove_block_reduction_opportunity_finder.cpp", |
| 832 | "source/reduce/remove_block_reduction_opportunity_finder.h", |
| 833 | "source/reduce/remove_function_reduction_opportunity.cpp", |
| 834 | "source/reduce/remove_function_reduction_opportunity.h", |
| 835 | "source/reduce/remove_function_reduction_opportunity_finder.cpp", |
| 836 | "source/reduce/remove_function_reduction_opportunity_finder.h", |
| 837 | "source/reduce/remove_instruction_reduction_opportunity.cpp", |
| 838 | "source/reduce/remove_instruction_reduction_opportunity.h", |
David Turner | 5081512 | 2019-07-10 22:37:10 +0200 | [diff] [blame] | 839 | "source/reduce/remove_selection_reduction_opportunity.cpp", |
| 840 | "source/reduce/remove_selection_reduction_opportunity.h", |
| 841 | "source/reduce/remove_selection_reduction_opportunity_finder.cpp", |
| 842 | "source/reduce/remove_selection_reduction_opportunity_finder.h", |
Ryan Harrison | 95df4c9 | 2020-05-19 15:17:58 -0400 | [diff] [blame] | 843 | "source/reduce/remove_struct_member_reduction_opportunity.cpp", |
| 844 | "source/reduce/remove_struct_member_reduction_opportunity.h", |
| 845 | "source/reduce/remove_unused_instruction_reduction_opportunity_finder.cpp", |
| 846 | "source/reduce/remove_unused_instruction_reduction_opportunity_finder.h", |
| 847 | "source/reduce/remove_unused_struct_member_reduction_opportunity_finder.cpp", |
| 848 | "source/reduce/remove_unused_struct_member_reduction_opportunity_finder.h", |
David Turner | 5081512 | 2019-07-10 22:37:10 +0200 | [diff] [blame] | 849 | "source/reduce/simple_conditional_branch_to_branch_opportunity_finder.cpp", |
| 850 | "source/reduce/simple_conditional_branch_to_branch_opportunity_finder.h", |
| 851 | "source/reduce/simple_conditional_branch_to_branch_reduction_opportunity.cpp", |
| 852 | "source/reduce/simple_conditional_branch_to_branch_reduction_opportunity.h", |
Alastair Donaldson | 9ce7a2f | 2021-07-06 06:14:36 +0000 | [diff] [blame] | 853 | "source/reduce/structured_construct_to_block_reduction_opportunity.cpp", |
| 854 | "source/reduce/structured_construct_to_block_reduction_opportunity.h", |
| 855 | "source/reduce/structured_construct_to_block_reduction_opportunity_finder.cpp", |
| 856 | "source/reduce/structured_construct_to_block_reduction_opportunity_finder.h", |
David Turner | 5081512 | 2019-07-10 22:37:10 +0200 | [diff] [blame] | 857 | "source/reduce/structured_loop_to_selection_reduction_opportunity.cpp", |
| 858 | "source/reduce/structured_loop_to_selection_reduction_opportunity.h", |
| 859 | "source/reduce/structured_loop_to_selection_reduction_opportunity_finder.cpp", |
| 860 | "source/reduce/structured_loop_to_selection_reduction_opportunity_finder.h", |
| 861 | ] |
| 862 | deps = [ |
| 863 | ":spvtools", |
| 864 | ":spvtools_opt", |
| 865 | ] |
Corentin Wallez | 77eb2b6 | 2021-03-10 20:19:24 +0000 | [diff] [blame] | 866 | public_deps = [ ":spvtools_headers" ] |
David Turner | 5081512 | 2019-07-10 22:37:10 +0200 | [diff] [blame] | 867 | if (build_with_chromium) { |
| 868 | configs -= [ "//build/config/compiler:chromium_code" ] |
| 869 | configs += [ "//build/config/compiler:no_chromium_code" ] |
| 870 | } |
| 871 | configs += [ ":spvtools_internal_config" ] |
Dan Sinclair | a114e1f | 2018-07-17 13:53:15 -0400 | [diff] [blame] | 872 | } |
| 873 | |
Alastair Donaldson | feb0544 | 2021-07-14 10:04:50 +0100 | [diff] [blame] | 874 | if (build_with_chromium) { |
Alastair Donaldson | feb0544 | 2021-07-14 10:04:50 +0100 | [diff] [blame] | 875 | # The spirv-fuzz library is only built when in a Chromium checkout |
| 876 | # due to its dependency on protobuf. |
| 877 | |
| 878 | proto_library("spvtools_fuzz_proto") { |
Jamie Madill | 2685c9a | 2021-07-15 12:56:13 -0400 | [diff] [blame] | 879 | sources = [ "source/fuzz/protobufs/spvtoolsfuzz.proto" ] |
Alastair Donaldson | feb0544 | 2021-07-14 10:04:50 +0100 | [diff] [blame] | 880 | generate_python = false |
| 881 | use_protobuf_full = true |
| 882 | } |
| 883 | |
| 884 | static_library("spvtools_fuzz") { |
| 885 | sources = [ |
| 886 | "source/fuzz/added_function_reducer.cpp", |
| 887 | "source/fuzz/added_function_reducer.h", |
| 888 | "source/fuzz/available_instructions.cpp", |
| 889 | "source/fuzz/available_instructions.h", |
| 890 | "source/fuzz/call_graph.cpp", |
| 891 | "source/fuzz/call_graph.h", |
| 892 | "source/fuzz/comparator_deep_blocks_first.h", |
| 893 | "source/fuzz/counter_overflow_id_source.cpp", |
| 894 | "source/fuzz/counter_overflow_id_source.h", |
| 895 | "source/fuzz/data_descriptor.cpp", |
| 896 | "source/fuzz/data_descriptor.h", |
| 897 | "source/fuzz/equivalence_relation.h", |
| 898 | "source/fuzz/fact_manager/constant_uniform_facts.cpp", |
| 899 | "source/fuzz/fact_manager/constant_uniform_facts.h", |
| 900 | "source/fuzz/fact_manager/data_synonym_and_id_equation_facts.cpp", |
| 901 | "source/fuzz/fact_manager/data_synonym_and_id_equation_facts.h", |
| 902 | "source/fuzz/fact_manager/dead_block_facts.cpp", |
| 903 | "source/fuzz/fact_manager/dead_block_facts.h", |
| 904 | "source/fuzz/fact_manager/fact_manager.cpp", |
| 905 | "source/fuzz/fact_manager/fact_manager.h", |
| 906 | "source/fuzz/fact_manager/irrelevant_value_facts.cpp", |
| 907 | "source/fuzz/fact_manager/irrelevant_value_facts.h", |
| 908 | "source/fuzz/fact_manager/livesafe_function_facts.cpp", |
| 909 | "source/fuzz/fact_manager/livesafe_function_facts.h", |
| 910 | "source/fuzz/force_render_red.cpp", |
| 911 | "source/fuzz/force_render_red.h", |
| 912 | "source/fuzz/fuzzer.cpp", |
| 913 | "source/fuzz/fuzzer.h", |
| 914 | "source/fuzz/fuzzer_context.cpp", |
| 915 | "source/fuzz/fuzzer_context.h", |
| 916 | "source/fuzz/fuzzer_pass.cpp", |
| 917 | "source/fuzz/fuzzer_pass.h", |
| 918 | "source/fuzz/fuzzer_pass_add_access_chains.cpp", |
| 919 | "source/fuzz/fuzzer_pass_add_access_chains.h", |
| 920 | "source/fuzz/fuzzer_pass_add_bit_instruction_synonyms.cpp", |
| 921 | "source/fuzz/fuzzer_pass_add_bit_instruction_synonyms.h", |
| 922 | "source/fuzz/fuzzer_pass_add_composite_extract.cpp", |
| 923 | "source/fuzz/fuzzer_pass_add_composite_extract.h", |
| 924 | "source/fuzz/fuzzer_pass_add_composite_inserts.cpp", |
| 925 | "source/fuzz/fuzzer_pass_add_composite_inserts.h", |
| 926 | "source/fuzz/fuzzer_pass_add_composite_types.cpp", |
| 927 | "source/fuzz/fuzzer_pass_add_composite_types.h", |
| 928 | "source/fuzz/fuzzer_pass_add_copy_memory.cpp", |
| 929 | "source/fuzz/fuzzer_pass_add_copy_memory.h", |
| 930 | "source/fuzz/fuzzer_pass_add_dead_blocks.cpp", |
| 931 | "source/fuzz/fuzzer_pass_add_dead_blocks.h", |
| 932 | "source/fuzz/fuzzer_pass_add_dead_breaks.cpp", |
| 933 | "source/fuzz/fuzzer_pass_add_dead_breaks.h", |
| 934 | "source/fuzz/fuzzer_pass_add_dead_continues.cpp", |
| 935 | "source/fuzz/fuzzer_pass_add_dead_continues.h", |
| 936 | "source/fuzz/fuzzer_pass_add_equation_instructions.cpp", |
| 937 | "source/fuzz/fuzzer_pass_add_equation_instructions.h", |
| 938 | "source/fuzz/fuzzer_pass_add_function_calls.cpp", |
| 939 | "source/fuzz/fuzzer_pass_add_function_calls.h", |
| 940 | "source/fuzz/fuzzer_pass_add_global_variables.cpp", |
| 941 | "source/fuzz/fuzzer_pass_add_global_variables.h", |
| 942 | "source/fuzz/fuzzer_pass_add_image_sample_unused_components.cpp", |
| 943 | "source/fuzz/fuzzer_pass_add_image_sample_unused_components.h", |
| 944 | "source/fuzz/fuzzer_pass_add_loads.cpp", |
| 945 | "source/fuzz/fuzzer_pass_add_loads.h", |
| 946 | "source/fuzz/fuzzer_pass_add_local_variables.cpp", |
| 947 | "source/fuzz/fuzzer_pass_add_local_variables.h", |
| 948 | "source/fuzz/fuzzer_pass_add_loop_preheaders.cpp", |
| 949 | "source/fuzz/fuzzer_pass_add_loop_preheaders.h", |
| 950 | "source/fuzz/fuzzer_pass_add_loops_to_create_int_constant_synonyms.cpp", |
| 951 | "source/fuzz/fuzzer_pass_add_loops_to_create_int_constant_synonyms.h", |
| 952 | "source/fuzz/fuzzer_pass_add_no_contraction_decorations.cpp", |
| 953 | "source/fuzz/fuzzer_pass_add_no_contraction_decorations.h", |
| 954 | "source/fuzz/fuzzer_pass_add_opphi_synonyms.cpp", |
| 955 | "source/fuzz/fuzzer_pass_add_opphi_synonyms.h", |
| 956 | "source/fuzz/fuzzer_pass_add_parameters.cpp", |
| 957 | "source/fuzz/fuzzer_pass_add_parameters.h", |
| 958 | "source/fuzz/fuzzer_pass_add_relaxed_decorations.cpp", |
| 959 | "source/fuzz/fuzzer_pass_add_relaxed_decorations.h", |
| 960 | "source/fuzz/fuzzer_pass_add_stores.cpp", |
| 961 | "source/fuzz/fuzzer_pass_add_stores.h", |
| 962 | "source/fuzz/fuzzer_pass_add_synonyms.cpp", |
| 963 | "source/fuzz/fuzzer_pass_add_synonyms.h", |
| 964 | "source/fuzz/fuzzer_pass_add_vector_shuffle_instructions.cpp", |
| 965 | "source/fuzz/fuzzer_pass_add_vector_shuffle_instructions.h", |
| 966 | "source/fuzz/fuzzer_pass_adjust_branch_weights.cpp", |
| 967 | "source/fuzz/fuzzer_pass_adjust_branch_weights.h", |
| 968 | "source/fuzz/fuzzer_pass_adjust_function_controls.cpp", |
| 969 | "source/fuzz/fuzzer_pass_adjust_function_controls.h", |
| 970 | "source/fuzz/fuzzer_pass_adjust_loop_controls.cpp", |
| 971 | "source/fuzz/fuzzer_pass_adjust_loop_controls.h", |
| 972 | "source/fuzz/fuzzer_pass_adjust_memory_operands_masks.cpp", |
| 973 | "source/fuzz/fuzzer_pass_adjust_memory_operands_masks.h", |
| 974 | "source/fuzz/fuzzer_pass_adjust_selection_controls.cpp", |
| 975 | "source/fuzz/fuzzer_pass_adjust_selection_controls.h", |
| 976 | "source/fuzz/fuzzer_pass_apply_id_synonyms.cpp", |
| 977 | "source/fuzz/fuzzer_pass_apply_id_synonyms.h", |
| 978 | "source/fuzz/fuzzer_pass_construct_composites.cpp", |
| 979 | "source/fuzz/fuzzer_pass_construct_composites.h", |
| 980 | "source/fuzz/fuzzer_pass_copy_objects.cpp", |
| 981 | "source/fuzz/fuzzer_pass_copy_objects.h", |
| 982 | "source/fuzz/fuzzer_pass_donate_modules.cpp", |
| 983 | "source/fuzz/fuzzer_pass_donate_modules.h", |
| 984 | "source/fuzz/fuzzer_pass_duplicate_regions_with_selections.cpp", |
| 985 | "source/fuzz/fuzzer_pass_duplicate_regions_with_selections.h", |
| 986 | "source/fuzz/fuzzer_pass_expand_vector_reductions.cpp", |
| 987 | "source/fuzz/fuzzer_pass_expand_vector_reductions.h", |
| 988 | "source/fuzz/fuzzer_pass_flatten_conditional_branches.cpp", |
| 989 | "source/fuzz/fuzzer_pass_flatten_conditional_branches.h", |
| 990 | "source/fuzz/fuzzer_pass_inline_functions.cpp", |
| 991 | "source/fuzz/fuzzer_pass_inline_functions.h", |
| 992 | "source/fuzz/fuzzer_pass_interchange_signedness_of_integer_operands.cpp", |
| 993 | "source/fuzz/fuzzer_pass_interchange_signedness_of_integer_operands.h", |
| 994 | "source/fuzz/fuzzer_pass_interchange_zero_like_constants.cpp", |
| 995 | "source/fuzz/fuzzer_pass_interchange_zero_like_constants.h", |
| 996 | "source/fuzz/fuzzer_pass_invert_comparison_operators.cpp", |
| 997 | "source/fuzz/fuzzer_pass_invert_comparison_operators.h", |
| 998 | "source/fuzz/fuzzer_pass_make_vector_operations_dynamic.cpp", |
| 999 | "source/fuzz/fuzzer_pass_make_vector_operations_dynamic.h", |
| 1000 | "source/fuzz/fuzzer_pass_merge_blocks.cpp", |
| 1001 | "source/fuzz/fuzzer_pass_merge_blocks.h", |
| 1002 | "source/fuzz/fuzzer_pass_merge_function_returns.cpp", |
| 1003 | "source/fuzz/fuzzer_pass_merge_function_returns.h", |
| 1004 | "source/fuzz/fuzzer_pass_mutate_pointers.cpp", |
| 1005 | "source/fuzz/fuzzer_pass_mutate_pointers.h", |
| 1006 | "source/fuzz/fuzzer_pass_obfuscate_constants.cpp", |
| 1007 | "source/fuzz/fuzzer_pass_obfuscate_constants.h", |
| 1008 | "source/fuzz/fuzzer_pass_outline_functions.cpp", |
| 1009 | "source/fuzz/fuzzer_pass_outline_functions.h", |
| 1010 | "source/fuzz/fuzzer_pass_permute_blocks.cpp", |
| 1011 | "source/fuzz/fuzzer_pass_permute_blocks.h", |
| 1012 | "source/fuzz/fuzzer_pass_permute_function_parameters.cpp", |
| 1013 | "source/fuzz/fuzzer_pass_permute_function_parameters.h", |
| 1014 | "source/fuzz/fuzzer_pass_permute_function_variables.cpp", |
| 1015 | "source/fuzz/fuzzer_pass_permute_function_variables.h", |
| 1016 | "source/fuzz/fuzzer_pass_permute_instructions.cpp", |
| 1017 | "source/fuzz/fuzzer_pass_permute_instructions.h", |
| 1018 | "source/fuzz/fuzzer_pass_permute_phi_operands.cpp", |
| 1019 | "source/fuzz/fuzzer_pass_permute_phi_operands.h", |
| 1020 | "source/fuzz/fuzzer_pass_propagate_instructions_down.cpp", |
| 1021 | "source/fuzz/fuzzer_pass_propagate_instructions_down.h", |
| 1022 | "source/fuzz/fuzzer_pass_propagate_instructions_up.cpp", |
| 1023 | "source/fuzz/fuzzer_pass_propagate_instructions_up.h", |
| 1024 | "source/fuzz/fuzzer_pass_push_ids_through_variables.cpp", |
| 1025 | "source/fuzz/fuzzer_pass_push_ids_through_variables.h", |
| 1026 | "source/fuzz/fuzzer_pass_replace_adds_subs_muls_with_carrying_extended.cpp", |
| 1027 | "source/fuzz/fuzzer_pass_replace_adds_subs_muls_with_carrying_extended.h", |
| 1028 | "source/fuzz/fuzzer_pass_replace_branches_from_dead_blocks_with_exits.cpp", |
| 1029 | "source/fuzz/fuzzer_pass_replace_branches_from_dead_blocks_with_exits.h", |
| 1030 | "source/fuzz/fuzzer_pass_replace_copy_memories_with_loads_stores.cpp", |
| 1031 | "source/fuzz/fuzzer_pass_replace_copy_memories_with_loads_stores.h", |
| 1032 | "source/fuzz/fuzzer_pass_replace_copy_objects_with_stores_loads.cpp", |
| 1033 | "source/fuzz/fuzzer_pass_replace_copy_objects_with_stores_loads.h", |
| 1034 | "source/fuzz/fuzzer_pass_replace_irrelevant_ids.cpp", |
| 1035 | "source/fuzz/fuzzer_pass_replace_irrelevant_ids.h", |
| 1036 | "source/fuzz/fuzzer_pass_replace_linear_algebra_instructions.cpp", |
| 1037 | "source/fuzz/fuzzer_pass_replace_linear_algebra_instructions.h", |
| 1038 | "source/fuzz/fuzzer_pass_replace_loads_stores_with_copy_memories.cpp", |
| 1039 | "source/fuzz/fuzzer_pass_replace_loads_stores_with_copy_memories.h", |
| 1040 | "source/fuzz/fuzzer_pass_replace_opphi_ids_from_dead_predecessors.cpp", |
| 1041 | "source/fuzz/fuzzer_pass_replace_opphi_ids_from_dead_predecessors.h", |
| 1042 | "source/fuzz/fuzzer_pass_replace_opselects_with_conditional_branches.cpp", |
| 1043 | "source/fuzz/fuzzer_pass_replace_opselects_with_conditional_branches.h", |
| 1044 | "source/fuzz/fuzzer_pass_replace_parameter_with_global.cpp", |
| 1045 | "source/fuzz/fuzzer_pass_replace_parameter_with_global.h", |
| 1046 | "source/fuzz/fuzzer_pass_replace_params_with_struct.cpp", |
| 1047 | "source/fuzz/fuzzer_pass_replace_params_with_struct.h", |
| 1048 | "source/fuzz/fuzzer_pass_split_blocks.cpp", |
| 1049 | "source/fuzz/fuzzer_pass_split_blocks.h", |
| 1050 | "source/fuzz/fuzzer_pass_swap_commutable_operands.cpp", |
| 1051 | "source/fuzz/fuzzer_pass_swap_commutable_operands.h", |
| 1052 | "source/fuzz/fuzzer_pass_swap_conditional_branch_operands.cpp", |
| 1053 | "source/fuzz/fuzzer_pass_swap_conditional_branch_operands.h", |
| 1054 | "source/fuzz/fuzzer_pass_swap_functions.cpp", |
| 1055 | "source/fuzz/fuzzer_pass_swap_functions.h", |
| 1056 | "source/fuzz/fuzzer_pass_toggle_access_chain_instruction.cpp", |
| 1057 | "source/fuzz/fuzzer_pass_toggle_access_chain_instruction.h", |
| 1058 | "source/fuzz/fuzzer_pass_wrap_regions_in_selections.cpp", |
| 1059 | "source/fuzz/fuzzer_pass_wrap_regions_in_selections.h", |
Shiyu Liu | 033768c | 2021-07-20 05:01:20 -0500 | [diff] [blame] | 1060 | "source/fuzz/fuzzer_pass_wrap_vector_synonym.cpp", |
| 1061 | "source/fuzz/fuzzer_pass_wrap_vector_synonym.h", |
Alastair Donaldson | feb0544 | 2021-07-14 10:04:50 +0100 | [diff] [blame] | 1062 | "source/fuzz/fuzzer_util.cpp", |
| 1063 | "source/fuzz/fuzzer_util.h", |
| 1064 | "source/fuzz/id_use_descriptor.cpp", |
| 1065 | "source/fuzz/id_use_descriptor.h", |
| 1066 | "source/fuzz/instruction_descriptor.cpp", |
| 1067 | "source/fuzz/instruction_descriptor.h", |
| 1068 | "source/fuzz/instruction_message.cpp", |
| 1069 | "source/fuzz/instruction_message.h", |
| 1070 | "source/fuzz/overflow_id_source.cpp", |
| 1071 | "source/fuzz/overflow_id_source.h", |
| 1072 | "source/fuzz/pass_management/repeated_pass_instances.h", |
| 1073 | "source/fuzz/pass_management/repeated_pass_manager.cpp", |
| 1074 | "source/fuzz/pass_management/repeated_pass_manager.h", |
| 1075 | "source/fuzz/pass_management/repeated_pass_manager_looped_with_recommendations.cpp", |
| 1076 | "source/fuzz/pass_management/repeated_pass_manager_looped_with_recommendations.h", |
| 1077 | "source/fuzz/pass_management/repeated_pass_manager_random_with_recommendations.cpp", |
| 1078 | "source/fuzz/pass_management/repeated_pass_manager_random_with_recommendations.h", |
| 1079 | "source/fuzz/pass_management/repeated_pass_manager_simple.cpp", |
| 1080 | "source/fuzz/pass_management/repeated_pass_manager_simple.h", |
| 1081 | "source/fuzz/pass_management/repeated_pass_recommender.cpp", |
| 1082 | "source/fuzz/pass_management/repeated_pass_recommender.h", |
| 1083 | "source/fuzz/pass_management/repeated_pass_recommender_standard.cpp", |
| 1084 | "source/fuzz/pass_management/repeated_pass_recommender_standard.h", |
| 1085 | "source/fuzz/protobufs/spirvfuzz_protobufs.h", |
| 1086 | "source/fuzz/pseudo_random_generator.cpp", |
| 1087 | "source/fuzz/pseudo_random_generator.h", |
| 1088 | "source/fuzz/random_generator.cpp", |
| 1089 | "source/fuzz/random_generator.h", |
| 1090 | "source/fuzz/replayer.cpp", |
| 1091 | "source/fuzz/replayer.h", |
| 1092 | "source/fuzz/shrinker.cpp", |
| 1093 | "source/fuzz/shrinker.h", |
| 1094 | "source/fuzz/transformation.cpp", |
| 1095 | "source/fuzz/transformation.h", |
| 1096 | "source/fuzz/transformation_access_chain.cpp", |
| 1097 | "source/fuzz/transformation_access_chain.h", |
| 1098 | "source/fuzz/transformation_add_bit_instruction_synonym.cpp", |
| 1099 | "source/fuzz/transformation_add_bit_instruction_synonym.h", |
| 1100 | "source/fuzz/transformation_add_constant_boolean.cpp", |
| 1101 | "source/fuzz/transformation_add_constant_boolean.h", |
| 1102 | "source/fuzz/transformation_add_constant_composite.cpp", |
| 1103 | "source/fuzz/transformation_add_constant_composite.h", |
| 1104 | "source/fuzz/transformation_add_constant_null.cpp", |
| 1105 | "source/fuzz/transformation_add_constant_null.h", |
| 1106 | "source/fuzz/transformation_add_constant_scalar.cpp", |
| 1107 | "source/fuzz/transformation_add_constant_scalar.h", |
| 1108 | "source/fuzz/transformation_add_copy_memory.cpp", |
| 1109 | "source/fuzz/transformation_add_copy_memory.h", |
| 1110 | "source/fuzz/transformation_add_dead_block.cpp", |
| 1111 | "source/fuzz/transformation_add_dead_block.h", |
| 1112 | "source/fuzz/transformation_add_dead_break.cpp", |
| 1113 | "source/fuzz/transformation_add_dead_break.h", |
| 1114 | "source/fuzz/transformation_add_dead_continue.cpp", |
| 1115 | "source/fuzz/transformation_add_dead_continue.h", |
| 1116 | "source/fuzz/transformation_add_early_terminator_wrapper.cpp", |
| 1117 | "source/fuzz/transformation_add_early_terminator_wrapper.h", |
| 1118 | "source/fuzz/transformation_add_function.cpp", |
| 1119 | "source/fuzz/transformation_add_function.h", |
| 1120 | "source/fuzz/transformation_add_global_undef.cpp", |
| 1121 | "source/fuzz/transformation_add_global_undef.h", |
| 1122 | "source/fuzz/transformation_add_global_variable.cpp", |
| 1123 | "source/fuzz/transformation_add_global_variable.h", |
| 1124 | "source/fuzz/transformation_add_image_sample_unused_components.cpp", |
| 1125 | "source/fuzz/transformation_add_image_sample_unused_components.h", |
| 1126 | "source/fuzz/transformation_add_local_variable.cpp", |
| 1127 | "source/fuzz/transformation_add_local_variable.h", |
| 1128 | "source/fuzz/transformation_add_loop_preheader.cpp", |
| 1129 | "source/fuzz/transformation_add_loop_preheader.h", |
| 1130 | "source/fuzz/transformation_add_loop_to_create_int_constant_synonym.cpp", |
| 1131 | "source/fuzz/transformation_add_loop_to_create_int_constant_synonym.h", |
| 1132 | "source/fuzz/transformation_add_no_contraction_decoration.cpp", |
| 1133 | "source/fuzz/transformation_add_no_contraction_decoration.h", |
| 1134 | "source/fuzz/transformation_add_opphi_synonym.cpp", |
| 1135 | "source/fuzz/transformation_add_opphi_synonym.h", |
| 1136 | "source/fuzz/transformation_add_parameter.cpp", |
| 1137 | "source/fuzz/transformation_add_parameter.h", |
| 1138 | "source/fuzz/transformation_add_relaxed_decoration.cpp", |
| 1139 | "source/fuzz/transformation_add_relaxed_decoration.h", |
| 1140 | "source/fuzz/transformation_add_spec_constant_op.cpp", |
| 1141 | "source/fuzz/transformation_add_spec_constant_op.h", |
| 1142 | "source/fuzz/transformation_add_synonym.cpp", |
| 1143 | "source/fuzz/transformation_add_synonym.h", |
| 1144 | "source/fuzz/transformation_add_type_array.cpp", |
| 1145 | "source/fuzz/transformation_add_type_array.h", |
| 1146 | "source/fuzz/transformation_add_type_boolean.cpp", |
| 1147 | "source/fuzz/transformation_add_type_boolean.h", |
| 1148 | "source/fuzz/transformation_add_type_float.cpp", |
| 1149 | "source/fuzz/transformation_add_type_float.h", |
| 1150 | "source/fuzz/transformation_add_type_function.cpp", |
| 1151 | "source/fuzz/transformation_add_type_function.h", |
| 1152 | "source/fuzz/transformation_add_type_int.cpp", |
| 1153 | "source/fuzz/transformation_add_type_int.h", |
| 1154 | "source/fuzz/transformation_add_type_matrix.cpp", |
| 1155 | "source/fuzz/transformation_add_type_matrix.h", |
| 1156 | "source/fuzz/transformation_add_type_pointer.cpp", |
| 1157 | "source/fuzz/transformation_add_type_pointer.h", |
| 1158 | "source/fuzz/transformation_add_type_struct.cpp", |
| 1159 | "source/fuzz/transformation_add_type_struct.h", |
| 1160 | "source/fuzz/transformation_add_type_vector.cpp", |
| 1161 | "source/fuzz/transformation_add_type_vector.h", |
| 1162 | "source/fuzz/transformation_adjust_branch_weights.cpp", |
| 1163 | "source/fuzz/transformation_adjust_branch_weights.h", |
| 1164 | "source/fuzz/transformation_composite_construct.cpp", |
| 1165 | "source/fuzz/transformation_composite_construct.h", |
| 1166 | "source/fuzz/transformation_composite_extract.cpp", |
| 1167 | "source/fuzz/transformation_composite_extract.h", |
| 1168 | "source/fuzz/transformation_composite_insert.cpp", |
| 1169 | "source/fuzz/transformation_composite_insert.h", |
| 1170 | "source/fuzz/transformation_compute_data_synonym_fact_closure.cpp", |
| 1171 | "source/fuzz/transformation_compute_data_synonym_fact_closure.h", |
| 1172 | "source/fuzz/transformation_context.cpp", |
| 1173 | "source/fuzz/transformation_context.h", |
| 1174 | "source/fuzz/transformation_duplicate_region_with_selection.cpp", |
| 1175 | "source/fuzz/transformation_duplicate_region_with_selection.h", |
| 1176 | "source/fuzz/transformation_equation_instruction.cpp", |
| 1177 | "source/fuzz/transformation_equation_instruction.h", |
| 1178 | "source/fuzz/transformation_expand_vector_reduction.cpp", |
| 1179 | "source/fuzz/transformation_expand_vector_reduction.h", |
| 1180 | "source/fuzz/transformation_flatten_conditional_branch.cpp", |
| 1181 | "source/fuzz/transformation_flatten_conditional_branch.h", |
| 1182 | "source/fuzz/transformation_function_call.cpp", |
| 1183 | "source/fuzz/transformation_function_call.h", |
| 1184 | "source/fuzz/transformation_inline_function.cpp", |
| 1185 | "source/fuzz/transformation_inline_function.h", |
| 1186 | "source/fuzz/transformation_invert_comparison_operator.cpp", |
| 1187 | "source/fuzz/transformation_invert_comparison_operator.h", |
| 1188 | "source/fuzz/transformation_load.cpp", |
| 1189 | "source/fuzz/transformation_load.h", |
| 1190 | "source/fuzz/transformation_make_vector_operation_dynamic.cpp", |
| 1191 | "source/fuzz/transformation_make_vector_operation_dynamic.h", |
| 1192 | "source/fuzz/transformation_merge_blocks.cpp", |
| 1193 | "source/fuzz/transformation_merge_blocks.h", |
| 1194 | "source/fuzz/transformation_merge_function_returns.cpp", |
| 1195 | "source/fuzz/transformation_merge_function_returns.h", |
| 1196 | "source/fuzz/transformation_move_block_down.cpp", |
| 1197 | "source/fuzz/transformation_move_block_down.h", |
| 1198 | "source/fuzz/transformation_move_instruction_down.cpp", |
| 1199 | "source/fuzz/transformation_move_instruction_down.h", |
| 1200 | "source/fuzz/transformation_mutate_pointer.cpp", |
| 1201 | "source/fuzz/transformation_mutate_pointer.h", |
| 1202 | "source/fuzz/transformation_outline_function.cpp", |
| 1203 | "source/fuzz/transformation_outline_function.h", |
| 1204 | "source/fuzz/transformation_permute_function_parameters.cpp", |
| 1205 | "source/fuzz/transformation_permute_function_parameters.h", |
| 1206 | "source/fuzz/transformation_permute_phi_operands.cpp", |
| 1207 | "source/fuzz/transformation_permute_phi_operands.h", |
| 1208 | "source/fuzz/transformation_propagate_instruction_down.cpp", |
| 1209 | "source/fuzz/transformation_propagate_instruction_down.h", |
| 1210 | "source/fuzz/transformation_propagate_instruction_up.cpp", |
| 1211 | "source/fuzz/transformation_propagate_instruction_up.h", |
| 1212 | "source/fuzz/transformation_push_id_through_variable.cpp", |
| 1213 | "source/fuzz/transformation_push_id_through_variable.h", |
| 1214 | "source/fuzz/transformation_record_synonymous_constants.cpp", |
| 1215 | "source/fuzz/transformation_record_synonymous_constants.h", |
| 1216 | "source/fuzz/transformation_replace_add_sub_mul_with_carrying_extended.cpp", |
| 1217 | "source/fuzz/transformation_replace_add_sub_mul_with_carrying_extended.h", |
| 1218 | "source/fuzz/transformation_replace_boolean_constant_with_constant_binary.cpp", |
| 1219 | "source/fuzz/transformation_replace_boolean_constant_with_constant_binary.h", |
| 1220 | "source/fuzz/transformation_replace_branch_from_dead_block_with_exit.cpp", |
| 1221 | "source/fuzz/transformation_replace_branch_from_dead_block_with_exit.h", |
| 1222 | "source/fuzz/transformation_replace_constant_with_uniform.cpp", |
| 1223 | "source/fuzz/transformation_replace_constant_with_uniform.h", |
| 1224 | "source/fuzz/transformation_replace_copy_memory_with_load_store.cpp", |
| 1225 | "source/fuzz/transformation_replace_copy_memory_with_load_store.h", |
| 1226 | "source/fuzz/transformation_replace_copy_object_with_store_load.cpp", |
| 1227 | "source/fuzz/transformation_replace_copy_object_with_store_load.h", |
| 1228 | "source/fuzz/transformation_replace_id_with_synonym.cpp", |
| 1229 | "source/fuzz/transformation_replace_id_with_synonym.h", |
| 1230 | "source/fuzz/transformation_replace_irrelevant_id.cpp", |
| 1231 | "source/fuzz/transformation_replace_irrelevant_id.h", |
| 1232 | "source/fuzz/transformation_replace_linear_algebra_instruction.cpp", |
| 1233 | "source/fuzz/transformation_replace_linear_algebra_instruction.h", |
| 1234 | "source/fuzz/transformation_replace_load_store_with_copy_memory.cpp", |
| 1235 | "source/fuzz/transformation_replace_load_store_with_copy_memory.h", |
| 1236 | "source/fuzz/transformation_replace_opphi_id_from_dead_predecessor.cpp", |
| 1237 | "source/fuzz/transformation_replace_opphi_id_from_dead_predecessor.h", |
| 1238 | "source/fuzz/transformation_replace_opselect_with_conditional_branch.cpp", |
| 1239 | "source/fuzz/transformation_replace_opselect_with_conditional_branch.h", |
| 1240 | "source/fuzz/transformation_replace_parameter_with_global.cpp", |
| 1241 | "source/fuzz/transformation_replace_parameter_with_global.h", |
| 1242 | "source/fuzz/transformation_replace_params_with_struct.cpp", |
| 1243 | "source/fuzz/transformation_replace_params_with_struct.h", |
| 1244 | "source/fuzz/transformation_set_function_control.cpp", |
| 1245 | "source/fuzz/transformation_set_function_control.h", |
| 1246 | "source/fuzz/transformation_set_loop_control.cpp", |
| 1247 | "source/fuzz/transformation_set_loop_control.h", |
| 1248 | "source/fuzz/transformation_set_memory_operands_mask.cpp", |
| 1249 | "source/fuzz/transformation_set_memory_operands_mask.h", |
| 1250 | "source/fuzz/transformation_set_selection_control.cpp", |
| 1251 | "source/fuzz/transformation_set_selection_control.h", |
| 1252 | "source/fuzz/transformation_split_block.cpp", |
| 1253 | "source/fuzz/transformation_split_block.h", |
| 1254 | "source/fuzz/transformation_store.cpp", |
| 1255 | "source/fuzz/transformation_store.h", |
| 1256 | "source/fuzz/transformation_swap_commutable_operands.cpp", |
| 1257 | "source/fuzz/transformation_swap_commutable_operands.h", |
| 1258 | "source/fuzz/transformation_swap_conditional_branch_operands.cpp", |
| 1259 | "source/fuzz/transformation_swap_conditional_branch_operands.h", |
| 1260 | "source/fuzz/transformation_swap_function_variables.cpp", |
| 1261 | "source/fuzz/transformation_swap_function_variables.h", |
| 1262 | "source/fuzz/transformation_swap_two_functions.cpp", |
| 1263 | "source/fuzz/transformation_swap_two_functions.h", |
| 1264 | "source/fuzz/transformation_toggle_access_chain_instruction.cpp", |
| 1265 | "source/fuzz/transformation_toggle_access_chain_instruction.h", |
| 1266 | "source/fuzz/transformation_vector_shuffle.cpp", |
| 1267 | "source/fuzz/transformation_vector_shuffle.h", |
| 1268 | "source/fuzz/transformation_wrap_early_terminator_in_function.cpp", |
| 1269 | "source/fuzz/transformation_wrap_early_terminator_in_function.h", |
| 1270 | "source/fuzz/transformation_wrap_region_in_selection.cpp", |
| 1271 | "source/fuzz/transformation_wrap_region_in_selection.h", |
Shiyu Liu | 033768c | 2021-07-20 05:01:20 -0500 | [diff] [blame] | 1272 | "source/fuzz/transformation_wrap_vector_synonym.cpp", |
| 1273 | "source/fuzz/transformation_wrap_vector_synonym.h", |
Alastair Donaldson | feb0544 | 2021-07-14 10:04:50 +0100 | [diff] [blame] | 1274 | "source/fuzz/uniform_buffer_element_descriptor.cpp", |
| 1275 | "source/fuzz/uniform_buffer_element_descriptor.h", |
| 1276 | ] |
| 1277 | deps = [ |
Alastair Donaldson | feb0544 | 2021-07-14 10:04:50 +0100 | [diff] [blame] | 1278 | ":spvtools", |
Jamie Madill | 2685c9a | 2021-07-15 12:56:13 -0400 | [diff] [blame] | 1279 | ":spvtools_fuzz_proto", |
Alastair Donaldson | feb0544 | 2021-07-14 10:04:50 +0100 | [diff] [blame] | 1280 | ":spvtools_opt", |
Jamie Madill | 2685c9a | 2021-07-15 12:56:13 -0400 | [diff] [blame] | 1281 | ":spvtools_reduce", |
| 1282 | "//third_party/protobuf:protobuf_full", |
Alastair Donaldson | feb0544 | 2021-07-14 10:04:50 +0100 | [diff] [blame] | 1283 | ] |
| 1284 | public_deps = [ ":spvtools_headers" ] |
Alastair Donaldson | 2299b71 | 2021-07-13 19:45:01 +0100 | [diff] [blame] | 1285 | configs -= [ "//build/config/compiler:chromium_code" ] |
| 1286 | configs += [ "//build/config/compiler:no_chromium_code" ] |
Alastair Donaldson | feb0544 | 2021-07-14 10:04:50 +0100 | [diff] [blame] | 1287 | configs += [ ":spvtools_internal_config" ] |
Alastair Donaldson | 2299b71 | 2021-07-13 19:45:01 +0100 | [diff] [blame] | 1288 | } |
Alastair Donaldson | 2299b71 | 2021-07-13 19:45:01 +0100 | [diff] [blame] | 1289 | } |
| 1290 | |
dan sinclair | a97c1d9 | 2018-08-01 14:28:10 -0400 | [diff] [blame] | 1291 | group("SPIRV-Tools") { |
Jamie Madill | 1c9ca42 | 2019-09-03 12:57:32 -0400 | [diff] [blame] | 1292 | public_deps = [ |
Dan Sinclair | a114e1f | 2018-07-17 13:53:15 -0400 | [diff] [blame] | 1293 | ":spvtools", |
David Turner | 5081512 | 2019-07-10 22:37:10 +0200 | [diff] [blame] | 1294 | ":spvtools_link", |
Dan Sinclair | a114e1f | 2018-07-17 13:53:15 -0400 | [diff] [blame] | 1295 | ":spvtools_opt", |
David Turner | 5081512 | 2019-07-10 22:37:10 +0200 | [diff] [blame] | 1296 | ":spvtools_reduce", |
Dan Sinclair | a114e1f | 2018-07-17 13:53:15 -0400 | [diff] [blame] | 1297 | ":spvtools_val", |
| 1298 | ] |
| 1299 | } |
| 1300 | |
Jamie Madill | 4b42cd1 | 2019-02-19 10:38:38 -0500 | [diff] [blame] | 1301 | # The tests are scoped to Chromium to avoid needing to write gtest integration. |
| 1302 | # See Chromium's third_party/googletest/BUILD.gn for a complete integration. |
| 1303 | if (build_with_chromium) { |
| 1304 | test("spvtools_test") { |
Dan Sinclair | a114e1f | 2018-07-17 13:53:15 -0400 | [diff] [blame] | 1305 | sources = [ |
Jamie Madill | 4b42cd1 | 2019-02-19 10:38:38 -0500 | [diff] [blame] | 1306 | "test/assembly_context_test.cpp", |
| 1307 | "test/assembly_format_test.cpp", |
| 1308 | "test/binary_destroy_test.cpp", |
| 1309 | "test/binary_endianness_test.cpp", |
| 1310 | "test/binary_header_get_test.cpp", |
| 1311 | "test/binary_parse_test.cpp", |
| 1312 | "test/binary_strnlen_s_test.cpp", |
| 1313 | "test/binary_to_text.literal_test.cpp", |
| 1314 | "test/binary_to_text_test.cpp", |
| 1315 | "test/comment_test.cpp", |
| 1316 | "test/enum_set_test.cpp", |
| 1317 | "test/enum_string_mapping_test.cpp", |
Corentin Wallez | 77eb2b6 | 2021-03-10 20:19:24 +0000 | [diff] [blame] | 1318 | "test/ext_inst.cldebug100_test.cpp", |
Jamie Madill | 4b42cd1 | 2019-02-19 10:38:38 -0500 | [diff] [blame] | 1319 | "test/ext_inst.debuginfo_test.cpp", |
| 1320 | "test/ext_inst.glsl_test.cpp", |
| 1321 | "test/ext_inst.opencl_test.cpp", |
| 1322 | "test/fix_word_test.cpp", |
| 1323 | "test/generator_magic_number_test.cpp", |
| 1324 | "test/hex_float_test.cpp", |
| 1325 | "test/immediate_int_test.cpp", |
| 1326 | "test/libspirv_macros_test.cpp", |
| 1327 | "test/name_mapper_test.cpp", |
| 1328 | "test/named_id_test.cpp", |
| 1329 | "test/opcode_make_test.cpp", |
| 1330 | "test/opcode_require_capabilities_test.cpp", |
| 1331 | "test/opcode_split_test.cpp", |
| 1332 | "test/opcode_table_get_test.cpp", |
| 1333 | "test/operand_capabilities_test.cpp", |
| 1334 | "test/operand_pattern_test.cpp", |
| 1335 | "test/operand_test.cpp", |
| 1336 | "test/target_env_test.cpp", |
| 1337 | "test/test_fixture.h", |
| 1338 | "test/text_advance_test.cpp", |
| 1339 | "test/text_destroy_test.cpp", |
| 1340 | "test/text_literal_test.cpp", |
| 1341 | "test/text_start_new_inst_test.cpp", |
| 1342 | "test/text_to_binary.annotation_test.cpp", |
| 1343 | "test/text_to_binary.barrier_test.cpp", |
| 1344 | "test/text_to_binary.constant_test.cpp", |
| 1345 | "test/text_to_binary.control_flow_test.cpp", |
| 1346 | "test/text_to_binary.debug_test.cpp", |
| 1347 | "test/text_to_binary.device_side_enqueue_test.cpp", |
| 1348 | "test/text_to_binary.extension_test.cpp", |
| 1349 | "test/text_to_binary.function_test.cpp", |
| 1350 | "test/text_to_binary.group_test.cpp", |
| 1351 | "test/text_to_binary.image_test.cpp", |
| 1352 | "test/text_to_binary.literal_test.cpp", |
| 1353 | "test/text_to_binary.memory_test.cpp", |
| 1354 | "test/text_to_binary.misc_test.cpp", |
| 1355 | "test/text_to_binary.mode_setting_test.cpp", |
| 1356 | "test/text_to_binary.pipe_storage_test.cpp", |
| 1357 | "test/text_to_binary.reserved_sampling_test.cpp", |
| 1358 | "test/text_to_binary.subgroup_dispatch_test.cpp", |
| 1359 | "test/text_to_binary.type_declaration_test.cpp", |
| 1360 | "test/text_to_binary_test.cpp", |
| 1361 | "test/text_word_get_test.cpp", |
| 1362 | "test/unit_spirv.cpp", |
| 1363 | "test/unit_spirv.h", |
Dan Sinclair | a114e1f | 2018-07-17 13:53:15 -0400 | [diff] [blame] | 1364 | ] |
| 1365 | |
Jamie Madill | 4b42cd1 | 2019-02-19 10:38:38 -0500 | [diff] [blame] | 1366 | deps = [ |
Jamie Madill | 4b42cd1 | 2019-02-19 10:38:38 -0500 | [diff] [blame] | 1367 | ":spvtools", |
David Neto | 64f36ea | 2019-12-19 17:16:26 -0500 | [diff] [blame] | 1368 | ":spvtools_language_header_cldebuginfo100", |
Corentin Wallez | 77eb2b6 | 2021-03-10 20:19:24 +0000 | [diff] [blame] | 1369 | ":spvtools_language_header_debuginfo", |
Jamie Madill | 2685c9a | 2021-07-15 12:56:13 -0400 | [diff] [blame] | 1370 | ":spvtools_language_header_vkdebuginfo100", |
Jamie Madill | 4b42cd1 | 2019-02-19 10:38:38 -0500 | [diff] [blame] | 1371 | ":spvtools_val", |
David Turner | 5081512 | 2019-07-10 22:37:10 +0200 | [diff] [blame] | 1372 | "//testing/gmock", |
| 1373 | "//testing/gtest", |
| 1374 | "//testing/gtest:gtest_main", |
Jamie Madill | 635b583 | 2019-09-04 12:43:26 -0400 | [diff] [blame] | 1375 | "//third_party/googletest:gmock", |
| 1376 | "//third_party/googletest:gtest", |
Dan Sinclair | a114e1f | 2018-07-17 13:53:15 -0400 | [diff] [blame] | 1377 | ] |
Dan Sinclair | a114e1f | 2018-07-17 13:53:15 -0400 | [diff] [blame] | 1378 | |
Jamie Madill | 4b42cd1 | 2019-02-19 10:38:38 -0500 | [diff] [blame] | 1379 | if (is_clang) { |
| 1380 | cflags_cc = [ "-Wno-self-assign" ] |
| 1381 | } |
Corentin Wallez | 21bcb9d | 2018-09-06 10:50:27 -0400 | [diff] [blame] | 1382 | |
Jamie Madill | 4b42cd1 | 2019-02-19 10:38:38 -0500 | [diff] [blame] | 1383 | configs += [ ":spvtools_internal_config" ] |
| 1384 | } |
Dan Sinclair | a114e1f | 2018-07-17 13:53:15 -0400 | [diff] [blame] | 1385 | } |
| 1386 | |
Corentin Wallez | 2d9a325 | 2018-08-02 18:48:03 +0200 | [diff] [blame] | 1387 | if (spirv_tools_standalone) { |
Dan Sinclair | a114e1f | 2018-07-17 13:53:15 -0400 | [diff] [blame] | 1388 | group("fuzzers") { |
| 1389 | testonly = true |
Corentin Wallez | 77eb2b6 | 2021-03-10 20:19:24 +0000 | [diff] [blame] | 1390 | deps = [ "test/fuzzers" ] |
Dan Sinclair | a114e1f | 2018-07-17 13:53:15 -0400 | [diff] [blame] | 1391 | } |
| 1392 | } |
dan sinclair | 1bdade7 | 2018-08-15 15:26:28 -0400 | [diff] [blame] | 1393 | |
David Turner | 5081512 | 2019-07-10 22:37:10 +0200 | [diff] [blame] | 1394 | source_set("spvtools_util_cli_consumer") { |
| 1395 | sources = [ |
| 1396 | "tools/util/cli_consumer.cpp", |
| 1397 | "tools/util/cli_consumer.h", |
| 1398 | ] |
Corentin Wallez | 77eb2b6 | 2021-03-10 20:19:24 +0000 | [diff] [blame] | 1399 | deps = [ ":spvtools_headers" ] |
David Turner | 5081512 | 2019-07-10 22:37:10 +0200 | [diff] [blame] | 1400 | configs += [ ":spvtools_internal_config" ] |
| 1401 | } |
| 1402 | |
| 1403 | source_set("spvtools_software_version") { |
Corentin Wallez | 77eb2b6 | 2021-03-10 20:19:24 +0000 | [diff] [blame] | 1404 | sources = [ "source/software_version.cpp" ] |
David Turner | 5081512 | 2019-07-10 22:37:10 +0200 | [diff] [blame] | 1405 | deps = [ |
| 1406 | ":spvtools_build_version", |
Corentin Wallez | 59de04a | 2019-07-12 16:35:59 +0200 | [diff] [blame] | 1407 | ":spvtools_headers", |
David Turner | 5081512 | 2019-07-10 22:37:10 +0200 | [diff] [blame] | 1408 | ] |
| 1409 | configs += [ ":spvtools_internal_config" ] |
| 1410 | } |
| 1411 | |
| 1412 | executable("spirv-as") { |
Corentin Wallez | 77eb2b6 | 2021-03-10 20:19:24 +0000 | [diff] [blame] | 1413 | sources = [ "tools/as/as.cpp" ] |
dan sinclair | 1bdade7 | 2018-08-15 15:26:28 -0400 | [diff] [blame] | 1414 | deps = [ |
| 1415 | ":spvtools", |
David Turner | 5081512 | 2019-07-10 22:37:10 +0200 | [diff] [blame] | 1416 | ":spvtools_software_version", |
| 1417 | ] |
| 1418 | configs += [ ":spvtools_internal_config" ] |
| 1419 | } |
| 1420 | |
| 1421 | executable("spirv-dis") { |
Corentin Wallez | 77eb2b6 | 2021-03-10 20:19:24 +0000 | [diff] [blame] | 1422 | sources = [ "tools/dis/dis.cpp" ] |
David Turner | 5081512 | 2019-07-10 22:37:10 +0200 | [diff] [blame] | 1423 | deps = [ |
| 1424 | ":spvtools", |
| 1425 | ":spvtools_software_version", |
| 1426 | ] |
| 1427 | configs += [ ":spvtools_internal_config" ] |
| 1428 | } |
| 1429 | |
| 1430 | executable("spirv-val") { |
Corentin Wallez | 77eb2b6 | 2021-03-10 20:19:24 +0000 | [diff] [blame] | 1431 | sources = [ "tools/val/val.cpp" ] |
David Turner | 5081512 | 2019-07-10 22:37:10 +0200 | [diff] [blame] | 1432 | deps = [ |
| 1433 | ":spvtools", |
| 1434 | ":spvtools_software_version", |
| 1435 | ":spvtools_util_cli_consumer", |
| 1436 | ":spvtools_val", |
| 1437 | ] |
| 1438 | configs += [ ":spvtools_internal_config" ] |
| 1439 | } |
| 1440 | |
| 1441 | executable("spirv-cfg") { |
| 1442 | sources = [ |
| 1443 | "tools/cfg/bin_to_dot.cpp", |
| 1444 | "tools/cfg/bin_to_dot.h", |
| 1445 | "tools/cfg/cfg.cpp", |
| 1446 | ] |
| 1447 | deps = [ |
| 1448 | ":spvtools", |
| 1449 | ":spvtools_software_version", |
dan sinclair | 1bdade7 | 2018-08-15 15:26:28 -0400 | [diff] [blame] | 1450 | ] |
Corentin Wallez | 21bcb9d | 2018-09-06 10:50:27 -0400 | [diff] [blame] | 1451 | configs += [ ":spvtools_internal_config" ] |
dan sinclair | 1bdade7 | 2018-08-15 15:26:28 -0400 | [diff] [blame] | 1452 | } |
David Turner | a6bfc26 | 2019-07-03 22:26:06 +0200 | [diff] [blame] | 1453 | |
| 1454 | executable("spirv-opt") { |
Corentin Wallez | 77eb2b6 | 2021-03-10 20:19:24 +0000 | [diff] [blame] | 1455 | sources = [ "tools/opt/opt.cpp" ] |
David Turner | a6bfc26 | 2019-07-03 22:26:06 +0200 | [diff] [blame] | 1456 | deps = [ |
| 1457 | ":spvtools", |
| 1458 | ":spvtools_opt", |
David Turner | 5081512 | 2019-07-10 22:37:10 +0200 | [diff] [blame] | 1459 | ":spvtools_software_version", |
| 1460 | ":spvtools_util_cli_consumer", |
David Turner | a6bfc26 | 2019-07-03 22:26:06 +0200 | [diff] [blame] | 1461 | ":spvtools_val", |
David Turner | a6bfc26 | 2019-07-03 22:26:06 +0200 | [diff] [blame] | 1462 | ] |
| 1463 | configs += [ ":spvtools_internal_config" ] |
| 1464 | } |
David Turner | 5081512 | 2019-07-10 22:37:10 +0200 | [diff] [blame] | 1465 | |
| 1466 | executable("spirv-link") { |
Corentin Wallez | 77eb2b6 | 2021-03-10 20:19:24 +0000 | [diff] [blame] | 1467 | sources = [ "tools/link/linker.cpp" ] |
David Turner | 5081512 | 2019-07-10 22:37:10 +0200 | [diff] [blame] | 1468 | deps = [ |
| 1469 | ":spvtools", |
| 1470 | ":spvtools_link", |
| 1471 | ":spvtools_opt", |
| 1472 | ":spvtools_software_version", |
| 1473 | ":spvtools_val", |
| 1474 | ] |
| 1475 | configs += [ ":spvtools_internal_config" ] |
| 1476 | } |
| 1477 | |
Alastair Donaldson | feb0544 | 2021-07-14 10:04:50 +0100 | [diff] [blame] | 1478 | if (!is_ios && !spirv_is_winuwp && build_with_chromium) { |
Alastair Donaldson | feb0544 | 2021-07-14 10:04:50 +0100 | [diff] [blame] | 1479 | # iOS and UWP do not allow std::system calls which spirv-fuzz |
| 1480 | # requires. Additionally, spirv-fuzz is only built when in a |
| 1481 | # Chromium checkout due to its dependency on protobuf. |
Alastair Donaldson | 2299b71 | 2021-07-13 19:45:01 +0100 | [diff] [blame] | 1482 | |
| 1483 | executable("spirv-fuzz") { |
| 1484 | sources = [ "tools/fuzz/fuzz.cpp" ] |
| 1485 | deps = [ |
Alastair Donaldson | 2299b71 | 2021-07-13 19:45:01 +0100 | [diff] [blame] | 1486 | ":spvtools", |
| 1487 | ":spvtools_fuzz", |
Alastair Donaldson | 2299b71 | 2021-07-13 19:45:01 +0100 | [diff] [blame] | 1488 | ":spvtools_opt", |
Jamie Madill | 2685c9a | 2021-07-15 12:56:13 -0400 | [diff] [blame] | 1489 | ":spvtools_reduce", |
Alastair Donaldson | 2299b71 | 2021-07-13 19:45:01 +0100 | [diff] [blame] | 1490 | ":spvtools_software_version", |
| 1491 | ":spvtools_util_cli_consumer", |
| 1492 | ":spvtools_val", |
Jamie Madill | 2685c9a | 2021-07-15 12:56:13 -0400 | [diff] [blame] | 1493 | "//third_party/protobuf:protobuf_full", |
Alastair Donaldson | 2299b71 | 2021-07-13 19:45:01 +0100 | [diff] [blame] | 1494 | ] |
| 1495 | configs += [ ":spvtools_internal_config" ] |
| 1496 | } |
Alastair Donaldson | feb0544 | 2021-07-14 10:04:50 +0100 | [diff] [blame] | 1497 | } |
| 1498 | |
| 1499 | if (!is_ios && !spirv_is_winuwp) { |
Alastair Donaldson | feb0544 | 2021-07-14 10:04:50 +0100 | [diff] [blame] | 1500 | # iOS and UWP do not allow std::system calls which spirv-reduce |
| 1501 | # requires. |
Alastair Donaldson | 2299b71 | 2021-07-13 19:45:01 +0100 | [diff] [blame] | 1502 | |
David Turner | 5081512 | 2019-07-10 22:37:10 +0200 | [diff] [blame] | 1503 | executable("spirv-reduce") { |
Corentin Wallez | 77eb2b6 | 2021-03-10 20:19:24 +0000 | [diff] [blame] | 1504 | sources = [ "tools/reduce/reduce.cpp" ] |
David Turner | 5081512 | 2019-07-10 22:37:10 +0200 | [diff] [blame] | 1505 | deps = [ |
| 1506 | ":spvtools", |
Corentin Wallez | 59de04a | 2019-07-12 16:35:59 +0200 | [diff] [blame] | 1507 | ":spvtools_opt", |
David Turner | 5081512 | 2019-07-10 22:37:10 +0200 | [diff] [blame] | 1508 | ":spvtools_reduce", |
| 1509 | ":spvtools_software_version", |
| 1510 | ":spvtools_util_cli_consumer", |
| 1511 | ":spvtools_val", |
| 1512 | ] |
| 1513 | configs += [ ":spvtools_internal_config" ] |
| 1514 | } |
| 1515 | } |
| 1516 | |
| 1517 | group("all_spirv_tools") { |
| 1518 | deps = [ |
| 1519 | ":spirv-as", |
| 1520 | ":spirv-cfg", |
| 1521 | ":spirv-dis", |
| 1522 | ":spirv-link", |
| 1523 | ":spirv-opt", |
| 1524 | ":spirv-val", |
| 1525 | ] |
Alastair Donaldson | feb0544 | 2021-07-14 10:04:50 +0100 | [diff] [blame] | 1526 | if (!is_ios && !spirv_is_winuwp && build_with_chromium) { |
| 1527 | deps += [ ":spirv-fuzz" ] |
| 1528 | } |
Shahbaz Youssefi | ae6a1e1 | 2021-04-12 13:17:44 -0400 | [diff] [blame] | 1529 | if (!is_ios && !spirv_is_winuwp) { |
Alastair Donaldson | feb0544 | 2021-07-14 10:04:50 +0100 | [diff] [blame] | 1530 | deps += [ ":spirv-reduce" ] |
David Turner | 5081512 | 2019-07-10 22:37:10 +0200 | [diff] [blame] | 1531 | } |
| 1532 | } |