This is an archive of the discontinued LLVM Phabricator instance.

[debugify] Move the Debugify pass from tools/opt to lib/Transform/Utils
ClosedPublic

Authored by dsanders on Nov 6 2019, 4:09 PM.

Details

Summary

I need to make use of this pass from a driver program that isn't opt.
Therefore this patch moves this pass into the LLVM library so that it is
available for use elsewhere.

There was one function I kept in tools/opt which is exportDebugifyStats()
this is because it's serializing the statistics into a human readable
format and this seemed more in keeping with opt than a library function

Diff Detail

Event Timeline

dsanders created this revision.Nov 6 2019, 4:09 PM
Herald added a project: Restricted Project. · View Herald TranscriptNov 6 2019, 4:09 PM
vsk accepted this revision.Nov 6 2019, 4:32 PM

Lgtm, thanks.

This revision is now accepted and ready to land.Nov 6 2019, 4:32 PM
This revision was automatically updated to reflect the committed changes.