freedreno/ir3/ra: make use()/def() functions instead of macros
authorRob Clark <robdclark@chromium.org>
Tue, 22 Oct 2019 23:05:41 +0000 (16:05 -0700)
committerMarge Bot <eric+marge@anholt.net>
Sat, 1 Feb 2020 02:40:22 +0000 (02:40 +0000)
commit9a9f78f1f9f0019687eb374aae5abcd3b0617cf4
tree6d7e6798b53c4545854a2d25899cc8fdc036ca53
parenta5f24f966ae217981cd39e867a0de1fee029e740
freedreno/ir3/ra: make use()/def() functions instead of macros

Originally these were nested functions, which worked nicely, giving us
the function of a local macro that was actual 'c' syntax (ie. not token
pasted macro).  But these were converted to macros because clang doesn't
let us have nice gcc extensions.

Extract these back out into functions, before adding more things and
making the macros even more cumbersome.

Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3569>
src/freedreno/ir3/ir3_ra.c