Home

Add support for optimization reports.

Press ? to show keyboard shortcuts.
Committed
dnovilloApr 8 2014, 9:42 AM
Parents
rL205773: Have validate-system-headers override validate-once-per-build-session
Branches
Unknown
Tags
Unknown
Subscribers
None
Projects
None
Description

Add support for optimization reports.

Summary:
This patch adds backend support for -Rpass=, which indicates the name
of the optimization pass that should emit remarks stating when it
made a transformation to the code.

Pass names are taken from their DEBUG_NAME definitions.

When emitting an optimization report diagnostic, the lack of debug
information causes the diagnostic to use "<unknown>:0:0" as the
location string.

This is the back end counterpart for

http://llvm-reviews.chandlerc.com/D3226

Reviewers: qcolombet

CC: llvm-commits

Differential Revision: http://llvm-reviews.chandlerc.com/D3227

rL205774

llvm/trunk/include/llvm/IR/DiagnosticInfo.h

Loading...

llvm/trunk/include/llvm/IR/LLVMContext.h

Loading...

llvm/trunk/lib/IR/DiagnosticInfo.cpp

Loading...

llvm/trunk/lib/IR/LLVMContext.cpp

Loading...

llvm/trunk/lib/Transforms/IPO/Inliner.cpp

Loading...

Add Comment