Lines Matching defs:duplicateFunction
74 Function* duplicateFunction = CloneFunction(F, VMap,
76 duplicateFunction->setLinkage(GlobalValue::InternalLinkage);
77 F->getParent()->getFunctionList().push_back(duplicateFunction);
84 F->replaceAllUsesWith(duplicateFunction);
115 for (Function::iterator FI = duplicateFunction->begin(),
116 FE = duplicateFunction->end(); FI != FE; ++FI)
123 DT.recalculate(*duplicateFunction);
132 std::vector<User *> Users(duplicateFunction->user_begin(),
133 duplicateFunction->user_end());
143 duplicateFunction->replaceAllUsesWith(F);
144 duplicateFunction->eraseFromParent();