Mesa (main): aco: Remove use of deprecated Operand constructors
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue Jul 13 18:00:03 UTC 2021
Module: Mesa
Branch: main
Commit: 66e51dc4747954b1dc3a3259b2a9ba86f6502a27
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=66e51dc4747954b1dc3a3259b2a9ba86f6502a27
Author: Tony Wasserka <tony.wasserka at gmx.de>
Date: Tue Jul 13 11:22:46 2021 +0200
aco: Remove use of deprecated Operand constructors
This migration was done with libclang-based automatic tooling, which
performed these replacements:
* Operand(uint8_t) -> Operand::c8
* Operand(uint16_t) -> Operand::c16
* Operand(uint32_t, false) -> Operand::c32
* Operand(uint32_t, bool) -> Operand::c32_or_c64
* Operand(uint64_t) -> Operand::c64
* Operand(0) -> Operand::zero(num_bytes)
Casts that were previously used for constructor selection have automatically
been removed (e.g. Operand((uint16_t)1) -> Operand::c16(1)).
Reviewed-by: Timur Kristóf <timur.kristof at gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11653>
---
src/amd/compiler/aco_assembler.cpp | 14 +-
src/amd/compiler/aco_insert_NOPs.cpp | 2 +-
src/amd/compiler/aco_insert_exec_mask.cpp | 12 +-
src/amd/compiler/aco_instruction_selection.cpp | 1290 +++++++++++-----------
src/amd/compiler/aco_ir.h | 10 +-
src/amd/compiler/aco_lower_phis.cpp | 10 +-
src/amd/compiler/aco_lower_to_hw_instr.cpp | 232 ++--
src/amd/compiler/aco_optimizer.cpp | 36 +-
src/amd/compiler/aco_optimizer_postRA.cpp | 2 +-
src/amd/compiler/aco_spill.cpp | 20 +-
src/amd/compiler/tests/helpers.cpp | 15 +-
src/amd/compiler/tests/test_assembler.cpp | 16 +-
src/amd/compiler/tests/test_hard_clause.cpp | 89 +-
src/amd/compiler/tests/test_insert_nops.cpp | 37 +-
src/amd/compiler/tests/test_optimizer.cpp | 216 ++--
src/amd/compiler/tests/test_optimizer_postRA.cpp | 73 +-
src/amd/compiler/tests/test_regalloc.cpp | 2 +-
src/amd/compiler/tests/test_sdwa.cpp | 148 ++-
src/amd/compiler/tests/test_to_hw_instr.cpp | 147 ++-
19 files changed, 1252 insertions(+), 1119 deletions(-)
Diff: http://cgit.freedesktop.org/mesa/mesa/diff/?id=66e51dc4747954b1dc3a3259b2a9ba86f6502a27
More information about the mesa-commit
mailing list