Add -pass-remarks flag to 'opt'.

Press ? to show keyboard shortcuts.
Committed
dnovilloApr 8 2014, 9:42 AM
Parents
rL205774: Add support for optimization reports.
Branches
Unknown
Tags
Unknown
Description

Add -pass-remarks flag to 'opt'.

Summary:
This adds support in 'opt' to filter pass remarks emitted by
optimization passes. A new flag -pass-remarks specifies which
passes should emit a diagnostic when LLVMContext::emitOptimizationRemark
is invoked.

This will allow the front end to simply pass along the regular
expression from its own -Rpass flag when launching the backend.

Depends on D3227.

Reviewers: qcolombet

CC: llvm-commits

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

rL205775

llvm/trunk/lib/IR/LLVMContext.cpp

Loading...

llvm/trunk/lib/IR/LLVMContextImpl.cpp

Loading...

llvm/trunk/lib/IR/LLVMContextImpl.h

Loading...

llvm/trunk/test/Other/optimization-remarks-inline.ll

Loading...

Add Comment