This is an archive of the discontinued LLVM Phabricator instance.

[Driver] Add callback to Command execution
ClosedPublic

Authored by sepavloff on Apr 26 2020, 11:59 PM.

Details

Summary

Object of type Compilation now can keep a callback that is called
after each execution of Command. This must simplify adaptation of
clang in custom distributions and allow facilities like collection of
execution statistics.

Diff Detail

Unit TestsFailed

Event Timeline

sepavloff created this revision.Apr 26 2020, 11:59 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 26 2020, 11:59 PM
sepavloff updated this revision to Diff 272047.Jun 19 2020, 6:39 AM

Rebased patch

sepavloff updated this revision to Diff 276945.Jul 10 2020, 1:16 AM

Rebased patch

sepavloff updated this revision to Diff 280827.Jul 27 2020, 2:28 AM

Rebased patch

Rebased patch

Ping.
This is the only remaining prerequisite for D78903.

aganea accepted this revision.Nov 2 2020, 11:33 AM

LGTM, thanks!

This revision is now accepted and ready to land.Nov 2 2020, 11:33 AM
MaskRay added inline comments.Nov 2 2020, 11:44 AM
clang/include/clang/Driver/Compilation.h
118

Can you comment what int means?

sepavloff updated this revision to Diff 302563.Nov 3 2020, 6:04 AM

Added documentation

This revision was landed with ongoing or failed builds.Nov 4 2020, 9:23 PM
This revision was automatically updated to reflect the committed changes.