[code-reflection] Integrated: implemented preprocessor hook for OpenCL code gen
Gary Frost
gfrost at openjdk.org
Fri Oct 3 15:29:02 UTC 2025
On Fri, 3 Oct 2025 15:22:05 GMT, Gary Frost <gfrost at openjdk.org> wrote:
> Here we leverage OpenCL's ability to lean on the C99 preprocessor to generate C99 code.
>
> Instead of having OpenCL generator differentiate, we get the OpenCL code builder to define a set of #defines and generate backend 'neutral' C99 code (common between Cuda and OpenCL).
>
> This PR just has the OpenCL changes. Cuda changes will be next
This pull request has now been integrated.
Changeset: d1bd5d57
Author: Gary Frost <gfrost at openjdk.org>
URL: https://git.openjdk.org/babylon/commit/d1bd5d57d38573c536ec5c4d48b248c0e4b4a1cb
Stats: 250 lines in 10 files changed: 90 ins; 44 del; 116 mod
implemented preprocessor hook for OpenCL code gen
-------------
PR: https://git.openjdk.org/babylon/pull/600
More information about the babylon-dev
mailing list