8000 [OM] Fix finalization of nested ReferenceValue by unlsycn · Pull Request #8325 · llvm/circt · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[OM] Fix finalization of nested ReferenceValue #8325

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

Merged
merged 2 commits into from
Apr 14, 2025

Conversation

unlsycn
Copy link
Contributor
@unlsycn unlsycn commented Mar 18, 2025

Further tests will be added later.
Done.

unlsycn added a commit to unlsycn/zaozi that referenced this pull request Mar 18, 2025
See llvm/circt#8325

Signed-off-by: unlsycn <unlsycn@unlsycn.com>
unlsycn added a commit to unlsycn/zaozi that referenced this pull request Mar 18, 2025
See llvm/circt#8325

Signed-off-by: unlsycn <unlsycn@unlsycn.com>
@unlsycn unlsycn marked this pull request as ready for review March 19, 2025 03:20
unlsycn added a commit to unlsycn/zaozi that referenced this pull request Mar 19, 2025
See llvm/circt#8325

Signed-off-by: unlsycn <unlsycn@unlsycn.com>
unlsycn added a commit to unlsycn/zaozi that referenced this pull request Mar 19, 2025
See llvm/circt#8325

Signed-off-by: unlsycn <unlsycn@unlsycn.com>
@unlsycn
Copy link
Contributor Author
unlsycn commented Mar 19, 2025

cc @mikeurbach
Would you like to review this PR when you have a moment?
Thanks a lot!

unlsycn added a commit to unlsycn/zaozi that referenced this pull request Mar 19, 2025
See llvm/circt#8325

Signed-off-by: unlsycn <unlsycn@unlsycn.com>
Copy link
Contributor
@mikeurbach mikeurbach left a comment

Choose a reason for hiding this comment

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

I think this makes sense, but can you please include more info about what this is trying to resolve? This would be good info to have in the commit message when it merges. I think I can understand it from the test case, but in general, we request to have good commit messages: https://llvm.org/docs/DeveloperPolicy.html#commit-messages

@uenoku please take a look as well

unlsycn added a commit to unlsycn/zaozi that referenced this pull request Mar 19, 2025
See llvm/circt#8325

Signed-off-by: unlsycn <unlsycn@unlsycn.com>
Copy link
Contributor
@mikeurbach mikeurbach left a comment

Choose a reason for hiding this comment

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

I think the actual change makes sense.

@unlsycn
Copy link
Contributor Author
unlsycn commented Mar 19, 2025

I think this makes sense, but can you please include more info about what this is trying to resolve? This would be good info to have in the commit message when it merges. I think I can understand it from the test case, but in general, we request to have good commit messages: https://llvm.org/docs/DeveloperPolicy.html#commit-messages

@uenoku please take a look as well

Sure!

unlsycn added 2 commits March 20, 2025 03:31
After instantiating an Object in the Evaluator, we recursively finalize its value
to eliminate intermediate ReferenceValues, ensuring that the original type of
om.any is preserved. This patch fixes an issue where, if a ReferenceValue
remains a ReferenceValue after being stripped, the finalization process should
continue but previously did not (e.g., a list of om.any that is an object
returns another list of om.any that is also an object).

Signed-off-by: unlsycn <unlsycn@unlsycn.com>
Signed-off-by: unlsycn <unlsycn@unlsycn.com>
sequencer pushed a commit to sequencer/zaozi that referenced this pull request Mar 19, 2025
See llvm/circt#8325

Signed-off-by: unlsycn <unlsycn@unlsycn.com>
@unlsycn
Copy link
Contributor Author
unlsycn commented Apr 3, 2025

Hi! Can this PR be landed?

@mikeurbach
Copy link
Contributor

Yes, I think so. I briefly mentioned it to @uenoku , but we can merge without his approval.

Copy link
Member
@uenoku uenoku left a comment

Choose a reason for hiding this comment

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

Sorry for delay. It looks great to me.

@SpriteOvO SpriteOvO merged commit c2b486a into llvm:main Apr 14, 2025
5 checks passed
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.

4 participants
0