[code-reflection] RFR: Opening Hat Dialect for Handling Barriers and Shared/Private Memory

Juan Fumero jfumero at openjdk.org
Thu Sep 18 14:26:48 UTC 2025


On Wed, 10 Sep 2025 17:30:01 GMT, Paul Sandoz <psandoz at openjdk.org> wrote:

>> 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 `Op`s 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.
>
> hat/core/src/main/java/hat/dialect/HatOP.java line 35:
> 
>> 33: import java.util.List;
>> 34: 
>> 35: public class HatOP extends Op {
> 
> Is this intended to be an abstract class that all hat dialect ops extend from? If you you don't need the `typeElement` field and it does not need to implement `transform` nor `resultType`.

Thanks Paul. Yes, it makes sense.

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

PR Review Comment: https://git.openjdk.org/babylon/pull/560#discussion_r2338566774


More information about the babylon-dev mailing list