diff options
Diffstat (limited to 'lib/Transforms/Scalar')
-rw-r--r-- | lib/Transforms/Scalar/ADCE.cpp | 2 | ||||
-rw-r--r-- | lib/Transforms/Scalar/ConstantProp.cpp | 2 | ||||
-rw-r--r-- | lib/Transforms/Scalar/DCE.cpp | 4 | ||||
-rw-r--r-- | lib/Transforms/Scalar/DecomposeMultiDimRefs.cpp | 4 | ||||
-rw-r--r-- | lib/Transforms/Scalar/GCSE.cpp | 2 | ||||
-rw-r--r-- | lib/Transforms/Scalar/IndVarSimplify.cpp | 2 | ||||
-rw-r--r-- | lib/Transforms/Scalar/InstructionCombining.cpp | 2 | ||||
-rw-r--r-- | lib/Transforms/Scalar/LICM.cpp | 2 | ||||
-rw-r--r-- | lib/Transforms/Scalar/PiNodeInsertion.cpp | 2 | ||||
-rw-r--r-- | lib/Transforms/Scalar/Reassociate.cpp | 2 | ||||
-rw-r--r-- | lib/Transforms/Scalar/SCCP.cpp | 2 | ||||
-rw-r--r-- | lib/Transforms/Scalar/SimplifyCFG.cpp | 2 | ||||
-rw-r--r-- | lib/Transforms/Scalar/SymbolStripping.cpp | 6 |
13 files changed, 17 insertions, 17 deletions
diff --git a/lib/Transforms/Scalar/ADCE.cpp b/lib/Transforms/Scalar/ADCE.cpp index 058ef1b505..40ae87b5bb 100644 --- a/lib/Transforms/Scalar/ADCE.cpp +++ b/lib/Transforms/Scalar/ADCE.cpp @@ -84,7 +84,7 @@ private: } }; - RegisterPass<ADCE> X("adce", "Aggressive Dead Code Elimination"); + RegisterOpt<ADCE> X("adce", "Aggressive Dead Code Elimination"); } // End of anonymous namespace Pass *createAggressiveDCEPass() { return new ADCE(); } diff --git a/lib/Transforms/Scalar/ConstantProp.cpp b/lib/Transforms/Scalar/ConstantProp.cpp index 025b8a79b2..5da909e202 100644 --- a/lib/Transforms/Scalar/ConstantProp.cpp +++ b/lib/Transforms/Scalar/ConstantProp.cpp @@ -31,7 +31,7 @@ namespace { } }; -RegisterPass<ConstantPropogation> X("constprop", "Simple constant propogation"); + RegisterOpt<ConstantPropogation> X("constprop","Simple constant propogation"); } Pass *createConstantPropogationPass() { diff --git a/lib/Transforms/Scalar/DCE.cpp b/lib/Transforms/Scalar/DCE.cpp index bfc41b14bc..2903699a8d 100644 --- a/lib/Transforms/Scalar/DCE.cpp +++ b/lib/Transforms/Scalar/DCE.cpp @@ -42,7 +42,7 @@ namespace { } }; - RegisterPass<DeadInstElimination> X("die", "Dead Instruction Elimination"); + RegisterOpt<DeadInstElimination> X("die", "Dead Instruction Elimination"); } Pass *createDeadInstEliminationPass() { @@ -64,7 +64,7 @@ namespace { } }; - RegisterPass<DCE> Y("dce", "Dead Code Elimination"); + RegisterOpt<DCE> Y("dce", "Dead Code Elimination"); } bool DCE::runOnFunction(Function &F) { diff --git a/lib/Transforms/Scalar/DecomposeMultiDimRefs.cpp b/lib/Transforms/Scalar/DecomposeMultiDimRefs.cpp index 5d873cda2e..f0a807497a 100644 --- a/lib/Transforms/Scalar/DecomposeMultiDimRefs.cpp +++ b/lib/Transforms/Scalar/DecomposeMultiDimRefs.cpp @@ -27,8 +27,8 @@ namespace { static void decomposeArrayRef(BasicBlock::iterator &BBI); }; -RegisterPass<DecomposePass> X("lowerrefs", "Decompose multi-dimensional " - "structure/array references"); + RegisterOpt<DecomposePass> X("lowerrefs", "Decompose multi-dimensional " + "structure/array references"); } Pass *createDecomposeMultiDimRefsPass() { diff --git a/lib/Transforms/Scalar/GCSE.cpp b/lib/Transforms/Scalar/GCSE.cpp index 568f3db4f3..c8f8775976 100644 --- a/lib/Transforms/Scalar/GCSE.cpp +++ b/lib/Transforms/Scalar/GCSE.cpp @@ -84,7 +84,7 @@ namespace { } }; - RegisterPass<GCSE> X("gcse", "Global Common Subexpression Elimination"); + RegisterOpt<GCSE> X("gcse", "Global Common Subexpression Elimination"); } // createGCSEPass - The public interface to this file... diff --git a/lib/Transforms/Scalar/IndVarSimplify.cpp b/lib/Transforms/Scalar/IndVarSimplify.cpp index 35fe697f0f..411ab11fec 100644 --- a/lib/Transforms/Scalar/IndVarSimplify.cpp +++ b/lib/Transforms/Scalar/IndVarSimplify.cpp @@ -198,7 +198,7 @@ namespace { AU.preservesCFG(); } }; - RegisterPass<InductionVariableSimplify> X("indvars", + RegisterOpt<InductionVariableSimplify> X("indvars", "Cannonicalize Induction Variables"); } diff --git a/lib/Transforms/Scalar/InstructionCombining.cpp b/lib/Transforms/Scalar/InstructionCombining.cpp index ba2bbe0b05..230b553657 100644 --- a/lib/Transforms/Scalar/InstructionCombining.cpp +++ b/lib/Transforms/Scalar/InstructionCombining.cpp @@ -79,7 +79,7 @@ namespace { Instruction *visitInstruction(Instruction &I) { return 0; } }; - RegisterPass<InstCombiner> X("instcombine", "Combine redundant instructions"); + RegisterOpt<InstCombiner> X("instcombine", "Combine redundant instructions"); } diff --git a/lib/Transforms/Scalar/LICM.cpp b/lib/Transforms/Scalar/LICM.cpp index 99450bbd25..9f3c75705a 100644 --- a/lib/Transforms/Scalar/LICM.cpp +++ b/lib/Transforms/Scalar/LICM.cpp @@ -103,7 +103,7 @@ namespace { } }; - RegisterPass<LICM> X("licm", "Loop Invariant Code Motion"); + RegisterOpt<LICM> X("licm", "Loop Invariant Code Motion"); } Pass *createLICMPass() { return new LICM(); } diff --git a/lib/Transforms/Scalar/PiNodeInsertion.cpp b/lib/Transforms/Scalar/PiNodeInsertion.cpp index 81f3cb3e93..399b5fee88 100644 --- a/lib/Transforms/Scalar/PiNodeInsertion.cpp +++ b/lib/Transforms/Scalar/PiNodeInsertion.cpp @@ -55,7 +55,7 @@ namespace { bool insertPiNodeFor(Value *V, BasicBlock *BB, Value *Rep = 0); }; - RegisterPass<PiNodeInserter> X("pinodes", "Pi Node Insertion"); + RegisterOpt<PiNodeInserter> X("pinodes", "Pi Node Insertion"); } Pass *createPiNodeInsertionPass() { return new PiNodeInserter(); } diff --git a/lib/Transforms/Scalar/Reassociate.cpp b/lib/Transforms/Scalar/Reassociate.cpp index a6ad88a9ea..24d7dcebe8 100644 --- a/lib/Transforms/Scalar/Reassociate.cpp +++ b/lib/Transforms/Scalar/Reassociate.cpp @@ -47,7 +47,7 @@ namespace { bool ReassociateBB(BasicBlock *BB); }; - RegisterPass<Reassociate> X("reassociate", "Reassociate expressions"); + RegisterOpt<Reassociate> X("reassociate", "Reassociate expressions"); } Pass *createReassociatePass() { return new Reassociate(); } diff --git a/lib/Transforms/Scalar/SCCP.cpp b/lib/Transforms/Scalar/SCCP.cpp index b32481e48b..b721ca0965 100644 --- a/lib/Transforms/Scalar/SCCP.cpp +++ b/lib/Transforms/Scalar/SCCP.cpp @@ -220,7 +220,7 @@ private: } }; - RegisterPass<SCCP> X("sccp", "Sparse Conditional Constant Propogation"); + RegisterOpt<SCCP> X("sccp", "Sparse Conditional Constant Propogation"); } // end anonymous namespace diff --git a/lib/Transforms/Scalar/SimplifyCFG.cpp b/lib/Transforms/Scalar/SimplifyCFG.cpp index 6774dc17a3..f26d5a01f8 100644 --- a/lib/Transforms/Scalar/SimplifyCFG.cpp +++ b/lib/Transforms/Scalar/SimplifyCFG.cpp @@ -26,7 +26,7 @@ namespace { struct CFGSimplifyPass : public FunctionPass { virtual bool runOnFunction(Function &F); }; - RegisterPass<CFGSimplifyPass> X("simplifycfg", "Simplify the CFG"); + RegisterOpt<CFGSimplifyPass> X("simplifycfg", "Simplify the CFG"); } Pass *createCFGSimplificationPass() { diff --git a/lib/Transforms/Scalar/SymbolStripping.cpp b/lib/Transforms/Scalar/SymbolStripping.cpp index 4ad5af3a7f..2f3d1aad6a 100644 --- a/lib/Transforms/Scalar/SymbolStripping.cpp +++ b/lib/Transforms/Scalar/SymbolStripping.cpp @@ -51,15 +51,15 @@ namespace { AU.setPreservesAll(); } }; - RegisterPass<SymbolStripping> X("strip", "Strip symbols from functions"); + RegisterOpt<SymbolStripping> X("strip", "Strip symbols from functions"); struct FullSymbolStripping : public SymbolStripping { virtual bool doInitialization(Module &M) { return StripSymbolTable(M.getSymbolTable()); } }; - RegisterPass<FullSymbolStripping> Y("mstrip", - "Strip symbols from module and functions"); + RegisterOpt<FullSymbolStripping> Y("mstrip", + "Strip symbols from module and functions"); } Pass *createSymbolStrippingPass() { |