diff options
Diffstat (limited to 'llvm/include')
| -rw-r--r-- | llvm/include/llvm/IR/IRPrintingPasses.h | 6 | ||||
| -rw-r--r-- | llvm/include/llvm/IR/LegacyPassManager.h | 2 | ||||
| -rw-r--r-- | llvm/include/llvm/IR/LegacyPassManagers.h | 5 | ||||
| -rw-r--r-- | llvm/include/llvm/InitializePasses.h | 1 | ||||
| -rw-r--r-- | llvm/include/llvm/LinkAllPasses.h | 1 | ||||
| -rw-r--r-- | llvm/include/llvm/Pass.h | 52 | ||||
| -rw-r--r-- | llvm/include/llvm/Transforms/Scalar.h | 4 | ||||
| -rw-r--r-- | llvm/include/llvm/Transforms/Vectorize.h | 1 |
8 files changed, 2 insertions, 70 deletions
diff --git a/llvm/include/llvm/IR/IRPrintingPasses.h b/llvm/include/llvm/IR/IRPrintingPasses.h index 3be9449c1a9..230db988f73 100644 --- a/llvm/include/llvm/IR/IRPrintingPasses.h +++ b/llvm/include/llvm/IR/IRPrintingPasses.h @@ -23,7 +23,6 @@ namespace llvm { class Pass; -class BasicBlockPass; class Function; class FunctionPass; class Module; @@ -43,11 +42,6 @@ ModulePass *createPrintModulePass(raw_ostream &OS, FunctionPass *createPrintFunctionPass(raw_ostream &OS, const std::string &Banner = ""); -/// Create and return a pass that writes the BB to the specified -/// \c raw_ostream. -BasicBlockPass *createPrintBasicBlockPass(raw_ostream &OS, - const std::string &Banner = ""); - /// Print out a name of an LLVM value without any prefixes. /// /// The name is surrounded with ""'s and escaped if it has any special or diff --git a/llvm/include/llvm/IR/LegacyPassManager.h b/llvm/include/llvm/IR/LegacyPassManager.h index d6bb79ab601..2b87143276b 100644 --- a/llvm/include/llvm/IR/LegacyPassManager.h +++ b/llvm/include/llvm/IR/LegacyPassManager.h @@ -63,7 +63,7 @@ private: PassManagerImpl *PM; }; -/// FunctionPassManager manages FunctionPasses and BasicBlockPassManagers. +/// FunctionPassManager manages FunctionPasses. class FunctionPassManager : public PassManagerBase { public: /// FunctionPassManager ctor - This initializes the pass manager. It needs, diff --git a/llvm/include/llvm/IR/LegacyPassManagers.h b/llvm/include/llvm/IR/LegacyPassManagers.h index 72bc80fb538..5044c1f6ed3 100644 --- a/llvm/include/llvm/IR/LegacyPassManagers.h +++ b/llvm/include/llvm/IR/LegacyPassManagers.h @@ -53,10 +53,6 @@ // a place to implement common pass manager APIs. All pass managers derive from // PMDataManager. // -// [o] class BBPassManager : public FunctionPass, public PMDataManager; -// -// BBPassManager manages BasicBlockPasses. -// // [o] class FunctionPassManager; // // This is a external interface used to manage FunctionPasses. This @@ -103,7 +99,6 @@ enum PassDebuggingString { EXECUTION_MSG, // "Executing Pass '" + PassName MODIFICATION_MSG, // "Made Modification '" + PassName FREEING_MSG, // " Freeing Pass '" + PassName - ON_BASICBLOCK_MSG, // "' on BasicBlock '" + InstructionName + "'...\n" ON_FUNCTION_MSG, // "' on Function '" + FunctionName + "'...\n" ON_MODULE_MSG, // "' on Module '" + ModuleName + "'...\n" ON_REGION_MSG, // "' on Region '" + Msg + "'...\n'" diff --git a/llvm/include/llvm/InitializePasses.h b/llvm/include/llvm/InitializePasses.h index b8108339abb..034d851abcc 100644 --- a/llvm/include/llvm/InitializePasses.h +++ b/llvm/include/llvm/InitializePasses.h @@ -334,7 +334,6 @@ void initializePostRAMachineSinkingPass(PassRegistry&); void initializePostRASchedulerPass(PassRegistry&); void initializePreISelIntrinsicLoweringLegacyPassPass(PassRegistry&); void initializePredicateInfoPrinterLegacyPassPass(PassRegistry&); -void initializePrintBasicBlockPassPass(PassRegistry&); void initializePrintFunctionPassWrapperPass(PassRegistry&); void initializePrintModulePassWrapperPass(PassRegistry&); void initializeProcessImplicitDefsPass(PassRegistry&); diff --git a/llvm/include/llvm/LinkAllPasses.h b/llvm/include/llvm/LinkAllPasses.h index ac88165845d..46d8f0c8ed8 100644 --- a/llvm/include/llvm/LinkAllPasses.h +++ b/llvm/include/llvm/LinkAllPasses.h @@ -200,7 +200,6 @@ namespace { llvm::raw_string_ostream os(buf); (void) llvm::createPrintModulePass(os); (void) llvm::createPrintFunctionPass(os); - (void) llvm::createPrintBasicBlockPass(os); (void) llvm::createModuleDebugInfoPrinterPass(); (void) llvm::createPartialInliningPass(); (void) llvm::createLintPass(); diff --git a/llvm/include/llvm/Pass.h b/llvm/include/llvm/Pass.h index 1d53ae32cf3..fce7729f90b 100644 --- a/llvm/include/llvm/Pass.h +++ b/llvm/include/llvm/Pass.h @@ -57,13 +57,11 @@ enum PassManagerType { PMT_FunctionPassManager, ///< FPPassManager PMT_LoopPassManager, ///< LPPassManager PMT_RegionPassManager, ///< RGPassManager - PMT_BasicBlockPassManager, ///< BBPassManager PMT_Last }; // Different types of passes. enum PassKind { - PT_BasicBlock, PT_Region, PT_Loop, PT_Function, @@ -305,56 +303,6 @@ protected: bool skipFunction(const Function &F) const; }; -//===----------------------------------------------------------------------===// -/// Deprecated - do not create new passes as BasicBlockPasses. Use FunctionPass -/// with a loop over the BasicBlocks instead. -// -/// BasicBlockPass class - This class is used to implement most local -/// optimizations. Optimizations should subclass this class if they -/// meet the following constraints: -/// 1. Optimizations are local, operating on either a basic block or -/// instruction at a time. -/// 2. Optimizations do not modify the CFG of the contained function, or any -/// other basic block in the function. -/// 3. Optimizations conform to all of the constraints of FunctionPasses. -/// -class BasicBlockPass : public Pass { -public: - explicit BasicBlockPass(char &pid) : Pass(PT_BasicBlock, pid) {} - - /// createPrinterPass - Get a basic block printer pass. - Pass *createPrinterPass(raw_ostream &OS, - const std::string &Banner) const override; - - using llvm::Pass::doInitialization; - using llvm::Pass::doFinalization; - - /// doInitialization - Virtual method overridden by BasicBlockPass subclasses - /// to do any necessary per-function initialization. - virtual bool doInitialization(Function &); - - /// runOnBasicBlock - Virtual method overriden by subclasses to do the - /// per-basicblock processing of the pass. - virtual bool runOnBasicBlock(BasicBlock &BB) = 0; - - /// doFinalization - Virtual method overriden by BasicBlockPass subclasses to - /// do any post processing needed after all passes have run. - virtual bool doFinalization(Function &); - - void preparePassManager(PMStack &PMS) override; - - void assignPassManager(PMStack &PMS, PassManagerType T) override; - - /// Return what kind of Pass Manager can manage this pass. - PassManagerType getPotentialPassManagerType() const override; - -protected: - /// Optional passes call this function to check whether the pass should be - /// skipped. This is the case when Attribute::OptimizeNone is set or when - /// optimization bisect is over the limit. - bool skipBasicBlock(const BasicBlock &BB) const; -}; - /// If the user specifies the -time-passes argument on an LLVM tool command line /// then the value of this boolean will be true, otherwise false. /// This is the storage for the -time-passes option. diff --git a/llvm/include/llvm/Transforms/Scalar.h b/llvm/include/llvm/Transforms/Scalar.h index f06230b6f36..9099d3d06bf 100644 --- a/llvm/include/llvm/Transforms/Scalar.h +++ b/llvm/include/llvm/Transforms/Scalar.h @@ -18,7 +18,6 @@ namespace llvm { -class BasicBlockPass; class Function; class FunctionPass; class ModulePass; @@ -50,8 +49,7 @@ FunctionPass *createSCCPPass(); //===----------------------------------------------------------------------===// // // DeadInstElimination - This pass quickly removes trivially dead instructions -// without modifying the CFG of the function. It is a BasicBlockPass, so it -// runs efficiently when queued next to other BasicBlockPass's. +// without modifying the CFG of the function. It is a FunctionPass. // Pass *createDeadInstEliminationPass(); diff --git a/llvm/include/llvm/Transforms/Vectorize.h b/llvm/include/llvm/Transforms/Vectorize.h index 88a0e49d0fa..bca78d07300 100644 --- a/llvm/include/llvm/Transforms/Vectorize.h +++ b/llvm/include/llvm/Transforms/Vectorize.h @@ -16,7 +16,6 @@ namespace llvm { class BasicBlock; -class BasicBlockPass; class Pass; //===----------------------------------------------------------------------===// |

