Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

jjfumero
Copy link
Member

@jjfumero jjfumero commented Sep 10, 2025

This patch creates a new dialect for HAT for handling barriers, local (or shared) memory declaration of types, and private memory declariton. It extends the Ops provided by code-reflection with a new HatOp the dialect.

It is enabled by default.

TODO: We should move the Hat Config to a common place to be able to use it in the Hat core module, not just in the code gen.


Progress

  • Change must not contain extraneous whitespace

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.org/babylon.git pull/560/head:pull/560
$ git checkout pull/560

Update a local copy of the PR:
$ git checkout pull/560
$ git pull https://git.openjdk.org/babylon.git pull/560/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 560

View PR using the GUI difftool:
$ git pr show -t 560

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/babylon/pull/560.diff

Using Webrev

Link to Webrev Comment

@jjfumero jjfumero changed the title Opening Hat Dialect Opening Hat Dialect for Handling Barriers Sep 10, 2025
@bridgekeeper
Copy link

bridgekeeper bot commented Sep 10, 2025

👋 Welcome back jfumero! A progress list of the required criteria for merging this PR into code-reflection will be added to the body of your pull request. There are additional pull request commands available for use with this pull request.

@openjdk
Copy link

openjdk bot commented Sep 10, 2025

@jjfumero This change now passes all automated pre-integration checks.

ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details.

After integration, the commit message for the final commit will be:

Opening Hat Dialect for Handling Barriers and Shared/Private Memory

You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed.

At the time when this comment was updated there had been no new commits pushed to the code-reflection branch. If another commit should be pushed before you perform the /integrate command, your PR will be automatically rebased. If you prefer to avoid any potential automatic rebasing, please check the documentation for the /integrate command for further details.

➡️ To integrate this PR with the above commit message to the code-reflection branch, type /integrate in a new comment.


@Override
public TypeElement resultType() {
return typeElement;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
return typeElement;
return JavaType.VOID;

@jjfumero jjfumero self-assigned this Sep 11, 2025
@jjfumero jjfumero changed the title Opening Hat Dialect for Handling Barriers Opening Hat Dialect for Handling Barriers and Shared/Private Memory Sep 18, 2025
@jjfumero jjfumero requested a review from grfrost September 18, 2025 14:21
@jjfumero jjfumero marked this pull request as ready for review September 18, 2025 14:22
@openjdk openjdk bot added the ready Pull request is ready to be integrated label Sep 18, 2025
@openjdk openjdk bot added the rfr Pull request is ready for review label Sep 18, 2025
@mlbridge
Copy link

mlbridge bot commented Sep 18, 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready Pull request is ready to be integrated rfr Pull request is ready for review
Development

Successfully merging this pull request may close these issues.

2 participants