This is an archive of the discontinued LLVM Phabricator instance.

Changes to print-changed classes in preparation for DotCfg change printer (https://reviews.llvm.org/D87202)
ClosedPublic

Authored by jamieschmeiser on Sep 29 2021, 10:35 AM.

Details

Summary

Break out non-functional changes to the print-changed classes that are needed for reuse with
the DotCfg change printer in https://reviews.llvm.org/D87202.

Various changes to the change printers to facilitate reuse with the
upcoming DotCfg change printer. This includes changing several of
the classes and their support classes to being templates. Also,
some template parameter names were simplified to avoid confusion
with planned identifiers in the DotCfg change printer to come. A
virtual function in the class for comparing functions was changed
to a lambda. The virtual function same was replaced with calls to
operator==. There are no intentional functional changes.

Diff Detail

Event Timeline

jamieschmeiser requested review of this revision.Sep 29 2021, 10:35 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 29 2021, 10:35 AM

It's still kinda hard to understand, but sure, lg after one question

llvm/lib/Passes/StandardInstrumentations.cpp
169

is this change intended?

jamieschmeiser added inline comments.Oct 7 2021, 5:56 AM
llvm/lib/Passes/StandardInstrumentations.cpp
169

Yes. From the docs on llvm::sys::ExecuteAndWait: Args An array of strings that are passed to the program. The first element should be the name of the program.

aeubanks accepted this revision.Oct 7 2021, 9:26 AM
This revision is now accepted and ready to land.Oct 7 2021, 9:26 AM
This revision was landed with ongoing or failed builds.Oct 19 2021, 7:58 AM
This revision was automatically updated to reflect the committed changes.