spirv: parse unstructured CFG
authorKarol Herbst <kherbst@redhat.com>
Fri, 15 May 2020 10:47:53 +0000 (12:47 +0200)
committerMarge Bot <eric+marge@anholt.net>
Fri, 14 Aug 2020 20:35:37 +0000 (20:35 +0000)
commit217def3ac6721bc7d8a1f99d2fc4501e5ee8627d
treeb5a7c0849e2780411c07f5afa4ecff3868817957
parent467b90fcc46efdd5ce64a12937fedf507d0242ec
spirv: parse unstructured CFG

v2 (Boris Brezillon): handle functions with return values
v3: call structurizer
v4: entire rewrite
v5: fix handling of already visited default branches
v2 (Jason Ekstrand): Stop walking hash tables

Signed-off-by: Karol Herbst <kherbst@redhat.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Tested-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/2401>
src/compiler/nir/nir.c
src/compiler/spirv/spirv_to_nir.c
src/compiler/spirv/vtn_cfg.c
src/compiler/spirv/vtn_private.h