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

Add 4 digit uid to dump file names #4509

Merged
merged 1 commit into from
Mar 13, 2024
Merged

Conversation

ChrisDodd
Copy link
Contributor

I noticed an issue with dumping passes that get called more than once, generally in a PassRepeated -- the filename generated is the same, so the dumps overwrite and you end up with only the last iteration of the pass. This change adds a unique index number so you get mulitple files, and as a bonus, the files will be sorted in order in ls

Copy link
Contributor

@vlstill vlstill left a comment

Choose a reason for hiding this comment

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

Just a nitpick with a more modern style.

frontends/common/parser_options.h Outdated Show resolved Hide resolved
frontends/common/parser_options.cpp Outdated Show resolved Hide resolved
@ChrisDodd ChrisDodd added this pull request to the merge queue Mar 13, 2024
Merged via the queue into p4lang:main with commit 12b08da Mar 13, 2024
17 checks passed
@ChrisDodd ChrisDodd deleted the cdodd-dumpname branch March 13, 2024 02:42
@fruffy fruffy added the core Topics concerning the core segments of the compiler (frontend, midend, parser) label Mar 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Topics concerning the core segments of the compiler (frontend, midend, parser)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants