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: Add results directive #3518

Merged
merged 1 commit into from
Nov 27, 2024
Merged

core: Add results directive #3518

merged 1 commit into from
Nov 27, 2024

Conversation

alexarice
Copy link
Collaborator

Adds a results directive to the assembly format. Very similar to the operands directive (#3507) but is not a FormatDirective, so must be used as part of a type or functional-type directive. I wonder if it's worth making a shared subclass for this and the operands directive to deduplicate some code. If so I can rebase on top of that PR.

Stacked on #3516. Draft as this needs more tests

@alexarice alexarice added the core xDSL core (ir, textual format, ...) label Nov 25, 2024
@alexarice alexarice self-assigned this Nov 25, 2024
Copy link

codecov bot commented Nov 25, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.35%. Comparing base (9bc6dc1) to head (e46d8ac).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff            @@
##             main    #3518    +/-   ##
========================================
  Coverage   90.34%   90.35%            
========================================
  Files         465      465            
  Lines       58340    58459   +119     
  Branches     5574     5581     +7     
========================================
+ Hits        52708    52821   +113     
- Misses       4202     4207     +5     
- Partials     1430     1431     +1     

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

@alexarice alexarice changed the base branch from alexarice/assembly-parse-type to alexarice/operands-directive November 26, 2024 09:46
@alexarice alexarice marked this pull request as ready for review November 26, 2024 09:58
@alexarice
Copy link
Collaborator Author

Rebased on top of operands-directive PR, made a shared superclass for the shared functionality, and added a tonne of tests.

@alexarice
Copy link
Collaborator Author

@superlopuh were you happy with the preceding PRs this sits on top of?

Base automatically changed from alexarice/operands-directive to main November 27, 2024 11:00
@alexarice alexarice merged commit dcc1239 into main Nov 27, 2024
15 checks passed
@alexarice alexarice deleted the alexarice/results-directive branch November 27, 2024 11:15
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.

2 participants