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

dialects: linalg minor fixes #2307

Merged
merged 1 commit into from
Mar 6, 2024
Merged

dialects: linalg minor fixes #2307

merged 1 commit into from
Mar 6, 2024

Conversation

PapyChacal
Copy link
Collaborator

  • doc and library_call are properties
  • The parenthesis around output types are mandatory in custom syntax if multiple types are present.

- `doc` and `library_call` are properties
- The parenthesis around output types are mandatory in custom syntax if multiple types are present.
@PapyChacal PapyChacal added the dialects Changes on the dialects label Mar 6, 2024
@PapyChacal PapyChacal self-assigned this Mar 6, 2024
Copy link

codecov bot commented Mar 6, 2024

Codecov Report

Attention: Patch coverage is 42.85714% with 4 lines in your changes are missing coverage. Please review.

Project coverage is 89.51%. Comparing base (bb13d71) to head (2ac6dfe).

Files Patch % Lines
xdsl/dialects/linalg.py 42.85% 3 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2307      +/-   ##
==========================================
- Coverage   89.53%   89.51%   -0.02%     
==========================================
  Files         329      329              
  Lines       39443    39446       +3     
  Branches     5904     5905       +1     
==========================================
- Hits        35314    35309       -5     
- Misses       3270     3275       +5     
- Partials      859      862       +3     

☔ 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 March 6, 2024 10:20
@@ -96,8 +96,8 @@ class Generic(IRDLOperation):
# Trait attributes
indexing_maps: ArrayAttr[AffineMapAttr] = prop_def(ArrayAttr[AffineMapAttr])
iterator_types: ArrayAttr[IteratorTypeAttr] = prop_def(ArrayAttr[IteratorTypeAttr])
doc: StringAttr | None = opt_attr_def(StringAttr)
library_call: StringAttr | None = opt_attr_def(StringAttr)
doc: StringAttr | None = opt_prop_def(StringAttr)
Copy link
Member

Choose a reason for hiding this comment

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

do you think it would be too much of a detour to implement default properties before merging this?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I really want to - and soon! Though this is actually a sensitive fix: MLIR interop is currently broken without it. Can I have your approval to merge this frustrating opt_prop_def so it's functional first? We'll get rid of those eventually!

@PapyChacal PapyChacal merged commit 15c2500 into main Mar 6, 2024
10 checks passed
@PapyChacal PapyChacal deleted the emilien/linalg-fixes branch March 6, 2024 10:45
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
None yet
Development

Successfully merging this pull request may close these issues.

2 participants