[MLInliner] Factor out logging
authorMircea Trofin <mtrofin@google.com>
Sat, 3 Oct 2020 03:28:49 +0000 (20:28 -0700)
committerMircea Trofin <mtrofin@google.com>
Tue, 6 Oct 2020 01:09:17 +0000 (18:09 -0700)
commit36bb1fb1fe624012332d1f2788625ee4625f29db
treeb024e1cb88bed366cb62374cdbd01410bed81727
parentc3e07a0018ec74216d662e0596584d2c846a1063
[MLInliner] Factor out logging

Factored out the logging facility, to allow its reuse outside the
inliner.

Differential Revision: https://reviews.llvm.org/D88770
llvm/include/llvm/Analysis/Utils/TFUtils.h
llvm/lib/Analysis/DevelopmentModeInlineAdvisor.cpp
llvm/lib/Analysis/TFUtils.cpp
llvm/test/Transforms/Inline/ML/development-training-log.ll
llvm/unittests/Analysis/TFUtilsTest.cpp