From: Chris Lattner Date: Mon, 20 Sep 2004 04:43:15 +0000 (+0000) Subject: Prototype these functions more accurately X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=4b5015604908e9296800991a7c538a255356428f;p=oota-llvm.git Prototype these functions more accurately git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16432 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/Scalar/ADCE.cpp b/lib/Transforms/Scalar/ADCE.cpp index 4bd24972d5d..7fafe26d4a9 100644 --- a/lib/Transforms/Scalar/ADCE.cpp +++ b/lib/Transforms/Scalar/ADCE.cpp @@ -106,7 +106,7 @@ private: RegisterOpt X("adce", "Aggressive Dead Code Elimination"); } // End of anonymous namespace -Pass *llvm::createAggressiveDCEPass() { return new ADCE(); } +FunctionPass *llvm::createAggressiveDCEPass() { return new ADCE(); } void ADCE::markBlockAlive(BasicBlock *BB) { // Mark the basic block as being newly ALIVE... and mark all branches that diff --git a/lib/Transforms/Scalar/ConstantProp.cpp b/lib/Transforms/Scalar/ConstantProp.cpp index 2985ceba638..a3fa4a9665d 100644 --- a/lib/Transforms/Scalar/ConstantProp.cpp +++ b/lib/Transforms/Scalar/ConstantProp.cpp @@ -42,7 +42,7 @@ namespace { RegisterOpt X("constprop","Simple constant propagation"); } -Pass *llvm::createConstantPropagationPass() { +FunctionPass *llvm::createConstantPropagationPass() { return new ConstantPropagation(); } diff --git a/lib/Transforms/Scalar/CorrelatedExprs.cpp b/lib/Transforms/Scalar/CorrelatedExprs.cpp index c365622cb44..9697aab5221 100644 --- a/lib/Transforms/Scalar/CorrelatedExprs.cpp +++ b/lib/Transforms/Scalar/CorrelatedExprs.cpp @@ -285,7 +285,9 @@ namespace { RegisterOpt X("cee", "Correlated Expression Elimination"); } -Pass *llvm::createCorrelatedExpressionEliminationPass() { return new CEE(); } +FunctionPass *llvm::createCorrelatedExpressionEliminationPass() { + return new CEE(); +} bool CEE::runOnFunction(Function &F) { diff --git a/lib/Transforms/Scalar/DCE.cpp b/lib/Transforms/Scalar/DCE.cpp index 1a523cde461..ae61208b522 100644 --- a/lib/Transforms/Scalar/DCE.cpp +++ b/lib/Transforms/Scalar/DCE.cpp @@ -53,7 +53,7 @@ namespace { RegisterOpt X("die", "Dead Instruction Elimination"); } -Pass *llvm::createDeadInstEliminationPass() { +FunctionPass *llvm::createDeadInstEliminationPass() { return new DeadInstElimination(); } diff --git a/lib/Transforms/Scalar/DeadStoreElimination.cpp b/lib/Transforms/Scalar/DeadStoreElimination.cpp index 82dfebb5943..c7f3254d4c7 100644 --- a/lib/Transforms/Scalar/DeadStoreElimination.cpp +++ b/lib/Transforms/Scalar/DeadStoreElimination.cpp @@ -56,7 +56,7 @@ namespace { RegisterOpt X("dse", "Dead Store Elimination"); } -Pass *llvm::createDeadStoreEliminationPass() { return new DSE(); } +FunctionPass *llvm::createDeadStoreEliminationPass() { return new DSE(); } bool DSE::runOnBasicBlock(BasicBlock &BB) { TargetData &TD = getAnalysis(); diff --git a/lib/Transforms/Scalar/IndVarSimplify.cpp b/lib/Transforms/Scalar/IndVarSimplify.cpp index 3e6e960ec0b..72ad30c0672 100644 --- a/lib/Transforms/Scalar/IndVarSimplify.cpp +++ b/lib/Transforms/Scalar/IndVarSimplify.cpp @@ -328,7 +328,7 @@ namespace { RegisterOpt X("indvars", "Canonicalize Induction Variables"); } -Pass *llvm::createIndVarSimplifyPass() { +FunctionPass *llvm::createIndVarSimplifyPass() { return new IndVarSimplify(); } diff --git a/lib/Transforms/Scalar/SCCP.cpp b/lib/Transforms/Scalar/SCCP.cpp index 921ff2b4a97..46d90afc44e 100644 --- a/lib/Transforms/Scalar/SCCP.cpp +++ b/lib/Transforms/Scalar/SCCP.cpp @@ -274,7 +274,7 @@ private: // createSCCPPass - This is the public interface to this file... -Pass *llvm::createSCCPPass() { +FunctionPass *llvm::createSCCPPass() { return new SCCP(); } diff --git a/lib/Transforms/Scalar/ScalarReplAggregates.cpp b/lib/Transforms/Scalar/ScalarReplAggregates.cpp index a0d5afe0ce5..35373b9bce0 100644 --- a/lib/Transforms/Scalar/ScalarReplAggregates.cpp +++ b/lib/Transforms/Scalar/ScalarReplAggregates.cpp @@ -64,7 +64,7 @@ namespace { } // Public interface to the ScalarReplAggregates pass -Pass *llvm::createScalarReplAggregatesPass() { return new SROA(); } +FunctionPass *llvm::createScalarReplAggregatesPass() { return new SROA(); } bool SROA::runOnFunction(Function &F) { diff --git a/lib/Transforms/Scalar/SymbolStripping.cpp b/lib/Transforms/Scalar/SymbolStripping.cpp index 2ae79553231..510884bde20 100644 --- a/lib/Transforms/Scalar/SymbolStripping.cpp +++ b/lib/Transforms/Scalar/SymbolStripping.cpp @@ -47,10 +47,10 @@ namespace { "Strip symbols from module and functions"); } -Pass *llvm::createSymbolStrippingPass() { +FunctionPass *llvm::createSymbolStrippingPass() { return new SymbolStripping(); } -Pass *llvm::createFullSymbolStrippingPass() { +FunctionPass *llvm::createFullSymbolStrippingPass() { return new FullSymbolStripping(); } diff --git a/lib/Transforms/Scalar/TailDuplication.cpp b/lib/Transforms/Scalar/TailDuplication.cpp index 491f9bff86e..e9ecfe832a3 100644 --- a/lib/Transforms/Scalar/TailDuplication.cpp +++ b/lib/Transforms/Scalar/TailDuplication.cpp @@ -49,7 +49,7 @@ namespace { } // Public interface to the Tail Duplication pass -Pass *llvm::createTailDuplicationPass() { return new TailDup(); } +FunctionPass *llvm::createTailDuplicationPass() { return new TailDup(); } /// runOnFunction - Top level algorithm - Loop over each unconditional branch in /// the function, eliminating it if it looks attractive enough. diff --git a/lib/Transforms/Utils/LoopSimplify.cpp b/lib/Transforms/Utils/LoopSimplify.cpp index 81cf8e27780..c576149170a 100644 --- a/lib/Transforms/Utils/LoopSimplify.cpp +++ b/lib/Transforms/Utils/LoopSimplify.cpp @@ -88,7 +88,7 @@ namespace { // Publically exposed interface to pass... const PassInfo *llvm::LoopSimplifyID = X.getPassInfo(); -Pass *llvm::createLoopSimplifyPass() { return new LoopSimplify(); } +FunctionPass *llvm::createLoopSimplifyPass() { return new LoopSimplify(); } /// runOnFunction - Run down all loops in the CFG (recursively, but we could do /// it in any convenient order) inserting preheaders... diff --git a/lib/Transforms/Utils/Mem2Reg.cpp b/lib/Transforms/Utils/Mem2Reg.cpp index 39400e72adc..e6eb81577fa 100644 --- a/lib/Transforms/Utils/Mem2Reg.cpp +++ b/lib/Transforms/Utils/Mem2Reg.cpp @@ -76,7 +76,7 @@ bool PromotePass::runOnFunction(Function &F) { // createPromoteMemoryToRegister - Provide an entry point to create this pass. // -Pass *llvm::createPromoteMemoryToRegister() { +FunctionPass *llvm::createPromoteMemoryToRegister() { return new PromotePass(); }