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: helpers for IRDL construct type access. #3025

Merged
merged 9 commits into from
Aug 13, 2024

Conversation

PapyChacal
Copy link
Collaborator

@PapyChacal PapyChacal commented Aug 13, 2024

Implement simple type access helpers, but for IRDL

@PapyChacal PapyChacal added the core xDSL core (ir, textual format, ...) label Aug 13, 2024
@PapyChacal PapyChacal self-assigned this Aug 13, 2024
@PapyChacal PapyChacal changed the base branch from main to emilien/types-helpers August 13, 2024 13:17
Base automatically changed from emilien/types-helpers to main August 13, 2024 13:18
@PapyChacal PapyChacal marked this pull request as ready for review August 13, 2024 13:21
Copy link

codecov bot commented Aug 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.86%. Comparing base (b04032f) to head (04a31b5).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3025   +/-   ##
=======================================
  Coverage   89.85%   89.86%           
=======================================
  Files         412      412           
  Lines       51823    51834   +11     
  Branches     8033     8004   -29     
=======================================
+ Hits        46565    46579   +14     
+ Misses       3967     3966    -1     
+ Partials     1291     1289    -2     

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

class VarOpResult(tuple[OpResult, ...]):
@property
def types(self):
return tuple(r.type for r in self)
Copy link
Collaborator

Choose a reason for hiding this comment

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

this is great if this doesn't need an or [[]]

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This wasn't actually needed where you used it 🙂 Happy to discuss it in chat if you're curious

Copy link
Member

@superlopuh superlopuh left a comment

Choose a reason for hiding this comment

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

I like it

@PapyChacal PapyChacal merged commit 18419e5 into main Aug 13, 2024
10 checks passed
@PapyChacal PapyChacal deleted the emilien/irdl-types-helpers branch August 13, 2024 13:44
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.

3 participants