Skip to content

core: (attr assembly fmt) add wiring into irdl_param_attr_def (pt2)#5901

Open
n-io wants to merge 2 commits into
mainfrom
nicolai/attr-asm-fmt-pt2-integration
Open

core: (attr assembly fmt) add wiring into irdl_param_attr_def (pt2)#5901
n-io wants to merge 2 commits into
mainfrom
nicolai/attr-asm-fmt-pt2-integration

Conversation

@n-io

@n-io n-io commented Apr 21, 2026

Copy link
Copy Markdown
Collaborator

Integrate the attr declarative assembly format into the attribute definition system. ParametrizedAttribute subclasses can now set assembly_format = "..." to auto-generate parse_parameters and print_parameters methods.

Stacked on top of: #5900

n-io added 2 commits April 21, 2026 12:29
Add the foundational classes for a declarative assembly format system
for ParametrizedAttribute types, mirroring the existing op-side system:
AttrFormatDirective ABC, structural directives (whitespace, punctuation,
keyword), ParameterVariable, AttrFormatProgram, and AttrFormatParser.
…nition

Integrate the attr declarative assembly format into the attribute
definition system. ParametrizedAttribute subclasses can now set
assembly_format = "..." to auto-generate parse_parameters and
print_parameters methods.
@n-io n-io self-assigned this Apr 21, 2026
@codecov

codecov Bot commented Apr 21, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 90.90909% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 86.21%. Comparing base (377ba90) to head (875f177).

Files with missing lines Patch % Lines
xdsl/irdl/attributes.py 90.90% 2 Missing and 1 partial ⚠️
Additional details and impacted files
@@                            Coverage Diff                            @@
##           nicolai/attr-asm-fmt-pt1-core-directives    #5901   +/-   ##
=========================================================================
  Coverage                                     86.20%   86.21%           
=========================================================================
  Files                                           418      418           
  Lines                                         60077    60104   +27     
  Branches                                       6950     6955    +5     
=========================================================================
+ Hits                                          51791    51818   +27     
+ Misses                                         6689     6688    -1     
- Partials                                       1597     1598    +1     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@n-io n-io changed the title irdl: wire attr declarative assembly format into irdl_param_attr_defi… core: wire attr declarative assembly format into irdl_param_attr_defi… Apr 21, 2026
@n-io n-io marked this pull request as ready for review April 21, 2026 11:11
@n-io n-io changed the title core: wire attr declarative assembly format into irdl_param_attr_defi… core: (attr assembly fmt) add wiring into irdl_param_attr_def (pt2) Apr 21, 2026
@n-io n-io force-pushed the nicolai/attr-asm-fmt-pt1-core-directives branch from 377ba90 to b8e73f1 Compare July 7, 2026 16:25
Base automatically changed from nicolai/attr-asm-fmt-pt1-core-directives to main July 9, 2026 12:26
@superlopuh

Copy link
Copy Markdown
Member

Happy to review this as soon as merge conflicts are resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants