Home
last modified time | relevance | path

Searched refs:OldF (Results 1 – 7 of 7) sorted by relevance

/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/SPIRV/
H A DSPIRVRegularizer.cpp197 auto *OldF = CI->getCalledFunction(); in visitCallScalToVec() local
199 if (!Old2NewFuncs.count(OldF)) { in visitCallScalToVec()
203 FunctionType::get(OldF->getReturnType(), ArgTypes, OldF->isVarArg()); in visitCallScalToVec()
204 NewF = Function::Create(NewFTy, OldF->getLinkage(), OldF->getName(), in visitCallScalToVec()
208 for (auto &Arg : OldF->args()) { in visitCallScalToVec()
217 Old2NewFuncs[OldF] = NewF; in visitCallScalToVec()
219 NewF = Old2NewFuncs[OldF]; in visitCallScalToVec()
243 CI->replaceUsesOfWith(OldF, NewF); in visitCallScalToVec()
251 Function *OldF = OldNew.first; in runOnFunction() local
253 NewF->takeName(OldF); in runOnFunction()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyAddMissingPrototypes.cpp143 Function *OldF = Pair.first; in runOnModule() local
145 std::string Name = std::string(OldF->getName()); in runOnModule()
147 OldF->replaceAllUsesWith( in runOnModule()
148 ConstantExpr::getPointerBitCastOrAddrSpaceCast(NewF, OldF->getType())); in runOnModule()
149 OldF->eraseFromParent(); in runOnModule()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DMergeFunctions.cpp937 const FunctionNode &OldF = *Result.first; in insert() local
939 if (!isFuncOrderCorrect(OldF.getFunc(), NewFunction)) { in insert()
941 Function *F = OldF.getFunc(); in insert()
944 assert(OldF.getFunc() != F && "Must have swapped the functions."); in insert()
947 LLVM_DEBUG(dbgs() << " " << OldF.getFunc()->getName() in insert()
951 mergeTwoFunctions(OldF.getFunc(), DeleteF); in insert()
H A DArgumentPromotion.cpp818 Function &OldF = N.getFunction(); in run() local
819 Function *NewF = promoteArguments(&OldF, FAM, MaxElements, IsRecursive); in run()
830 FAM.clear(OldF, OldF.getName()); in run()
831 OldF.eraseFromParent(); in run()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Analysis/
H A DLazyCallGraph.cpp1443 Function &OldF = N.getFunction(); in replaceNodeFunction() local
1460 assert(&OldF != &NewF && "Cannot replace a function with itself!"); in replaceNodeFunction()
1461 assert(OldF.use_empty() && in replaceNodeFunction()
1468 G->NodeMap.erase(&OldF); in replaceNodeFunction()
1472 if (G->isLibFunction(OldF)) { in replaceNodeFunction()
1473 G->LibFunctions.remove(&OldF); in replaceNodeFunction()
/freebsd-14.2/contrib/llvm-project/clang/lib/CodeGen/
H A DCodeGenModule.cpp509 auto *OldF = cast<llvm::Function>(Entry); in applyReplacements() local
523 OldF->replaceAllUsesWith(Replacement); in applyReplacements()
526 OldF->getParent()->getFunctionList().insertAfter(OldF->getIterator(), in applyReplacements()
529 OldF->eraseFromParent(); in applyReplacements()
/freebsd-14.2/contrib/llvm-project/clang/lib/Sema/
H A DSemaOverload.cpp1159 if (FunctionDecl *OldF = OldD->getAsFunction()) { in CheckOverload() local
1160 if (!IsOverload(New, OldF, UseMemberUsingDeclRules)) { in CheckOverload()
1176 if (!getASTContext().canBuiltinBeRedeclared(OldF)) { in CheckOverload()