This is an archive of the discontinued LLVM Phabricator instance.

[NFC][MLGO] Just use the underlying protobuf object for logging
ClosedPublic

Authored by mtrofin on Jul 22 2021, 1:34 PM.

Details

Summary

Avoid buffering just to copy the buffered data, in 'development mode', when logging. Instead, just populate the underlying protobuf.

Diff Detail

Event Timeline

mtrofin created this revision.Jul 22 2021, 1:34 PM
mtrofin requested review of this revision.Jul 22 2021, 1:34 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 22 2021, 1:34 PM
mtrofin edited the summary of this revision. (Show Details)Jul 22 2021, 1:34 PM
mtrofin added reviewers: yundiqian, jacobhegna.
jacobhegna added inline comments.Jul 23 2021, 10:14 AM
llvm/include/llvm/Analysis/Utils/TFUtils.h
127

update these functions calls to match the changes

mtrofin updated this revision to Diff 361269.Jul 23 2021, 10:19 AM
mtrofin marked an inline comment as done.

fixed Logger documentation comment.

llvm/include/llvm/Analysis/Utils/TFUtils.h
127

done

jacobhegna accepted this revision.Jul 23 2021, 10:30 AM
This revision is now accepted and ready to land.Jul 23 2021, 10:30 AM
This revision was landed with ongoing or failed builds.Jul 23 2021, 10:57 AM
This revision was automatically updated to reflect the committed changes.