mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-25 10:28:11 +02:00
This is now handled by lower_branches(). Totals from 47236 (59.49% of 79395) affected shaders: (Navi31) Instrs: 29490400 -> 29490507 (+0.00%) CodeSize: 152316812 -> 152317248 (+0.00%); split: -0.00%, +0.00% Latency: 229665459 -> 229665106 (-0.00%); split: -0.00%, +0.00% InvThroughput: 36870605 -> 36870504 (-0.00%); split: -0.00%, +0.00% Copies: 1966751 -> 2233467 (+13.56%) SALU: 3122941 -> 3123048 (+0.00%) Note, that only about 20 shaders are actually affected. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32477>
94 lines
2.3 KiB
Meson
94 lines
2.3 KiB
Meson
# Copyright © 2018 Valve Corporation
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
aco_depends = files('aco_opcodes.py')
|
|
|
|
aco_opcodes_h = custom_target(
|
|
'aco_opcodes.h',
|
|
input : 'aco_opcodes_h.py',
|
|
output : 'aco_opcodes.h',
|
|
command : [prog_python, '@INPUT@'],
|
|
capture : true,
|
|
depend_files : aco_depends,
|
|
)
|
|
|
|
aco_opcodes_c = custom_target(
|
|
'aco_opcodes.cpp',
|
|
input : 'aco_opcodes_cpp.py',
|
|
output : 'aco_opcodes.cpp',
|
|
command : [prog_python, '@INPUT@'],
|
|
capture : true,
|
|
depend_files : aco_depends,
|
|
)
|
|
|
|
aco_builder_h = custom_target(
|
|
'aco_builder.h',
|
|
input : 'aco_builder_h.py',
|
|
output : 'aco_builder.h',
|
|
command : [prog_python, '@INPUT@'],
|
|
capture : true,
|
|
depend_files : aco_depends,
|
|
)
|
|
|
|
libaco_files = files(
|
|
'aco_dead_code_analysis.cpp',
|
|
'aco_dominance.cpp',
|
|
'aco_instruction_selection.cpp',
|
|
'aco_instruction_selection.h',
|
|
'aco_instruction_selection_setup.cpp',
|
|
'aco_interface.cpp',
|
|
'aco_interface.h',
|
|
'aco_ir.cpp',
|
|
'aco_ir.h',
|
|
'aco_assembler.cpp',
|
|
'aco_form_hard_clauses.cpp',
|
|
'aco_insert_delay_alu.cpp',
|
|
'aco_insert_exec_mask.cpp',
|
|
'aco_insert_NOPs.cpp',
|
|
'aco_insert_waitcnt.cpp',
|
|
'aco_reduce_assign.cpp',
|
|
'aco_register_allocation.cpp',
|
|
'aco_live_var_analysis.cpp',
|
|
'aco_lower_branches.cpp',
|
|
'aco_lower_phis.cpp',
|
|
'aco_lower_subdword.cpp',
|
|
'aco_lower_to_cssa.cpp',
|
|
'aco_lower_to_hw_instr.cpp',
|
|
'aco_optimizer.cpp',
|
|
'aco_optimizer_postRA.cpp',
|
|
'aco_opt_value_numbering.cpp',
|
|
'aco_print_asm.cpp',
|
|
'aco_print_ir.cpp',
|
|
'aco_reindex_ssa.cpp',
|
|
'aco_repair_ssa.cpp',
|
|
'aco_scheduler.cpp',
|
|
'aco_scheduler_ilp.cpp',
|
|
'aco_spill.cpp',
|
|
'aco_ssa_elimination.cpp',
|
|
'aco_statistics.cpp',
|
|
'aco_util.h',
|
|
'aco_validate.cpp',
|
|
)
|
|
|
|
cpp_args_aco = cpp.get_supported_arguments(['-fno-exceptions', '-fno-rtti', '-Wimplicit-fallthrough', '-Wshadow'])
|
|
|
|
_libaco = static_library(
|
|
'aco',
|
|
[libaco_files, aco_opcodes_c, aco_opcodes_h, aco_builder_h],
|
|
include_directories : [
|
|
inc_include, inc_src, inc_amd, inc_amd_common,
|
|
],
|
|
dependencies : [
|
|
dep_llvm, dep_thread, dep_valgrind, idep_nir_headers, idep_amdgfxregs_h, idep_mesautil,
|
|
],
|
|
gnu_symbol_visibility : 'hidden',
|
|
build_by_default : true,
|
|
cpp_args : [cpp_args_aco, cpp_msvc_compat_args],
|
|
)
|
|
|
|
# Also link with aco
|
|
idep_aco = declare_dependency(
|
|
include_directories : include_directories('.'),
|
|
link_with : _libaco,
|
|
sources : [aco_opcodes_h, aco_builder_h],
|
|
)
|