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

Implement break and continue #33

Merged
merged 3 commits into from
Sep 29, 2024
Merged

Implement break and continue #33

merged 3 commits into from
Sep 29, 2024

Conversation

wpmed92
Copy link
Owner

@wpmed92 wpmed92 commented Sep 27, 2024

  • Implement break and continue inside loops
  • Add break/continue tests
  • Refactor current loop tests

Breaking out of structured control flows in spirv mlir is tricky, as you can't directly access the merge and continue blocks from inside a selection block, and there are other cirteria for SCF in spirv mlir which has to be respected.
To solve this I'm using hidden control variables that are set when breaks and continues are encountered.

@wpmed92 wpmed92 merged commit 57339ce into main Sep 29, 2024
1 check passed
@wpmed92 wpmed92 deleted the break-continue branch September 29, 2024 13:31
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.

1 participant