[mlgo] Stream the training data
authorMircea Trofin <mtrofin@google.com>
Fri, 20 Jan 2023 01:37:08 +0000 (17:37 -0800)
committerMircea Trofin <mtrofin@google.com>
Fri, 20 Jan 2023 15:01:08 +0000 (07:01 -0800)
commit6d11baf02b33c3ec89178f94627ecec5025dac7e
treed14819005dec6f7987a081c1948c34185e0c726d
parent3129bdce8dddefbf03ab3ef52170132eb4bcf929
[mlgo] Stream the training data

This leverages the new logging format in that we don't need to buffer
the training data, we can just write it out.

Differential Revision: https://reviews.llvm.org/D142168
llvm/include/llvm/Analysis/Utils/TrainingLogger.h
llvm/lib/Analysis/DevelopmentModeInlineAdvisor.cpp
llvm/lib/Analysis/TrainingLogger.cpp
llvm/lib/CodeGen/MLRegallocEvictAdvisor.cpp
llvm/lib/CodeGen/MLRegallocPriorityAdvisor.cpp
llvm/test/CodeGen/MLRegalloc/dev-mode-logging.ll