From 1cee94f04111cfd7114979d6dfddce2669c9380d Mon Sep 17 00:00:00 2001 From: Devang Patel Date: Tue, 18 Mar 2008 00:39:19 +0000 Subject: Identify Analysis pass. Do not run analysis pass again if analysis info is still available. This fixes PR1441. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48476 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Pass.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/llvm/Pass.h') diff --git a/include/llvm/Pass.h b/include/llvm/Pass.h index 5948922..58bdfc0 100644 --- a/include/llvm/Pass.h +++ b/include/llvm/Pass.h @@ -130,6 +130,11 @@ public: return Resolver; } + /// isAnalysis - Return true if this pass is implementing an analysis pass. + virtual bool isAnalysis() const { + return false; + } + /// getAnalysisUsage - This function should be overriden by passes that need /// analysis information to do their job. If a pass specifies that it uses a /// particular analysis result to this function, it can then use the -- cgit v1.1