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

dialect: (riscv_snitch) prettify frep custom syntax #1791

Merged
merged 2 commits into from
Nov 23, 2023

Conversation

superlopuh
Copy link
Member

No description provided.

@superlopuh superlopuh added the dialects Changes on the dialects label Nov 15, 2023
@superlopuh superlopuh self-assigned this Nov 15, 2023
def print(self, printer: Printer) -> None:
printer.print_string(" ")
printer.print_ssa_value(self.max_rep)
if self.stagger_count.data and self.stagger_mask.data:
Copy link
Member Author

Choose a reason for hiding this comment

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

AFAIK we don't actually ahve any use cases for these values, so might as well not print them by default

Copy link
Collaborator

Choose a reason for hiding this comment

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

This got me thinking if having a zero mask and an actual stagger count does anything or if it's even legal.

Copy link
Member Author

Choose a reason for hiding this comment

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

I bet it's legal and probably does nothing, a problem for the future :)

Copy link

codecov bot commented Nov 15, 2023

Codecov Report

Attention: 7 lines in your changes are missing coverage. Please review.

Comparison is base (4fd9a3a) 88.92% compared to head (30f5237) 88.91%.

Files Patch % Lines
xdsl/dialects/riscv_snitch.py 73.07% 5 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1791      +/-   ##
==========================================
- Coverage   88.92%   88.91%   -0.02%     
==========================================
  Files         260      260              
  Lines       32088    32102      +14     
  Branches     4733     4736       +3     
==========================================
+ Hits        28535    28542       +7     
- Misses       2861     2866       +5     
- Partials      692      694       +2     

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

def print(self, printer: Printer) -> None:
printer.print_string(" ")
printer.print_ssa_value(self.max_rep)
if self.stagger_count.data and self.stagger_mask.data:
Copy link
Collaborator

Choose a reason for hiding this comment

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

This got me thinking if having a zero mask and an actual stagger count does anything or if it's even legal.

@tobiasgrosser
Copy link
Contributor

This seems to be good-to-go. Should we merge it?

@superlopuh superlopuh merged commit 3fe2047 into main Nov 23, 2023
10 checks passed
@superlopuh superlopuh deleted the sasha/riscv/frep-custom-format branch November 23, 2023 11:53
@superlopuh
Copy link
Member Author

Thank you for the reminder

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dialects Changes on the dialects
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants