llvm-project/clang/lib/Driver
Adam Nemet 1eea3e577d Reapply r281276 with passing -emit-llvm in one of the tests
Original commit message:

Add -fdiagnostics-show-hotness

Summary:
I've recently added the ability for optimization remarks to include the
hotness of the corresponding code region.  This uses PGO and allows
filtering of the optimization remarks by relevance.  The idea was first
discussed here:
http://thread.gmane.org/gmane.comp.compilers.llvm.devel/98334

The general goal is to produce a YAML file with the remarks.  Then, an
external tool could dynamically filter these by hotness and perhaps by
other things.

That said it makes sense to also expose this at the more basic level
where we just include the hotness info with each optimization remark.
For example, in D22694, the clang flag was pretty useful to measure the
overhead of the additional analyses required to include hotness.
(Without the flag we don't even run the analyses.)

For the record, Hal has already expressed support for the idea of this
patch on IRC.

Differential Revision: https://reviews.llvm.org/D23284

llvm-svn: 281293
2016-09-13 04:32:40 +00:00
..
Action.cpp Remove extra semi-colon. Fixes warning and Werror bots. 2016-07-16 00:58:34 +00:00
CMakeLists.txt MSVCToolChain.cpp: Make version.dll generic for win32. 2016-05-14 08:12:37 +00:00
Compilation.cpp [Driver] Add method to redirect output of Compilation. 2016-06-28 08:00:42 +00:00
CrossWindowsToolChain.cpp [NFC] Header cleanup 2016-07-18 19:02:11 +00:00
Driver.cpp Unrevert r280035 now that the clang-cl bug it exposed has been fixed by 2016-08-30 19:06:26 +00:00
DriverOptions.cpp Update clang to match llvm r250901. OptTable constructor now takes an ArrayRef. NFC 2015-10-21 16:31:33 +00:00
InputInfo.h Add an Action* member to InputInfo. 2016-01-11 23:15:21 +00:00
Job.cpp [NFC] Header cleanup 2016-07-18 19:02:11 +00:00
MSVCToolChain.cpp typo + indentation [NFC] 2016-08-30 18:38:25 +00:00
MinGWToolChain.cpp Revert r253898 and r253899, this breaks mingw compilation on openSUSE. 2016-01-12 10:41:20 +00:00
Multilib.cpp [NFC] Header cleanup 2016-07-18 19:02:11 +00:00
Phases.cpp Reapply "Change -save-temps to emit unoptimized bitcode files." 2014-12-21 07:00:00 +00:00
SanitizerArgs.cpp [sanitizer-coverage] add two more modes of instrumentation: trace-div and trace-gep, mostly usaful for value-profile-based fuzzing; clang part 2016-08-30 01:27:03 +00:00
Tool.cpp Roll-back r250822. 2015-10-20 13:23:58 +00:00
ToolChain.cpp Revert "Driver: use the canonical static library naming" 2016-08-31 19:27:07 +00:00
ToolChains.cpp Myriad: nominally "support" ASAN. 2016-09-09 18:20:49 +00:00
ToolChains.h Debug info: Bump the default DWARF version on Darwin to 4. 2016-09-09 21:10:35 +00:00
Tools.cpp Reapply r281276 with passing -emit-llvm in one of the tests 2016-09-13 04:32:40 +00:00
Tools.h Revert "[Driver] Compute effective target triples once per job (NFCI)" 2016-07-27 23:01:55 +00:00
Types.cpp Unrevert r280035 now that the clang-cl bug it exposed has been fixed by 2016-08-30 19:06:26 +00:00