[mlgo] Remove the protobuf dependency
authorMircea Trofin <mtrofin@google.com>
Fri, 13 Jan 2023 20:22:20 +0000 (12:22 -0800)
committerMircea Trofin <mtrofin@google.com>
Tue, 17 Jan 2023 21:12:27 +0000 (13:12 -0800)
commit5898be19e66d97662e9d87c526105c6ebd961cba
tree522e10791a98084ec5076ca3618b53989ca4a96e
parentcdd8fcdbd7a1479ba351895aec097ea6529697b8
[mlgo] Remove the protobuf dependency

The dependency was due to the log format. This change switches to the
previously-introduced (D139370) "dependency-free" logger instead of the
protobuf-based one.

A subsequent change will clean out the unnecessary abstraction left
behind.

This change drops the logger unittest, we have sufficient test coverage
via lit tests, and a unit test would require adding, unnecesarily, a log
reader (the reader is expected to be python, for the ML side, and there
is a reader for that under Analysis/models, used for tests).

Differential Revision: https://reviews.llvm.org/D141720
18 files changed:
llvm/CMakeLists.txt
llvm/cmake/modules/TensorFlowCompile.cmake
llvm/include/llvm/Analysis/Utils/TrainingLogger.h
llvm/lib/Analysis/CMakeLists.txt
llvm/lib/Analysis/DevelopmentModeInlineAdvisor.cpp
llvm/lib/Analysis/TrainingLogger.cpp
llvm/test/CodeGen/MLRegalloc/Inputs/reference-log-noml.txt
llvm/test/CodeGen/MLRegalloc/Inputs/reference-prio-log-noml.txt
llvm/test/CodeGen/MLRegalloc/dev-mode-extra-features-logging.ll
llvm/test/CodeGen/MLRegalloc/dev-mode-log-2-fcts.ll
llvm/test/CodeGen/MLRegalloc/dev-mode-logging.ll
llvm/test/CodeGen/MLRegalloc/dev-mode-prio-logging.ll
llvm/test/Transforms/Inline/ML/bounds-checks-rewards.ll
llvm/test/Transforms/Inline/ML/dev-mode-log-deleted.ll
llvm/test/Transforms/Inline/ML/development-training-log.ll
llvm/test/Transforms/Inline/ML/ml-test-development-mode.ll
llvm/unittests/Analysis/CMakeLists.txt
llvm/unittests/Analysis/TrainingLoggerTest.cpp [deleted file]