This is an archive of the discontinued LLVM Phabricator instance.

[analyzer] WIP: Move `TimerGroup` to Analyzer's options
Needs RevisionPublic

Authored by mikhail.ramalho on Jul 31 2018, 11:12 AM.

Details

Summary

This patch moves the TimerGroup object to the AnalyzerOptions object, so it can be easily accessed from other parts of the analyzer.

This might be conceptually wrong (an AnalyzerOptions holding timers), but I created this review so we can discuss possible implementations.

Also, this patch adds the crosscheck timer as an example. I can move this part to another revision if requested.

Diff Detail

Event Timeline

george.karpenkov requested changes to this revision.Aug 6 2018, 10:40 AM

Requesting changes as previously discussed.
If we really need to pass statistics around, maybe they should be stored in a special "statistics" class created just for this purpose.

This revision now requires changes to proceed.Aug 6 2018, 10:40 AM