diff options
Diffstat (limited to 'include/llvm/Pass.h')
-rw-r--r-- | include/llvm/Pass.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/llvm/Pass.h b/include/llvm/Pass.h index 35ec022516..e16144397c 100644 --- a/include/llvm/Pass.h +++ b/include/llvm/Pass.h @@ -307,6 +307,11 @@ public: /// Return what kind of Pass Manager can manage this pass. virtual PassManagerType getPotentialPassManagerType() const; + +protected: + /// skipOptnoneFunction - This function has Attribute::OptimizeNone + /// and most transformation passes should skip it. + bool skipOptnoneFunction(Function &F) const; }; @@ -351,6 +356,11 @@ public: /// Return what kind of Pass Manager can manage this pass. virtual PassManagerType getPotentialPassManagerType() const; + +protected: + /// skipOptnoneFunction - Containing function has Attribute::OptimizeNone + /// and most transformation passes should skip it. + bool skipOptnoneFunction(BasicBlock &BB) const; }; /// If the user specifies the -time-passes argument on an LLVM tool command line |