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: Implement TypedAttribute, leverage in declarative assembly format. #2493

Merged
merged 15 commits into from
Apr 25, 2024

Conversation

PapyChacal
Copy link
Collaborator

Implement TypedAttribute, a baseclass for attributes having a type attribute 🙃 Mirroring the MLIR interface.
This is useful for the declarative assembly format, where when referencing an integer of a known type, we want to parse and print it with its type elided.

@PapyChacal PapyChacal added enhancement New feature or request core xDSL core (ir, textual format, ...) labels Apr 24, 2024
@PapyChacal PapyChacal self-assigned this Apr 24, 2024
Copy link

codecov bot commented Apr 24, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.78%. Comparing base (d082c28) to head (0a803cd).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2493   +/-   ##
=======================================
  Coverage   89.78%   89.78%           
=======================================
  Files         350      350           
  Lines       43016    43086   +70     
  Branches     6394     6411   +17     
=======================================
+ Hits        38622    38686   +64     
- Misses       3447     3448    +1     
- Partials      947      952    +5     

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

@PapyChacal PapyChacal marked this pull request as ready for review April 24, 2024 13:27
Copy link
Collaborator

@math-fehr math-fehr left a comment

Choose a reason for hiding this comment

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

Really nice! I added some comments

xdsl/irdl/declarative_assembly_format.py Show resolved Hide resolved
xdsl/irdl/declarative_assembly_format_parser.py Outdated Show resolved Hide resolved
xdsl/irdl/irdl.py Show resolved Hide resolved
xdsl/irdl/irdl.py Show resolved Hide resolved
xdsl/ir/core.py Outdated Show resolved Hide resolved
xdsl/irdl/irdl.py Outdated Show resolved Hide resolved
xdsl/irdl/irdl.py Outdated Show resolved Hide resolved
@PapyChacal PapyChacal merged commit 0fb9811 into main Apr 25, 2024
9 checks passed
@PapyChacal PapyChacal deleted the emilien/typed-attr branch April 25, 2024 09:50
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, ...) enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants