[code-reflection] Integrated: Hat lanewise binary op extraction experiment

Gary Frost gfrost at openjdk.org
Tue Jan 13 16:21:10 UTC 2026


Demonstrate that we can leverage the codemodels of lanewise vector style operations to determine the core binary op used in each lane.

So given

@Reflect
 static XY whoKnows(XY lhs, XY rhs) { #1
     return new XY(lhs.x * rhs.x, lhs.y * rhs.y);
  }
  @Reflect
   public XY whoKnows(XY xy) { // #2
     return whoKnows(this, xy);
   }
``` 
If we find a fluent method which takes a type and returns the type (whoKnows(XY xy)) we can determine the binary op it represents by  'recursivley' traversing the code models from an entrypoint

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

Commit messages:
 - Added lanewise binary op extraction experiment
 - Added lanewise binary op extraction experiment

Changes: https://git.openjdk.org/babylon/pull/839/files
  Webrev: https://webrevs.openjdk.org/?repo=babylon&pr=839&range=00
  Stats: 231 lines in 3 files changed: 226 ins; 0 del; 5 mod
  Patch: https://git.openjdk.org/babylon/pull/839.diff
  Fetch: git fetch https://git.openjdk.org/babylon.git pull/839/head:pull/839

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


More information about the babylon-dev mailing list