aco/isel: Add documentation and asserts for convert_int
authorTony Wasserka <tony.wasserka@gmx.de>
Fri, 12 Mar 2021 10:25:06 +0000 (11:25 +0100)
committerMarge Bot <eric+marge@anholt.net>
Fri, 26 Mar 2021 14:39:23 +0000 (14:39 +0000)
commit4ce8e422e3c9d845a5f8a4b5baf3514c3b3ff8d7
tree79bb948d4c15bae87a9cd8fc43714ba8b83f4faf
parent1e03796fa4cf4016a44ae1d31d33e179985a35d4
aco/isel: Add documentation and asserts for convert_int

This function has evolved to be a generic helper function used throughout
the file, so having those assumptions written down explicitly and document
unsupported edge cases should help prevent incorrect use.

Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9597>
src/amd/compiler/aco_instruction_selection.cpp