Skip to content

Conversation

@ftynse
Copy link
Contributor

@ftynse ftynse commented Sep 10, 2025

This allows to remove the dependency at build/CI time and co-develop the
dialect inside Wave tree.

Both source bases are licensed under Apache 2 with LLVM exceptions, so
there is no additional work needed there.

Co-authored-by: Martin Lücke martin.luecke@amd.com
Co-authored-by: Ivan Butygin ivan.butygin@gmail.com

@ftynse ftynse force-pushed the users/ftynse/vendor-water-2 branch 2 times, most recently from 46033b0 to 6294014 Compare September 10, 2025 19:32
@ftynse
Copy link
Contributor Author

ftynse commented Sep 10, 2025

This is the minimal amount of code that preserves Wave tests. The rest should be landed separately.

@ftynse ftynse marked this pull request as ready for review September 10, 2025 19:39
Copy link
Collaborator

@harsh-nod harsh-nod left a comment

Choose a reason for hiding this comment

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

overall looks great! I noticed this has nothing about the Wave Dialect but I imagine that is coming in the next few PRs?

//
// Licensed under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
Copy link
Collaborator

Choose a reason for hiding this comment

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

Could you add some documentation on these 2 passes similar to what we have in the read the docs page?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This documentation is available in Passes.td. At some later point, we may auto-generate a web version of that, but these are implementation details that need not be exposed to the user.

Copy link
Collaborator

Choose a reason for hiding this comment

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

I agree that these are details that most kernel authors won't need (at least initially), but would be great to have a description of the pass with an example (see https://wave-lang.readthedocs.io/en/latest/wave/shared_memory.html). But this is fine for now and we can iterate on it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Examples in the documentation get outdated within weeks and is rarely updated when the logic changes. A somewhat better solution is to add a pointer to a test exercising the pass, those at least have to be modified when pass behavior or IR syntax changes. They can be moved/removed, but it happens less frequently.

This allows to remove the dependency at build/CI time and co-develop the
dialect inside Wave tree.

Both source bases are licensed under Apache 2 with LLVM exceptions, so
there is no additional work needed there.

Co-authored-by: Martin Lücke <martin.luecke@amd.com>
Co-authored-by: Ivan Butygin <ivan.butygin@gmail.com>
Co-authored-by: Tim Gymnich <tim.gymnich@amd.com>

Signed-off-by: Alex Zinenko <git@ozinenko.com>
@ftynse ftynse force-pushed the users/ftynse/vendor-water-2 branch from 6294014 to d4efc27 Compare September 16, 2025 13:54
@ftynse
Copy link
Contributor Author

ftynse commented Sep 16, 2025

I noticed this has nothing about the Wave Dialect but I imagine that is coming in the next few PRs?

As the comment above says, this is the strict minimal amount allowing to remove the dependency. I am not particularly keen on squashing even this amount of history, but this is a trade-off with relanding each commit separately.

@harsh-nod harsh-nod self-requested a review September 17, 2025 14:37
Copy link
Collaborator

@harsh-nod harsh-nod left a comment

Choose a reason for hiding this comment

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

thanks for integrating this!

@ftynse ftynse merged commit dc7d381 into main Sep 19, 2025
34 of 37 checks passed
@ftynse ftynse deleted the users/ftynse/vendor-water-2 branch September 19, 2025 09:26
@ftynse ftynse mentioned this pull request Oct 3, 2025
Megan0704-1 pushed a commit to Megan0704-1/wave that referenced this pull request Oct 28, 2025
This allows to remove the dependency at build/CI time and co-develop the
dialect inside Wave tree.

Both source bases are licensed under Apache 2 with LLVM exceptions, so
there is no additional work needed there.

Co-authored-by: Martin Lücke <martin.luecke@amd.com>
Co-authored-by: Ivan Butygin <ivan.butygin@gmail.com>
Co-authored-by: Tim Gymnich <tim.gymnich@amd.com>

Signed-off-by: Alex Zinenko <git@ozinenko.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants