From 6b35d7eb136324132619ed032eefa6c6db5cab19 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Sun, 17 Nov 2024 18:16:23 -0400 Subject: [PATCH] nir/print: annotate entrypoints MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit we can have multiple in a collection of OpenCL kernels. Signed-off-by: Alyssa Rosenzweig Reviewed-by: Marek Olšák Part-of: --- src/compiler/nir/nir_print.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/compiler/nir/nir_print.c b/src/compiler/nir/nir_print.c index 4abfcf9fa7e..320ce8ba443 100644 --- a/src/compiler/nir/nir_print.c +++ b/src/compiler/nir/nir_print.c @@ -2339,9 +2339,10 @@ print_function(nir_function *function, print_state *state) fprintf(fp, ")"); /* clang-format off */ - fprintf(fp, "%s%s", function->dont_inline ? " (noinline)" : + fprintf(fp, "%s%s%s", function->dont_inline ? " (noinline)" : function->should_inline ? " (inline)" : "", - function->is_exported ? " (exported)" : ""); + function->is_exported ? " (exported)" : "", + function->is_entrypoint ? " (entrypoint)" : ""); /* clang-format on */ fprintf(fp, "\n");