diff options
author | Diego Novillo <dnovillo@google.com> | 2014-04-08 16:42:38 +0000 |
---|---|---|
committer | Diego Novillo <dnovillo@google.com> | 2014-04-08 16:42:38 +0000 |
commit | 35d647b6f371265519df465ad1e7b28de7515185 (patch) | |
tree | ad63e722df8f390fd5ad581e07aebba71c5bb7e9 /lib/IR/LLVMContextImpl.h | |
parent | ccbf1d2a05a63f18bedbeddffe930cc70d5f5823 (diff) | |
download | llvm-35d647b6f371265519df465ad1e7b28de7515185.tar.gz llvm-35d647b6f371265519df465ad1e7b28de7515185.tar.bz2 llvm-35d647b6f371265519df465ad1e7b28de7515185.tar.xz |
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
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@205775 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/IR/LLVMContextImpl.h')
-rw-r--r-- | lib/IR/LLVMContextImpl.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/IR/LLVMContextImpl.h b/lib/IR/LLVMContextImpl.h index dc77d291f4..48b3511367 100644 --- a/lib/IR/LLVMContextImpl.h +++ b/lib/IR/LLVMContextImpl.h @@ -368,6 +368,10 @@ public: typedef DenseMap<const Function *, ReturnInst *> PrefixDataMapTy; PrefixDataMapTy PrefixDataMap; + /// \brief Return true if the given pass name should emit optimization + /// remarks. + bool optimizationRemarksEnabledFor(const char *PassName) const; + int getOrAddScopeRecordIdxEntry(MDNode *N, int ExistingIdx); int getOrAddScopeInlinedAtIdxEntry(MDNode *Scope, MDNode *IA,int ExistingIdx); |