Home
last modified time | relevance | path

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

/llvm-project-15.0.7/llvm/tools/llvm-reduce/deltas/
H A DReduceOperandsToArgs.cpp61 for (Use &U : OldF->uses()) { in replaceFunctionCalls()
64 assert(CI->getCalledFunction() == OldF); in replaceFunctionCalls()
107 static void substituteOperandWithArgument(Function *OldF, in substituteOperandWithArgument() argument
128 Function::Create(FTy, OldF->getLinkage(), OldF->getAddressSpace(), in substituteOperandWithArgument()
129 OldF->getName(), OldF->getParent()); in substituteOperandWithArgument()
133 OldF->getParent()->getFunctionList().insertAfter(OldF->getIterator(), NewF); in substituteOperandWithArgument()
137 for (auto Z : zip_first(OldF->args(), NewF->args())) { in substituteOperandWithArgument()
167 replaceFunctionCalls(OldF, NewF); in substituteOperandWithArgument()
170 std::string FName = OldF->getName().str(); in substituteOperandWithArgument()
171 OldF->replaceAllUsesWith(ConstantExpr::getBitCast(NewF, OldF->getType())); in substituteOperandWithArgument()
[all …]
H A DReduceArguments.cpp27 static void replaceFunctionCalls(Function &OldF, Function &NewF, in replaceFunctionCalls() argument
29 const auto &Users = OldF.users(); in replaceFunctionCalls()
34 if (CI->getCalledFunction() != &OldF) in replaceFunctionCalls()
/llvm-project-15.0.7/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()
/llvm-project-15.0.7/llvm/lib/Transforms/IPO/
H A DMergeFunctions.cpp923 const FunctionNode &OldF = *Result.first; in insert() local
925 if (!isFuncOrderCorrect(OldF.getFunc(), NewFunction)) { in insert()
927 Function *F = OldF.getFunc(); in insert()
930 assert(OldF.getFunc() != F && "Must have swapped the functions."); in insert()
933 LLVM_DEBUG(dbgs() << " " << OldF.getFunc()->getName() in insert()
937 mergeTwoFunctions(OldF.getFunc(), DeleteF); in insert()
H A DArgumentPromotion.cpp819 Function &OldF = N.getFunction(); in run() local
820 Function *NewF = promoteArguments(&OldF, FAM, MaxElements, IsRecursive); in run()
831 FAM.clear(OldF, OldF.getName()); in run()
832 OldF.eraseFromParent(); in run()
/llvm-project-15.0.7/llvm/lib/Analysis/
H A DLazyCallGraph.cpp1460 Function &OldF = N.getFunction(); in replaceNodeFunction() local
1477 assert(&OldF != &NewF && "Cannot replace a function with itself!"); in replaceNodeFunction()
1478 assert(OldF.use_empty() && in replaceNodeFunction()
1485 G->NodeMap.erase(&OldF); in replaceNodeFunction()
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCodeGenModule.cpp292 auto *OldF = cast<llvm::Function>(Entry); in applyReplacements() local
306 OldF->replaceAllUsesWith(Replacement); in applyReplacements()
309 OldF->getParent()->getFunctionList().insertAfter(OldF->getIterator(), in applyReplacements()
312 OldF->eraseFromParent(); in applyReplacements()
/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaOverload.cpp1060 if (FunctionDecl *OldF = OldD->getAsFunction()) { in CheckOverload() local
1061 if (!IsOverload(New, OldF, UseMemberUsingDeclRules)) { in CheckOverload()
1077 if (!getASTContext().canBuiltinBeRedeclared(OldF)) { in CheckOverload()