Skip to content

Conversation

jpienaar
Copy link
Member

@jpienaar jpienaar commented Jul 8, 2025

This makes it uniform with how the RvalueExprVisitor handles it (copied getSelectIndex verbatim, could also make utility function shared between visitors).

Resolves: #8657

This makes it uniform with how the RvalueExprVisitor handles it.

Resolves: llvm#8657
@jpienaar jpienaar requested a review from uenoku July 8, 2025 02:55
@uenoku uenoku requested a review from fabianschuiki July 8, 2025 04:18
@uenoku
Copy link
Member

uenoku commented Jul 8, 2025

@jpienaar
Copy link
Member Author

jpienaar commented Jul 8, 2025

Done, could do it simpler than expected by just checking write and read indices match.

Copy link
Contributor

@fabianschuiki fabianschuiki left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks for fixing this discrepancy between lvalues and rvalues 🙌

@jpienaar jpienaar merged commit b033712 into llvm:main Jul 8, 2025
7 checks passed
@fabianschuiki
Copy link
Contributor

I was just running circt-verilog on a few internal design snippets and noticed that your fix here got rid of a lot of LEC mismatches I was seeing. Thanks 😁

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.

Imported verilog flips output
3 participants