aco: Remove use of deprecated Operand constructors
authorTony Wasserka <tony.wasserka@gmx.de>
Tue, 13 Jul 2021 09:22:46 +0000 (11:22 +0200)
committerMarge Bot <eric+marge@anholt.net>
Tue, 13 Jul 2021 17:43:26 +0000 (17:43 +0000)
commit66e51dc4747954b1dc3a3259b2a9ba86f6502a27
treeea0bd3872c64b173e18b19bb255455ad87edd627
parent76554419b3a3e73186842ca3e1bbf860de9532ed
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@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11653>
19 files changed:
src/amd/compiler/aco_assembler.cpp
src/amd/compiler/aco_insert_NOPs.cpp
src/amd/compiler/aco_insert_exec_mask.cpp
src/amd/compiler/aco_instruction_selection.cpp
src/amd/compiler/aco_ir.h
src/amd/compiler/aco_lower_phis.cpp
src/amd/compiler/aco_lower_to_hw_instr.cpp
src/amd/compiler/aco_optimizer.cpp
src/amd/compiler/aco_optimizer_postRA.cpp
src/amd/compiler/aco_spill.cpp
src/amd/compiler/tests/helpers.cpp
src/amd/compiler/tests/test_assembler.cpp
src/amd/compiler/tests/test_hard_clause.cpp
src/amd/compiler/tests/test_insert_nops.cpp
src/amd/compiler/tests/test_optimizer.cpp
src/amd/compiler/tests/test_optimizer_postRA.cpp
src/amd/compiler/tests/test_regalloc.cpp
src/amd/compiler/tests/test_sdwa.cpp
src/amd/compiler/tests/test_to_hw_instr.cpp