[MLGO] Upstream the corpus extraction tooling (#72319)
commita387bce4bcbaeb28bf4510817ce54602e2f7a21d
authorAiden Grossman <agrossman154@yahoo.com>
Sat, 20 Jan 2024 01:23:51 +0000 (19 17:23 -0800)
committerGitHub <noreply@github.com>
Sat, 20 Jan 2024 01:23:51 +0000 (19 17:23 -0800)
treeb761974e1b9dbc0f61474bf7e3a86560ff2eb0d0
parentbd3838ff6b4310fb8ff68649ef87e5e962bab1fd
[MLGO] Upstream the corpus extraction tooling (#72319)

This patch upstreams some of the MLGO utilities, particularly the corpus
extraction tooling, into LLVM proper. The motivation for this patch is
available in the RFC.

https://discourse.llvm.org/t/rfc-upstreaming-elements-of-the-mlgo-tooling/74939
17 files changed:
llvm/CMakeLists.txt
llvm/utils/mlgo-utils/CMakeLists.txt [new file with mode: 0644]
llvm/utils/mlgo-utils/README.md [new file with mode: 0644]
llvm/utils/mlgo-utils/mlgo/__init__.py [new file with mode: 0644]
llvm/utils/mlgo-utils/mlgo/corpus/combine_training_corpus.py [new file with mode: 0644]
llvm/utils/mlgo-utils/mlgo/corpus/combine_training_corpus_lib.py [new file with mode: 0644]
llvm/utils/mlgo-utils/mlgo/corpus/extract_ir.py [new file with mode: 0644]
llvm/utils/mlgo-utils/mlgo/corpus/extract_ir_lib.py [new file with mode: 0644]
llvm/utils/mlgo-utils/mlgo/corpus/make_corpus.py [new file with mode: 0644]
llvm/utils/mlgo-utils/mlgo/corpus/make_corpus_lib.py [new file with mode: 0644]
llvm/utils/mlgo-utils/pyproject.toml [new file with mode: 0644]
llvm/utils/mlgo-utils/tests/corpus/combine_training_corpus_test.py [new file with mode: 0644]
llvm/utils/mlgo-utils/tests/corpus/extract_ir_test.py [new file with mode: 0644]
llvm/utils/mlgo-utils/tests/corpus/make_corpus_test.py [new file with mode: 0644]
llvm/utils/mlgo-utils/tests/lit.cfg [new file with mode: 0644]
llvm/utils/mlgo-utils/tests/lit.local.cfg [new file with mode: 0644]
llvm/utils/mlgo-utils/tests/lit.site.cfg.in [new file with mode: 0644]