(Translated by https://www.hiragana.jp/)
[CreateSifiveMetadata] Update memory hierarchy paths to be pre-extrction by prithayan · Pull Request #7491 · llvm/circt · GitHub
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

[CreateSifiveMetadata] Update memory hierarchy paths to be pre-extrction #7491

Merged
merged 4 commits into from
Aug 12, 2024

Conversation

prithayan
Copy link
Contributor

The CreateSifiveMetadata pass was creating hierarchy paths to the memory module pre-extraction.
The om.path was being updated as the memory was extracted in the following passes.
But recently we realized this was a bug, as the downstream tools consuming the metadata files, were actually expecting the pre-extraction hierarchy paths to the memory.
So, this PR fixes the path to terminate at the parent of the module that instantiates the memory and encodes the pre-extraction memory instance as a string.
The tool that will parse the final mlir must now construct the actual pre-extraction path from the two lists, by appending the pre-extraction instance name to the path.

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.

Looks good to me now, thanks!

lib/Dialect/FIRRTL/Transforms/CreateSiFiveMetadata.cpp Outdated Show resolved Hide resolved
@prithayan prithayan merged commit 736142c into main Aug 12, 2024
4 checks passed
@prithayan prithayan deleted the dev/pbarua/memory-metadata branch August 12, 2024 14:07
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.

2 participants