Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(WIP) Add IdealGraphVisualizer Support #19336

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jmesyou
Copy link
Contributor

@jmesyou jmesyou commented Apr 18, 2024

This commit adds support for the IdealGraphVisualizer application that is packaged as part of OpenJDK. Supporting classes are added to the ras directory, with a small change in J9::Compilation to enable writing out of trees.

IdealGraphVisualizer is a compiler IR visualization that currently supports the HotSpot JIT compiler as part of OpenJDK. However, the schema for its data format for encoding IR is well-defined and this change adapts Testarossa's IL to be suitable for that format.

The follow additions to runtime/compiler/ras are:

  • DataSink Abstraction for destination to write IL to, IGV supports XML files as well direct dumping via sockets.
  • MethodTreeWriter Abstraction for defining data format for IL
  • XMLMethodTreeWriter Concrete subclass to that writes methods trees out in XML

This commit adds support for the IdealGraphVisualizer application
that is packaged as part of OpenJDK. Supporting classes are added to
the `ras` directory, with a small change in J9::Compilation to enable
writing out of trees.

IdealGraphVisualizer is a compiler IR visualization that currently
supports the HotSpot JIT compiler as part of OpenJDK. However, the
schema for its data format for encoding IR is well-defined and this
change adapts Testarossa's IL to be suitable for that format.

The follow additions to `runtime/compiler/ras` are:
- DataSink
  Abstraction for destination to write IL to, IGV
  supports XML files as well direct dumping via
  sockets.
- MethodTreeWriter
  Abstraction for defining data format for IL
- XMLMethodTreeWriter
  Concrete subclass to that writes methods trees
  out in XML

Signed-off-by: James You <james.you@protonmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants