spirv: parse unstructured CFG

Graphics / Mesa 3D Graphics Library / Mesa - Karol Herbst [redhat.com] - 14 August 2020 20:35 UTC

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

217def3ac67 spirv: parse unstructured CFG
src/compiler/nir/nir.c | 2 -
src/compiler/spirv/spirv_to_nir.c | 3 +
src/compiler/spirv/vtn_cfg.c | 147 +++++++++++++++++++++++++++++++++++++-
src/compiler/spirv/vtn_private.h | 3 +
4 files changed, 152 insertions(+), 3 deletions(-)

Upstream: cgit.freedesktop.org


  • Share