Searched refs:OldF (Results 1 - 6 of 6) sorted by relevance

/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyAddMissingPrototypes.cpp133 Function *OldF = Pair.first; local
135 std::string Name = std::string(OldF->getName());
137 OldF->replaceAllUsesWith(
138 ConstantExpr::getPointerBitCastOrAddrSpaceCast(NewF, OldF->getType()));
139 OldF->eraseFromParent();
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DArgumentPromotion.cpp1029 Function &OldF = N.getFunction(); local
1036 assert(&F == &OldF && "Called with an unexpected function!");
1040 const TargetTransformInfo &TTI = FAM.getResult<TargetIRAnalysis>(OldF);
1042 promoteArguments(&OldF, AARGetter, MaxElements, None, TTI);
1053 OldF.eraseFromParent();
1131 Function *OldF = OldNode->getFunction(); local
1132 if (!OldF)
1145 getAnalysis<TargetTransformInfoWrapperPass>().getTTI(*OldF);
1146 if (Function *NewF = promoteArguments(OldF, AARGetter, MaxElements,
1156 OldF
[all...]
H A DMergeFunctions.cpp915 const FunctionNode &OldF = *Result.first; local
917 if (!isFuncOrderCorrect(OldF.getFunc(), NewFunction)) {
919 Function *F = OldF.getFunc();
922 assert(OldF.getFunc() != F && "Must have swapped the functions.");
925 LLVM_DEBUG(dbgs() << " " << OldF.getFunc()->getName()
929 mergeTwoFunctions(OldF.getFunc(), DeleteF);
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Analysis/
H A DLazyCallGraph.cpp1458 Function &OldF = N.getFunction();
1476 assert(&OldF != &NewF && "Cannot replace a function with itself!");
1477 assert(OldF.use_empty() &&
1484 G->NodeMap.erase(&OldF);
/freebsd-13-stable/contrib/llvm-project/clang/lib/CodeGen/
H A DCodeGenModule.cpp242 auto *OldF = cast<llvm::Function>(Entry); local
256 OldF->replaceAllUsesWith(Replacement);
259 OldF->getParent()->getFunctionList().insertAfter(OldF->getIterator(),
262 OldF->eraseFromParent();
/freebsd-13-stable/contrib/llvm-project/clang/lib/Sema/
H A DSemaOverload.cpp1059 if (FunctionDecl *OldF = OldD->getAsFunction()) {
1060 if (!IsOverload(New, OldF, UseMemberUsingDeclRules)) {
1076 if (!getASTContext().canBuiltinBeRedeclared(OldF)) {

Completed in 301 milliseconds