nir: add assertions that loops don't have a Continue Construct

Hoping that I didn't miss any, this *should* add assertions
to all functions and passes which explicitly handle 'nir_loop'.

Acked-by: Faith Ekstrand <faith.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13962>
This commit is contained in:
Daniel Schürmann
2021-12-02 10:31:56 +01:00
committed by Marge Bot
parent d4b97bf3fa
commit 2bb369dd8d
37 changed files with 49 additions and 0 deletions

View File

@@ -2952,6 +2952,7 @@ ntt_emit_if(struct ntt_compile *c, nir_if *if_stmt)
static void
ntt_emit_loop(struct ntt_compile *c, nir_loop *loop)
{
assert(!nir_loop_has_continue_construct(loop));
ntt_BGNLOOP(c);
ntt_emit_cf_list(c, &loop->body);
ntt_ENDLOOP(c);