aco: fix copy of uninitialized boolean
[mesa.git] / src / amd / compiler / meson.build
1 # Copyright © 2018 Valve Corporation
2
3 # Permission is hereby granted, free of charge, to any person obtaining a copy
4 # of this software and associated documentation files (the "Software"), to deal
5 # in the Software without restriction, including without limitation the rights
6 # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7 # copies of the Software, and to permit persons to whom the Software is
8 # furnished to do so, subject to the following conditions:
9
10 # The above copyright notice and this permission notice shall be included in
11 # all copies or substantial portions of the Software.
12
13 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14 # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15 # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16 # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17 # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18 # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19 # SOFTWARE.
20
21 aco_depends = files('aco_opcodes.py')
22
23 aco_opcodes_h = custom_target(
24 'aco_opcodes.h',
25 input : 'aco_opcodes_h.py',
26 output : 'aco_opcodes.h',
27 command : [prog_python, '@INPUT@'],
28 capture : true,
29 depend_files : aco_depends,
30 )
31
32 aco_opcodes_c = custom_target(
33 'aco_opcodes.cpp',
34 input : 'aco_opcodes_cpp.py',
35 output : 'aco_opcodes.cpp',
36 command : [prog_python, '@INPUT@'],
37 capture : true,
38 depend_files : aco_depends,
39 )
40
41 aco_builder_h = custom_target(
42 'aco_builder.h',
43 input : 'aco_builder_h.py',
44 output : 'aco_builder.h',
45 command : [prog_python, '@INPUT@'],
46 capture : true,
47 depend_files : aco_depends,
48 )
49
50 # Headers-only dependency
51 idep_aco_headers = declare_dependency(
52 sources : [aco_opcodes_h],
53 include_directories : include_directories('.'),
54 )
55
56 libaco_files = files(
57 'aco_dead_code_analysis.cpp',
58 'aco_dominance.cpp',
59 'aco_instruction_selection.cpp',
60 'aco_instruction_selection_setup.cpp',
61 'aco_interface.cpp',
62 'aco_interface.h',
63 'aco_ir.cpp',
64 'aco_ir.h',
65 'aco_assembler.cpp',
66 'aco_insert_exec_mask.cpp',
67 'aco_insert_NOPs.cpp',
68 'aco_insert_waitcnt.cpp',
69 'aco_reduce_assign.cpp',
70 'aco_register_allocation.cpp',
71 'aco_live_var_analysis.cpp',
72 'aco_lower_phis.cpp',
73 'aco_lower_to_cssa.cpp',
74 'aco_lower_to_hw_instr.cpp',
75 'aco_optimizer.cpp',
76 'aco_opt_value_numbering.cpp',
77 'aco_print_asm.cpp',
78 'aco_print_ir.cpp',
79 'aco_scheduler.cpp',
80 'aco_spill.cpp',
81 'aco_ssa_elimination.cpp',
82 'aco_statistics.cpp',
83 'aco_util.h',
84 'aco_validate.cpp',
85 )
86
87 _libaco = static_library(
88 'aco',
89 [libaco_files, aco_opcodes_c, aco_opcodes_h, aco_builder_h],
90 include_directories : [
91 inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux, inc_compiler, inc_amd, inc_amd_common, inc_amd_common_llvm,
92 ],
93 link_with : [
94 libamd_common
95 ],
96 dependencies : [
97 dep_llvm, dep_thread, dep_elf, dep_libdrm_amdgpu, dep_valgrind,
98 idep_nir_headers, idep_amdgfxregs_h,
99 ],
100 gnu_symbol_visibility : 'hidden',
101 build_by_default : true,
102 )
103
104 # Also link with aco
105 idep_aco = declare_dependency(
106 dependencies : idep_aco_headers,
107 link_with : _libaco,
108 )