diff options
Diffstat (limited to 'llvm/include/llvm/Analysis/Utils/TFUtils.h')
-rw-r--r-- | llvm/include/llvm/Analysis/Utils/TFUtils.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/include/llvm/Analysis/Utils/TFUtils.h b/llvm/include/llvm/Analysis/Utils/TFUtils.h index 012fca53a200..785b9fe949a5 100644 --- a/llvm/include/llvm/Analysis/Utils/TFUtils.h +++ b/llvm/include/llvm/Analysis/Utils/TFUtils.h @@ -178,8 +178,14 @@ public: // Flush the content of the log to the stream, clearing the stored data in the // process. + void flush(std::string *Str); void flush(raw_ostream &OS); + // Flush a set of logs that are produced from the same module, e.g. + // per-function regalloc traces, as a google::protobuf::Struct message. + static void flushLogs(raw_ostream &OS, + const StringMap<std::unique_ptr<Logger>> &Loggers); + private: std::vector<LoggedFeatureSpec> FeatureSpecs; TensorSpec RewardSpec; |