[PATCH] Add support for missed and analysis optimization remarks.
Diego Novillo
dnovillo at google.com
Thu May 8 15:14:03 PDT 2014
Hi qcolombet,
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 adds support in the inliner for the two new remarks and a
test case.
http://reviews.llvm.org/D3682
Files:
include/llvm/IR/DiagnosticInfo.h
include/llvm/IR/LLVMContext.h
lib/IR/DiagnosticInfo.cpp
lib/IR/LLVMContext.cpp
lib/IR/LLVMContextImpl.cpp
lib/IR/LLVMContextImpl.h
lib/Transforms/IPO/Inliner.cpp
test/Transforms/Inline/optimization-remarks.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D3682.9230.patch
Type: text/x-patch
Size: 28079 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140508/16e374e0/attachment.bin>
More information about the llvm-commits
mailing list