Skip to content

Conversation

@ftynse
Copy link
Contributor

@ftynse ftynse commented Jan 8, 2026

We don't always have a value returned.

We don't always have a value returned.

Signed-off-by: Alex Zinenko <git@ozinenko.com>
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR modifies the wave.yield operation to allow an empty operand list, enabling the operation to be used when no values need to be returned from an iteration.

Key Changes:

  • Updated the assembly format for YieldOp to make the type specification optional when no values are yielded
  • Added a test case demonstrating the usage of wave.yield without operands

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
water/include/water/Dialect/Wave/IR/WaveOps.td Modified YieldOp assembly format to make type specification optional
water/test/Dialect/Wave/ops.mlir Added test case @empty_yield to verify empty wave.yield functionality

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Contributor

@martin-luecke martin-luecke left a comment

Choose a reason for hiding this comment

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

LGTM

@ftynse ftynse merged commit 8fa36fa into users/ftynse/harden-indexing-map-null Jan 9, 2026
14 of 15 checks passed
@ftynse ftynse deleted the users/ftynse/empty-yield branch January 9, 2026 09:42
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