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) enable generic printing in mlir conversion filecheck #3837

Merged
merged 1 commit into from
Feb 5, 2025

Conversation

jorendumoulin
Copy link
Collaborator

@jorendumoulin jorendumoulin commented Feb 5, 2025

This PR adds generic printing to the mlir conversion filecheck

This will check whether the issues posed in #2959 are correctly resolved, by checking if mlir correctly parses the generic output of xdsl

There are still reminaing issues, solved in the following PRs:
(stacked on: ) #3838, #3839, #3840, #3841

Comment on lines 1 to +2
// RUN: xdsl-opt %s | xdsl-opt | mlir-opt --allow-unregistered-dialect | filecheck %s
// RUN: xdsl-opt %s | xdsl-opt --print-op-generic | mlir-opt --allow-unregistered-dialect | filecheck %s
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 is the only change in this PR

Copy link

codecov bot commented Feb 5, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.26%. Comparing base (06f2450) to head (c39ed43).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3837      +/-   ##
==========================================
- Coverage   91.26%   91.26%   -0.01%     
==========================================
  Files         461      461              
  Lines       57658    57658              
  Branches     5570     5570              
==========================================
- Hits        52624    52622       -2     
- Misses       3611     3612       +1     
- Partials     1423     1424       +1     

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

jorendumoulin added a commit that referenced this pull request Feb 5, 2025
This adds a hidden region to the linalg.transpose op to ensure correct
generic printing
Also changes permutation to a property instead of attribute.

This resolves the transpose op in #2959 

This has now been checked manually, and will be put in ci with #3837
(but for that 3 other ops need to be fixed, PRs incoming...)
jorendumoulin added a commit that referenced this pull request Feb 5, 2025
To enable correct printing of the hidden regions in generic printing.

Resolves pooling in #2959 , will be tested in #3837 


The constructor of these ops had to change to comply with the
NamedOpBase constructor ordering of arguments
jorendumoulin added a commit that referenced this pull request Feb 5, 2025
jorendumoulin added a commit that referenced this pull request Feb 5, 2025
This enables to correct printing of the hidden regions in generic format

Resolves conv ops in #2959, will be tested with #3837
@jorendumoulin jorendumoulin force-pushed the joren/linalg/enable-filecheck branch from cd7e495 to c39ed43 Compare February 5, 2025 10:28
@jorendumoulin jorendumoulin marked this pull request as ready for review February 5, 2025 10:28
@jorendumoulin jorendumoulin merged commit 1dcbdcc into main Feb 5, 2025
16 checks passed
@jorendumoulin jorendumoulin deleted the joren/linalg/enable-filecheck branch February 5, 2025 10:49
emmau678 pushed a commit that referenced this pull request Feb 6, 2025
This adds a hidden region to the linalg.transpose op to ensure correct
generic printing
Also changes permutation to a property instead of attribute.

This resolves the transpose op in #2959 

This has now been checked manually, and will be put in ci with #3837
(but for that 3 other ops need to be fixed, PRs incoming...)
emmau678 pushed a commit that referenced this pull request Feb 6, 2025
To enable correct printing of the hidden regions in generic printing.

Resolves pooling in #2959 , will be tested in #3837 


The constructor of these ops had to change to comply with the
NamedOpBase constructor ordering of arguments
emmau678 pushed a commit that referenced this pull request Feb 6, 2025
emmau678 pushed a commit that referenced this pull request Feb 6, 2025
This enables to correct printing of the hidden regions in generic format

Resolves conv ops in #2959, will be tested with #3837
emmau678 pushed a commit that referenced this pull request Feb 6, 2025
…ck (#3837)

This PR adds generic printing to the mlir conversion filecheck

This will check whether the issues posed in #2959 are correctly
resolved, by checking if mlir correctly parses the generic output of
xdsl

There are still reminaing issues, solved in the following PRs:
(stacked on: ) #3838, #3839, #3840, #3841
oluwatimilehin pushed a commit to oluwatimilehin/xdsl that referenced this pull request Feb 13, 2025
This adds a hidden region to the linalg.transpose op to ensure correct
generic printing
Also changes permutation to a property instead of attribute.

This resolves the transpose op in xdslproject#2959 

This has now been checked manually, and will be put in ci with xdslproject#3837
(but for that 3 other ops need to be fixed, PRs incoming...)
oluwatimilehin pushed a commit to oluwatimilehin/xdsl that referenced this pull request Feb 13, 2025
…project#3839)

To enable correct printing of the hidden regions in generic printing.

Resolves pooling in xdslproject#2959 , will be tested in xdslproject#3837 


The constructor of these ops had to change to comply with the
NamedOpBase constructor ordering of arguments
oluwatimilehin pushed a commit to oluwatimilehin/xdsl that referenced this pull request Feb 13, 2025
oluwatimilehin pushed a commit to oluwatimilehin/xdsl that referenced this pull request Feb 13, 2025
…ject#3841)

This enables to correct printing of the hidden regions in generic format

Resolves conv ops in xdslproject#2959, will be tested with xdslproject#3837
oluwatimilehin pushed a commit to oluwatimilehin/xdsl that referenced this pull request Feb 13, 2025
…ck (xdslproject#3837)

This PR adds generic printing to the mlir conversion filecheck

This will check whether the issues posed in xdslproject#2959 are correctly
resolved, by checking if mlir correctly parses the generic output of
xdsl

There are still reminaing issues, solved in the following PRs:
(stacked on: ) xdslproject#3838, xdslproject#3839, xdslproject#3840, xdslproject#3841
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