aco: refactor reduction lowering helpers
authorRhys Perry <pendingchaos02@gmail.com>
Mon, 11 Nov 2019 17:37:43 +0000 (17:37 +0000)
committerRhys Perry <pendingchaos02@gmail.com>
Tue, 19 Nov 2019 18:56:21 +0000 (18:56 +0000)
commit33277bd66e32d50a96b7cd5dfe73a6a962138ea2
tree1eb12eca3e30dd2bbd10f457a69cb10fab3a6cf6
parentc93f2cefd544fa3b0c747cee5c5800cafdd5a4cb
aco: refactor reduction lowering helpers

Should make 64-bit integer reductions easier to implement.

v4: use num_opcodes instead of last_opcode

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev> (v3)
src/amd/compiler/aco_lower_to_hw_instr.cpp