This is an archive of the discontinued LLVM Phabricator instance.

[Diagnostics] Allow emitting analysis and missed remarks on functions
ClosedPublic

Authored by jhuber6 on May 19 2021, 9:26 AM.

Details

Summary

Currently, only OptimizationRemarks can be emitted using a Function.
Add constructors to allow this for OptimizationRemarksAnalysis and
OptimizationRemarkMissed as well.

Diff Detail

Event Timeline

jhuber6 created this revision.May 19 2021, 9:26 AM
jhuber6 requested review of this revision.May 19 2021, 9:26 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 19 2021, 9:26 AM
jhuber6 updated this revision to Diff 346488.May 19 2021, 9:27 AM

Formatting.

jdoerfert accepted this revision.May 19 2021, 9:41 AM

Diagnostic Info parts seems very mechanical and ok to me.
OpenMPOpt parts make sense.
Test seem to be always tied to an analysis (e.g., D29023) so LGTM

This revision is now accepted and ready to land.May 19 2021, 9:41 AM
thegameg accepted this revision.May 19 2021, 10:58 AM
thegameg added a subscriber: thegameg.

LGTM on the new constructors.

jhuber6 updated this revision to Diff 346516.May 19 2021, 11:09 AM

Fixing Clang tests.

Herald added a project: Restricted Project. · View Herald TranscriptMay 19 2021, 11:09 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript