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

core (traits): Fix implicit terminator when last op is unregistered #3604

Merged
merged 1 commit into from
Dec 9, 2024

Conversation

compor
Copy link
Collaborator

@compor compor commented Dec 9, 2024

This PR:

  • Fixes the implicit addition of a terminator when the last operation is an (allowed) unregisted operation
  • Adds a filecheck test for the above

Fixes #3325

@compor compor added the core xDSL core (ir, textual format, ...) label Dec 9, 2024
@compor compor self-assigned this Dec 9, 2024
%s = arith.constant 3 : index
scf.for %iv = %lb to %ub step %s {
%0 = arith.constant 0 : index
scf.for %iv = %0 to %0 step %0 {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Simplified the already existing test case to be inline with the new one added below.

@compor compor changed the title Fix implicit terminator when last op is unregistered (core): Fix implicit terminator when last op is unregistered Dec 9, 2024
@compor compor changed the title (core): Fix implicit terminator when last op is unregistered core (traits): Fix implicit terminator when last op is unregistered Dec 9, 2024
Copy link

codecov bot commented Dec 9, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.38%. Comparing base (00affad) to head (0cc0926).
Report is 5 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3604      +/-   ##
==========================================
- Coverage   90.38%   90.38%   -0.01%     
==========================================
  Files         469      469              
  Lines       59075    59072       -3     
  Branches     5615     5615              
==========================================
- Hits        53397    53393       -4     
  Misses       4232     4232              
- Partials     1446     1447       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

@alexarice alexarice left a comment

Choose a reason for hiding this comment

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

Seems good

@compor compor merged commit 5c383dd into main Dec 9, 2024
15 checks passed
@compor compor deleted the christos/core/traits/fix-implicit-terminators branch December 9, 2024 13:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core xDSL core (ir, textual format, ...)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

scf.for implicit terminators
3 participants