nir/print: annotate entrypoints

we can have multiple in a collection of OpenCL kernels.

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32208>
This commit is contained in:
Alyssa Rosenzweig 2024-11-17 18:16:23 -04:00 committed by Marge Bot
parent eebfbf5ecd
commit 6b35d7eb13

View File

@ -2339,9 +2339,10 @@ print_function(nir_function *function, print_state *state)
fprintf(fp, ")"); fprintf(fp, ")");
/* clang-format off */ /* 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->should_inline ? " (inline)" : "",
function->is_exported ? " (exported)" : ""); function->is_exported ? " (exported)" : "",
function->is_entrypoint ? " (entrypoint)" : "");
/* clang-format on */ /* clang-format on */
fprintf(fp, "\n"); fprintf(fp, "\n");