[nfc][mlgo] Separate logger and training-mode model evaluator
authorMircea Trofin <mtrofin@google.com>
Wed, 3 Aug 2022 21:32:42 +0000 (14:32 -0700)
committerMircea Trofin <mtrofin@google.com>
Wed, 3 Aug 2022 23:20:28 +0000 (16:20 -0700)
commit0cb9746a7d85000fc7bbd8ac5d8557179ca4521c
treee0df3b253883e6eabedc1805461a04f32b350d90
parent670122b92bd563fd8ca26a617695741b3f84f06d
[nfc][mlgo] Separate logger and training-mode model evaluator

This just shuffles implementations and declarations around. Now the
logger and the TF C API-based model evaluator are separate.

Differential Revision: https://reviews.llvm.org/D131116
llvm/include/llvm/Analysis/Utils/TFUtils.h
llvm/include/llvm/Analysis/Utils/TrainingLogger.h [new file with mode: 0644]
llvm/lib/Analysis/CMakeLists.txt
llvm/lib/Analysis/DevelopmentModeInlineAdvisor.cpp
llvm/lib/Analysis/TFUtils.cpp
llvm/lib/Analysis/TrainingLogger.cpp [new file with mode: 0644]
llvm/lib/CodeGen/MLRegallocEvictAdvisor.cpp
llvm/unittests/Analysis/CMakeLists.txt
llvm/unittests/Analysis/TFUtilsTest.cpp
llvm/unittests/Analysis/TrainingLoggerTest.cpp [new file with mode: 0644]