/// other basic block in the function.
/// 3. Optimizations conform to all of the constraints of FunctionPasses.
///
-class BasicBlockPass : public FunctionPass {
+class BasicBlockPass : public Pass {
public:
/// doInitialization - Virtual method overridden by subclasses to do
/// any necessary per-module initialization.
namespace llvm {
-class ModulePass;
class FunctionPass;
+class Pass;
class GetElementPtrInst;
class PassInfo;
class TerminatorInst;
// without modifying the CFG of the function. It is a BasicBlockPass, so it
// runs efficiently when queued next to other BasicBlockPass's.
//
-FunctionPass *createDeadInstEliminationPass();
+Pass *createDeadInstEliminationPass();
//===----------------------------------------------------------------------===//
//
//
// AU.addRequiredID(LowerAllocationsID);
//
-FunctionPass *createLowerAllocationsPass(bool LowerMallocArgToInteger = false);
+Pass *createLowerAllocationsPass(bool LowerMallocArgToInteger = false);
extern const PassInfo *LowerAllocationsID;
//===----------------------------------------------------------------------===//
RegisterPass<DeadInstElimination> X("die", "Dead Instruction Elimination");
}
-FunctionPass *llvm::createDeadInstEliminationPass() {
+Pass *llvm::createDeadInstEliminationPass() {
return new DeadInstElimination();
}
// Publically exposed interface to pass...
const PassInfo *llvm::LowerAllocationsID = X.getPassInfo();
// createLowerAllocationsPass - Interface to this file...
-FunctionPass *llvm::createLowerAllocationsPass(bool LowerMallocArgToInteger) {
+Pass *llvm::createLowerAllocationsPass(bool LowerMallocArgToInteger) {
return new LowerAllocations(LowerMallocArgToInteger);
}