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) fix materialize_in_destination #3495

Merged
merged 1 commit into from
Dec 4, 2024

Conversation

alexarice
Copy link
Collaborator

@alexarice alexarice commented Nov 20, 2024

Fixes #3489

In order to make materialize_in_destination compatible with mlir, it needs to be able to take a memref type as the destination. However, in mlir there must be no result if the destination is a memref and so the result here must be optional. This causes a further problem in giving the assembly format which I am yet to solve.

Next steps:

@alexarice alexarice added bug Something isn't working dialects Changes on the dialects labels Nov 20, 2024
@alexarice alexarice self-assigned this Nov 20, 2024
@alexarice alexarice marked this pull request as draft November 20, 2024 17:45
@alexarice alexarice force-pushed the alexarice/bufferize-fix branch from a36698d to c41a4cd Compare December 2, 2024 14:29
@alexarice alexarice changed the base branch from main to alexarice/functional-type-directive December 2, 2024 14:29
@alexarice alexarice marked this pull request as ready for review December 2, 2024 14:30
@alexarice alexarice requested a review from superlopuh December 2, 2024 14:30
@alexarice
Copy link
Collaborator Author

@francescodaghero does this fix the issue?

@alexarice alexarice requested a review from compor December 2, 2024 14:31
Copy link

codecov bot commented Dec 2, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.39%. Comparing base (24ab775) to head (99993db).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3495   +/-   ##
=======================================
  Coverage   90.39%   90.39%           
=======================================
  Files         467      467           
  Lines       58870    58870           
  Branches     5609     5609           
=======================================
+ Hits        53216    53218    +2     
+ Misses       4208     4207    -1     
+ Partials     1446     1445    -1     

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

Base automatically changed from alexarice/functional-type-directive to main December 2, 2024 15:51
@alexarice alexarice force-pushed the alexarice/bufferize-fix branch from c41a4cd to 99993db Compare December 4, 2024 13:52
@alexarice alexarice merged commit f33fbde into main Dec 4, 2024
15 checks passed
@alexarice alexarice deleted the alexarice/bufferize-fix branch December 4, 2024 14:34
EdmundGoodman pushed a commit to EdmundGoodman/xdsl that referenced this pull request Dec 6, 2024
…#3495)

Fixes xdslproject#3489 

In order to make `materialize_in_destination` compatible with mlir, it
needs to be able to take a memref type as the destination, and have an
optional result.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working dialects Changes on the dialects
Projects
None yet
Development

Successfully merging this pull request may close these issues.

dialects: (bufferization) MaterializeInDestination wrong operands
2 participants