[Mesa-dev] [PATCH] nir: add support for structured COME FROM
Connor Abbott
cwabbott0 at gmail.com
Wed Apr 1 09:18:34 PDT 2015
Unfortunately, we can't support unstructured COME FROM yet, since we
can't structurize arbitrary control flow graphs. Also TODO is adding
support for threading by having multiple come_from's point to the same
unconditional branch, as well as various other INTERCAL features.
Signed-off-by: Connor Abbott <cwabbott0 at gmail.com>
---
src/glsl/nir/nir_print.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/src/glsl/nir/nir_print.c b/src/glsl/nir/nir_print.c
index fa11a31..2086e21 100644
--- a/src/glsl/nir/nir_print.c
+++ b/src/glsl/nir/nir_print.c
@@ -655,12 +655,10 @@ print_block(nir_block *block, print_var_state *state, unsigned tabs, FILE *fp)
qsort(preds, block->predecessors->entries, sizeof(nir_block *),
compare_block_index);
- print_tabs(tabs, fp);
- fprintf(fp, "/* preds: ");
for (unsigned i = 0; i < block->predecessors->entries; i++) {
- fprintf(fp, "block_%u ", preds[i]->index);
+ print_tabs(tabs, fp);
+ fprintf(fp, "come_from %u\n", preds[i]->index);
}
- fprintf(fp, "*/\n");
free(preds);
--
2.1.0
More information about the mesa-dev
mailing list