15 #ifndef BREAKCONSTANTGEPS_H
16 #define BREAKCONSTANTGEPS_H
42 return "Remove Constant GEP Expressions";
66 return "unify function exit into one dummy exit basic block";
75 for (Module::const_iterator iter = module.begin(), eiter = module.end();
76 iter != eiter; ++iter)
79 if(fun.isDeclaration())
87 assert(!fn.isDeclaration() &&
"external function does not have DF");
88 return &getAnalysis<UnifyFunctionExitNodes>(
const_cast<Function&
>(fn));
llvm::StringRef getPassName() const
virtual bool runOnModule(Module &M)
UnifyFunctionExitNodes * getUnifyExit(const Function &fn)
Get Unified Exit basic block node.
llvm::StringRef getPassName() const
void UnifyFunctionExit(Module &module)
virtual bool runOnModule(Module &M)
llvm::ModulePass ModulePass
llvm::UnifyFunctionExitNodes UnifyFunctionExitNodes