nir: Split nir_lower_io's input/output/atomic handling into helpers.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 12 Jul 2016 09:07:29 +0000 (02:07 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Sat, 16 Jul 2016 00:17:10 +0000 (17:17 -0700)
commit50b9bb94219ae443d81cda1b15cda519d48dbdc7
tree9df8453407131713110a62caa5301ab86d1b5bb2
parente12e4af780d8f8973021c43fe27d44fefca2df4c
nir: Split nir_lower_io's input/output/atomic handling into helpers.

The original function was becoming a bit hard to read, with the details
of creating and filling out load/store/atomic atomics all in one
function.

This patch makes helpers for creating each type of intrinsic, and also
combines them with the *_op() helpers, as they're closely coupled and
not too large.

v2: Minor style nits from Jason.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/compiler/nir/nir_lower_io.c