This is an archive of the discontinued LLVM Phabricator instance.

[NFC][MLInliner] Set up the logger outside the development mode advisor
ClosedPublic

Authored by mtrofin on Aug 7 2020, 5:36 PM.

Details

Summary

This allows us to subsequently configure the logger for the case when we
use a model evaluator and want to log additional outputs.

Diff Detail

Event Timeline

mtrofin created this revision.Aug 7 2020, 5:36 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 7 2020, 5:36 PM
mtrofin requested review of this revision.Aug 7 2020, 5:36 PM
yundiqian accepted this revision.Aug 8 2020, 8:16 PM
yundiqian added inline comments.
llvm/lib/Analysis/DevelopmentModeInlineAdvisor.cpp
400–401

swap IsDoingInference and Logger so that the sequence matches?

This revision is now accepted and ready to land.Aug 8 2020, 8:16 PM
MaskRay added a subscriber: MaskRay.Aug 8 2020, 9:26 PM
MaskRay added inline comments.
llvm/lib/Analysis/DevelopmentModeInlineAdvisor.cpp
371

A common variable name of type error_code is EC. You may consider it

mtrofin updated this revision to Diff 284403.Aug 10 2020, 9:21 AM
mtrofin marked 2 inline comments as done.

feedback

llvm/lib/Analysis/DevelopmentModeInlineAdvisor.cpp
371

done

400–401

done

This revision was landed with ongoing or failed builds.Aug 10 2020, 9:22 AM
This revision was automatically updated to reflect the committed changes.