class CallGraph;
class PMStack;
-struct CallGraphSCCPass : public ModulePass {
+struct CallGraphSCCPass : public Pass {
/// doInitialization - This method is called before the SCC's of the program
/// has been processed, allowing the pass to do initialization as necessary.
class FunctionPass;
class ModulePass;
+class Pass;
class Function;
class BasicBlock;
/// createFunctionInliningPass - Return a new pass object that uses a heuristic
/// to inline direct function calls to small functions.
///
-ModulePass *createFunctionInliningPass();
+Pass *createFunctionInliningPass();
//===----------------------------------------------------------------------===//
/// createPruneEHPass - Return a new pass object which transforms invoke
/// instructions into calls, if the callee can _not_ unwind the stack.
///
-ModulePass *createPruneEHPass();
+Pass *createPruneEHPass();
//===----------------------------------------------------------------------===//
/// createInternalizePass - This pass loops over all of the functions in the
/// createArgumentPromotionPass - This pass promotes "by reference" arguments to
/// be passed by value.
///
-ModulePass *createArgumentPromotionPass();
+Pass *createArgumentPromotionPass();
//===----------------------------------------------------------------------===//
/// createIPConstantPropagationPass - This pass propagates constants from call
"Promote 'by reference' arguments to scalars");
}
-ModulePass *llvm::createArgumentPromotionPass() {
+Pass *llvm::createArgumentPromotionPass() {
return new ArgPromotion();
}
RegisterPass<SimpleInliner> X("inline", "Function Integration/Inlining");
}
-ModulePass *llvm::createFunctionInliningPass() { return new SimpleInliner(); }
+Pass *llvm::createFunctionInliningPass() { return new SimpleInliner(); }
// CountCodeReductionForConstant - Figure out an approximation for how many
// instructions will be constant folded if the specified value is constant.
RegisterPass<PruneEH> X("prune-eh", "Remove unused exception handling info");
}
-ModulePass *llvm::createPruneEHPass() { return new PruneEH(); }
+Pass *llvm::createPruneEHPass() { return new PruneEH(); }
bool PruneEH::runOnSCC(const std::vector<CallGraphNode *> &SCC) {