[code-reflection] RFR: ModuleOp generation from LambdaOp and FuncOp [v5]

Ruby Chen duke at openjdk.org
Wed Dec 3 20:31:59 UTC 2025


> Add support for generating a ModuleOp from either a LambdaOp or a FuncOp. The given LambdaOp will be converted into the root FuncOp, and the given FuncOp will be assigned as the root FuncOp.
> 
> For `CoreOp.ModuleOp.ofLambdaOp()`, a unique name for the new root FuncOp must be passed as a parameter.

Ruby Chen has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains eight additional commits since the last revision:

 - Add tests
 - Merge branch 'openjdk:code-reflection' into module-op-support
 - removing commented code
 - Suggested changes
 - Merge branch 'openjdk:code-reflection' into module-op-support
 - Merge branch 'openjdk:code-reflection' into module-op-support
 - Update src/jdk.incubator.code/share/classes/jdk/incubator/code/dialect/core/CoreOp.java
   
   Co-authored-by: Paul Sandoz <paul.d.sandoz at googlemail.com>
 - ModuleOp generation from LambdaOp and FuncOp

-------------

Changes:
  - all: https://git.openjdk.org/babylon/pull/691/files
  - new: https://git.openjdk.org/babylon/pull/691/files/74910c50..ad4bc853

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=babylon&pr=691&range=04
 - incr: https://webrevs.openjdk.org/?repo=babylon&pr=691&range=03-04

  Stats: 4533 lines in 93 files changed: 3503 ins; 669 del; 361 mod
  Patch: https://git.openjdk.org/babylon/pull/691.diff
  Fetch: git fetch https://git.openjdk.org/babylon.git pull/691/head:pull/691

PR: https://git.openjdk.org/babylon/pull/691


More information about the babylon-dev mailing list