nir/source_mods: Add a helpers for setting source modifiers
authorJason Ekstrand <jason@jlekstrand.net>
Mon, 6 May 2019 20:30:36 +0000 (15:30 -0500)
committerJason Ekstrand <jason@jlekstrand.net>
Fri, 24 May 2019 13:38:11 +0000 (08:38 -0500)
commit2a39788d03789af643a957da8b8ebd2d5f0218aa
tree50b5847623aa860a1d326e84f25275724f1356e3
parent8ffbb5440564f6a6c00a73997f554e6c4005783f
nir/source_mods: Add a helpers for setting source modifiers

It's potentially a tiny bit less efficient but the helpers make it much
easier to sort out the rules for updating source modifiers.

Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com>
Acked-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
src/compiler/nir/nir_lower_to_source_mods.c