[code-reflection] Integrated: Quick hack to allow us to override codegen with annotation
Gary Frost
gfrost at openjdk.org
Mon Oct 20 16:04:41 UTC 2025
On Mon, 20 Oct 2025 15:51:58 GMT, Gary Frost <gfrost at openjdk.org> wrote:
> This allows us to override codegen (for experiments and to prototype cogegen fixes)
>
> Add this to @CodeReflection annotated kernel entrypoints.
>
>
> @Kernel("""
> //kernel code
> """)
>
>
> If you need to add a new type (shared private mem)
>
> @TypeDef("""
> typedef struct SharedS32x256Array_s{
> int array[32];
> }SharedS32x256Array_t;
> """ )
>
>
> See PrefixSum as an example.
This pull request has now been integrated.
Changeset: d6ec0a5f
Author: Gary Frost <gfrost at openjdk.org>
URL: https://git.openjdk.org/babylon/commit/d6ec0a5f0a2ff334a58e2d2bfcaff6d658f5f5d4
Stats: 135 lines in 4 files changed: 68 ins; 32 del; 35 mod
Quick hack to allow us to override codegen with annotation
-------------
PR: https://git.openjdk.org/babylon/pull/622
More information about the babylon-dev
mailing list