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: (bufferization) add materialize_in_destination #3301

Merged
merged 4 commits into from
Oct 15, 2024

Conversation

mamanain
Copy link
Collaborator

Currently we need only the command with tensor arguments but we should extend it to memrefs as well at some point.

Copy link

codecov bot commented Oct 14, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.02%. Comparing base (70fa878) to head (7bedacf).
Report is 7 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff            @@
##             main    #3301    +/-   ##
========================================
  Coverage   90.01%   90.02%            
========================================
  Files         445      445            
  Lines       55850    55979   +129     
  Branches     5351     5365    +14     
========================================
+ Hits        50274    50393   +119     
- Misses       4169     4177     +8     
- Partials     1407     1409     +2     

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

@superlopuh superlopuh changed the title Bufferization dialect: add materialize_in_destination dialect: (bufferization ) add materialize_in_destination Oct 14, 2024
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.

could you please add a roundtrip test case to the filechecks of the dialect and mlir interoperation?

@superlopuh superlopuh changed the title dialect: (bufferization ) add materialize_in_destination dialect: (bufferization) add materialize_in_destination Oct 14, 2024
@superlopuh superlopuh added the dialects Changes on the dialects label Oct 15, 2024
@superlopuh superlopuh changed the title dialect: (bufferization) add materialize_in_destination dialects: (bufferization) add materialize_in_destination Oct 15, 2024
@@ -168,12 +168,39 @@ class ToMemrefOp(IRDLOperation):
assembly_format = "$tensor (`read_only` $read_only^)? `:` attr-dict type($memref)"


# now only works for (tensor, tensor) arguments. need to add memref support as well.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
# now only works for (tensor, tensor) arguments. need to add memref support as well.

@mamanain mamanain marked this pull request as ready for review October 15, 2024 12:48
@mamanain mamanain merged commit 810d653 into xdslproject:main Oct 15, 2024
14 checks passed
EdmundGoodman pushed a commit to EdmundGoodman/xdsl that referenced this pull request Dec 6, 2024
…#3301)

Currently we need only the command with tensor arguments but we should
extend it to memrefs as well at some point.
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