[code-reflection] RFR: Example use of code reflection in translating Java to SPIR-V [v4]
Steve Dohrmann
duke at openjdk.org
Thu Mar 14 17:08:58 UTC 2024
> Example code showing use of code reflection in translation from Java to SPIR-V intermediate language. For more information on SPIR-V see [https://www.khronos.org/spir](https://www.khronos.org/spir).
>
> Translates from a Java CoreOps.FuncOp object to a SpirvOps.FuncOp object and then to an entry point in a SPIR-V binary module. One test is included that demonstrates use and renders the Java model, SPIR-V model, and disassembled binary representations of an example Java method.
>
> A subsequent pull-request will provide additional test code, including the ability to test SPIR-V binaries on GPU hardware.
>
> Dependencies:
>
> This code depends on a Java SPIR-V builder API (https://github.com/beehive-lab/beehive-spirv-toolkit). The toolkit can be installed locally with:
>
> git clone https://github.com/beehive-lab/beehive-spirv-toolkit
> cd beehive-spirv-toolkit
> mvn clean install
Steve Dohrmann has updated the pull request incrementally with one additional commit since the last revision:
fix field ref initialization
-------------
Changes:
- all: https://git.openjdk.org/babylon/pull/38/files
- new: https://git.openjdk.org/babylon/pull/38/files/fd43459c..691169a2
Webrevs:
- full: https://webrevs.openjdk.org/?repo=babylon&pr=38&range=03
- incr: https://webrevs.openjdk.org/?repo=babylon&pr=38&range=02-03
Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
Patch: https://git.openjdk.org/babylon/pull/38.diff
Fetch: git fetch https://git.openjdk.org/babylon.git pull/38/head:pull/38
PR: https://git.openjdk.org/babylon/pull/38
More information about the babylon-dev
mailing list