[code-reflection] Integrated: HAT more consistent use of scoped code builder context + removed initialization of KernelContext in kernels
Gary Frost
gfrost at openjdk.org
Mon Sep 8 16:18:06 UTC 2025
On Mon, 8 Sep 2025 16:13:06 GMT, Gary Frost <gfrost at openjdk.org> wrote:
> More cleanup of C99 code gen for kernels and compute methods.
>
> We now pass in ScopedCodeBuildContext to both.
>
> We now inline map KernelContext accesses directly to appropriate methods for cuda and opencl
>
> So `kc.x` -> get_global_id(0) for opencl, rather than initializing a local KernelContext struct.
>
> This makes code gen less verbose.
This pull request has now been integrated.
Changeset: 4330ec27
Author: Gary Frost <gfrost at openjdk.org>
URL: https://git.openjdk.org/babylon/commit/4330ec273b9e9c1f1b9c3468fc635c8cd8a69650
Stats: 491 lines in 16 files changed: 104 ins; 295 del; 92 mod
HAT more consistent use of scoped code builder context + removed initialization of KernelContext in kernels
-------------
PR: https://git.openjdk.org/babylon/pull/555
More information about the babylon-dev
mailing list