google / ml-compiler-opt

Infrastructure for Machine Learning Guided Optimization (MLGO) in LLVM.
Apache License 2.0
630 stars 93 forks source link

Refactor combine_training_corpus.py into script and library #268

Closed boomanaiden154 closed 1 year ago

boomanaiden154 commented 1 year ago

This patch refactors combine_training_corpus.py into a library file that can easily be imported in downstream projects (and other utilities). This also makes unit testing slightly easier (as no special accomodations have to be made for CLI flags). This patch adds in two unittests for combining training corpora as well.