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

Make make_corpus functions consistent with extract_ir functions #283

Merged
merged 1 commit into from
Aug 2, 2023

Conversation

boomanaiden154
Copy link
Collaborator

Currently the functions in make_corpus_lib assume they are working with a full file path whereas the tooling in extract_ir truncates the .bc/.cmd extensions and only has the object file. This discrepancy means that tooling that works with downstream products of corpora from extract_ir doesn't work without modification with corpora from make_corpus (ignoring the missing .cmd files). This patch makes make_corpus match the behavior of extract_ir.

compiler_opt/tools/make_corpus_lib.py Outdated Show resolved Hide resolved
compiler_opt/tools/make_corpus_lib.py Outdated Show resolved Hide resolved
Currently the functions in make_corpus_lib assume they are working with
a full file path whereas the tooling in extract_ir truncates the
.bc/.cmd extensions and only has the object file. This discrepancy means
that tooling that works with downstream products of corpora from
extract_ir doesn't work without modification with corpora from
make_corpus (ignoring the missing .cmd files). This patch makes
make_corpus match the behavior of extract_ir.
@mtrofin mtrofin merged commit ec3f4bc into google:main Aug 2, 2023
15 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.

2 participants