Alyssa Rosenzweig
94b01ddcdd
nir: Use u_worklist to back nir_block_worklist
...
u_worklist is nir_block_worklist, suitably generalized. All we need to do is
define the macros to translate between the APIs.
Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16046 >
2022-04-25 23:50:57 +00:00
Emma Anholt
5251548572
nir: Add a nir_instr_remove that recursively removes dead code.
...
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11628 >
2021-07-06 11:24:43 -07:00
Juha-Pekka Heikkila
3bf6c6c3ad
nir: zero allocated memory where needed
...
Signed-off-by: Marek Olšák <marek.olsak@amd.com>
2016-10-31 11:53:38 +01:00
Connor Abbott
a471c161b1
nir/nir_worklist: fixup for new foreach_block()
...
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
2016-04-28 15:52:17 -07:00
Connor Abbott
b6dc940ec2
nir: rename nir_foreach_block*() to nir_foreach_block*_call()
...
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
2016-04-20 09:47:05 -07:00
Emil Velikov
a39a8fbbaa
nir: move to compiler/
...
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Acked-by: Matt Turner <mattst88@gmail.com>
Acked-by: Jose Fonseca <jfonseca@vmware.com>
2016-01-26 16:08:30 +00:00