[code-reflection] Integrated: Rearrange lowering.
Paul Sandoz
psandoz at openjdk.org
Fri Aug 22 19:43:13 UTC 2025
On Thu, 21 Aug 2025 22:53:38 GMT, Paul Sandoz <psandoz at openjdk.org> wrote:
> Improve the composition of operation transformations for lowering.
>
> - An operation transformation function can be adapted to lower lowerable operations or copy, thereby we don't have to repeat that logic many times.
> - Composing transformer methods are moved to static methods, thereby better handling a null transformer. We compose with a given `OpTransformer` and a `BiFunction<Block.Builder, Op, Block.Builder>` that represents the transformation of operations.
> - The lowerable interface is simplified to just one method
> - An initiating lowerable transformation passes a null transformer when lowering a lowerable op.
This pull request has now been integrated.
Changeset: 4a88aba6
Author: Paul Sandoz <psandoz at openjdk.org>
URL: https://git.openjdk.org/babylon/commit/4a88aba6599137f550bfcd13469ca9ebcc2c1ff2
Stats: 410 lines in 5 files changed: 101 ins; 180 del; 129 mod
Rearrange lowering.
-------------
PR: https://git.openjdk.org/babylon/pull/529
More information about the babylon-dev
mailing list