diff options
| author | Diego Novillo <dnovillo@google.com> | 2014-05-22 14:19:46 +0000 |
|---|---|---|
| committer | Diego Novillo <dnovillo@google.com> | 2014-05-22 14:19:46 +0000 |
| commit | d16404a0e79a176b7698d9c7bc1ec146ae2f2f1b (patch) | |
| tree | 0625bc75c6159aa7dc9a60c9fec3c0e609618b38 /lib/Bitcode/Reader/BitstreamReader.cpp | |
| parent | de70176f5ff5465cb32828ffcd70797c6ccb1f81 (diff) | |
| download | llvm-d16404a0e79a176b7698d9c7bc1ec146ae2f2f1b.tar.gz llvm-d16404a0e79a176b7698d9c7bc1ec146ae2f2f1b.tar.bz2 llvm-d16404a0e79a176b7698d9c7bc1ec146ae2f2f1b.tar.xz | |
Add support for missed and analysis optimization remarks.
Summary:
This adds two new diagnostics: -pass-remarks-missed and
-pass-remarks-analysis. They take the same values as -pass-remarks but
are intended to be triggered in different contexts.
-pass-remarks-missed is used by LLVMContext::emitOptimizationRemarkMissed,
which passes call when they tried to apply a transformation but
couldn't.
-pass-remarks-analysis is used by LLVMContext::emitOptimizationRemarkAnalysis,
which passes call when they want to inform the user about analysis
results.
The patch also:
1- Adds support in the inliner for the two new remarks and a
test case.
2- Moves emitOptimizationRemark* functions to the llvm namespace.
3- Adds an LLVMContext argument instead of making them member functions
of LLVMContext.
Reviewers: qcolombet
Subscribers: llvm-commits
Differential Revision: http://reviews.llvm.org/D3682
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@209442 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bitcode/Reader/BitstreamReader.cpp')
0 files changed, 0 insertions, 0 deletions
