X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=include%2Fllvm%2FPassManagers.h;h=44c932a0c60f05d7660a2a569caaca4ac3753bc6;hb=fc82fabe00b0b820e3c0d7fc9e289bace0295f11;hp=9b6f551f6d80b5816243b901dc08bd65d112cd3f;hpb=19fe8f907e4addad1a33b7590b3f05893c39b3a6;p=oota-llvm.git diff --git a/include/llvm/PassManagers.h b/include/llvm/PassManagers.h index 9b6f551f6d8..44c932a0c60 100644 --- a/include/llvm/PassManagers.h +++ b/include/llvm/PassManagers.h @@ -2,8 +2,8 @@ // // The LLVM Compiler Infrastructure // -// This file was developed by Devang Patel and is distributed under -// the University of Illinois Open Source License. See LICENSE.TXT for details. +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// // @@ -13,9 +13,6 @@ #include "llvm/PassManager.h" #include "llvm/ADT/SmallVector.h" -using namespace llvm; -class llvm::PMDataManager; -class llvm::PMStack; //===----------------------------------------------------------------------===// // Overview: @@ -84,6 +81,9 @@ class llvm::PMStack; // MPPassManagers. //===----------------------------------------------------------------------===// +#ifndef PASSMANAGERS_H +#define PASSMANAGERS_H + namespace llvm { /// FunctionPassManager and PassManager, two top level managers, serve @@ -204,10 +204,6 @@ public: virtual ~PMDataManager(); - /// Return true IFF pass P's required analysis set does not required new - /// manager. - bool manageablePass(Pass *P); - /// Augment AvailableAnalysis by adding analysis made available by pass P. void recordAvailableAnalysis(Pass *P); @@ -218,7 +214,7 @@ public: void removeNotPreservedAnalysis(Pass *P); /// Remove dead passes - void removeDeadPasses(Pass *P, std::string Msg, enum PassDebuggingString); + void removeDeadPasses(Pass *P, const char *Msg, enum PassDebuggingString); /// Add pass P into the PassVector. Update /// AvailableAnalysis appropriately if ProcessAnalysis is true. @@ -273,7 +269,7 @@ public: void dumpLastUses(Pass *P, unsigned Offset) const; void dumpPassArguments() const; void dumpPassInfo(Pass *P, enum PassDebuggingString S1, - enum PassDebuggingString S2, std::string Msg); + enum PassDebuggingString S2, const char *Msg); void dumpAnalysisSetInfo(const char *Msg, Pass *P, const std::vector &Set) const; @@ -338,7 +334,7 @@ class FPPassManager : public ModulePass, public PMDataManager { public: static char ID; explicit FPPassManager(int Depth) - : ModulePass((intptr_t)&ID), PMDataManager(Depth) { } + : ModulePass(intptr_t(&ID)), PMDataManager(Depth) { } /// run - Execute all of the passes scheduled for execution. Keep track of /// whether any of the passes modifies the module, and if so, return true. @@ -349,7 +345,7 @@ public: /// bool doInitialization(Module &M); - /// doFinalization - Run all of the initializers for the function passes. + /// doFinalization - Run all of the finalizers for the function passes. /// bool doFinalization(Module &M); @@ -378,5 +374,8 @@ public: } -extern void StartPassTimer(Pass *); -extern void StopPassTimer(Pass *); +extern void StartPassTimer(llvm::Pass *); +extern void StopPassTimer(llvm::Pass *); + +#endif +