mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2024-11-27 04:04:23 +08:00
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:
parent
eebfbf5ecd
commit
6b35d7eb13
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user