llvm-project/clang/include/clang
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
..
ARCMigrate [Frontend] Make the memory management of FrontendAction pointers explicit by using unique_ptr. 2016-02-07 19:28:36 +00:00
AST C++ Modules TS: Add parsing and some semantic analysis support for 2016-09-08 23:14:54 +00:00
ASTMatchers Correct the documentation for isSignedInteger() and isUnsignedInteger(). 2016-08-18 12:26:17 +00:00
Analysis [CFG] Add iterator_ranges to CFG and CFGBlock. 2016-09-12 08:28:21 +00:00
Basic Reapply r281276 with passing -emit-llvm in one of the tests 2016-09-13 04:32:40 +00:00
CodeGen [NFC] Header cleanup 2016-07-18 19:02:11 +00:00
Config driver: Support checking for rlimits via cmake (when bootstrapping) 2016-08-23 20:07:07 +00:00
Driver Reapply r281276 with passing -emit-llvm in one of the tests 2016-09-13 04:32:40 +00:00
Edit [NFC] Header cleanup 2016-07-18 19:02:11 +00:00
Format clang-format: Add SpaceAfterTemplate 2016-08-09 14:24:40 +00:00
Frontend Reapply r281276 with passing -emit-llvm in one of the tests 2016-09-13 04:32:40 +00:00
FrontendTool
Index [index] Create different USR if a property is a class property. 2016-07-15 22:18:19 +00:00
Lex Add missing include. White space. 2016-09-07 17:30:50 +00:00
Parse C++ Modules TS: Add parsing and some semantic analysis support for 2016-09-08 23:14:54 +00:00
Rewrite Frontend: Simplify ownership model for clang's output streams. 2016-07-15 00:55:40 +00:00
Sema C++ Modules TS: Add parsing and some semantic analysis support for 2016-09-08 23:14:54 +00:00
Serialization [modules] When we merge two definitions of a function, mark the retained 2016-09-12 21:06:40 +00:00
StaticAnalyzer [analyzer] ExprEngine: remove second call to PreStmt<CastExpr> 2016-09-01 13:55:38 +00:00
Tooling Resubmit "[Tooling] Parse compilation database command lines on Windows." 2016-08-18 19:31:48 +00:00
CMakeLists.txt Fixed bug 2016-05-31 15:56:26 +00:00
module.modulemap Fix module map typo in r269347. 2016-05-13 17:28:51 +00:00