Searched refs:OldF (Results 1 – 8 of 8) sorted by relevance
| /freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/ |
| H A D | SPIRVRegularizer.cpp | 191 auto *OldF = CI->getCalledFunction(); in visitCallScalToVec() local 193 auto [It, Inserted] = Old2NewFuncs.try_emplace(OldF); in visitCallScalToVec() 196 SmallVector<Type *, 2> ArgTypes = {OldF->getArg(0)->getType(), Arg0Ty}; in visitCallScalToVec() 198 FunctionType::get(OldF->getReturnType(), ArgTypes, OldF->isVarArg()); in visitCallScalToVec() 199 NewF = Function::Create(NewFTy, OldF->getLinkage(), OldF->getName(), in visitCallScalToVec() 200 *OldF->getParent()); in visitCallScalToVec() 203 for (auto &Arg : OldF->args()) { in visitCallScalToVec() 209 CloneFunctionInto(NewF, OldF, VMap, in visitCallScalToVec() 239 CI->replaceUsesOfWith(OldF, NewF); in visitCallScalToVec() 247 Function *OldF = OldNew.first; in runOnFunction() local [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/ |
| H A D | WebAssemblyAddMissingPrototypes.cpp | 142 Function *OldF = Pair.first; in runOnModule() local 144 std::string Name = std::string(OldF->getName()); in runOnModule() 146 OldF->replaceAllUsesWith( in runOnModule() 147 ConstantExpr::getPointerBitCastOrAddrSpaceCast(NewF, OldF->getType())); in runOnModule() 148 OldF->eraseFromParent(); in runOnModule()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/ |
| H A D | MergeFunctions.cpp | 1023 const FunctionNode &OldF = *Result.first; in insert() local 1025 if (!isFuncOrderCorrect(OldF.getFunc(), NewFunction)) { in insert() 1027 Function *F = OldF.getFunc(); in insert() 1030 assert(OldF.getFunc() != F && "Must have swapped the functions."); in insert() 1033 LLVM_DEBUG(dbgs() << " " << OldF.getFunc()->getName() in insert() 1037 mergeTwoFunctions(OldF.getFunc(), DeleteF); in insert() 1038 this->DelToNewMap.insert({DeleteF, OldF.getFunc()}); in insert()
|
| H A D | ArgumentPromotion.cpp | 914 Function &OldF = N.getFunction(); in run() local 915 Function *NewF = promoteArguments(&OldF, FAM, MaxElements, IsRecursive); in run() 926 FAM.clear(OldF, OldF.getName()); in run() 927 OldF.eraseFromParent(); in run()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPULowerBufferFatPointers.cpp | 2367 static Function *moveFunctionAdaptingType(Function *OldF, FunctionType *NewTy, in moveFunctionAdaptingType() argument 2369 bool IsIntrinsic = OldF->isIntrinsic(); in moveFunctionAdaptingType() 2371 Function::Create(NewTy, OldF->getLinkage(), OldF->getAddressSpace()); in moveFunctionAdaptingType() 2372 NewF->copyAttributesFrom(OldF); in moveFunctionAdaptingType() 2373 NewF->copyMetadata(OldF, 0); in moveFunctionAdaptingType() 2374 NewF->takeName(OldF); in moveFunctionAdaptingType() 2376 NewF->setDLLStorageClass(OldF->getDLLStorageClass()); in moveFunctionAdaptingType() 2377 OldF->getParent()->getFunctionList().insertAfter(OldF->getIterator(), NewF); in moveFunctionAdaptingType() 2379 while (!OldF->empty()) { in moveFunctionAdaptingType() 2380 BasicBlock *BB = &OldF->front(); in moveFunctionAdaptingType() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
| H A D | LazyCallGraph.cpp | 1449 Function &OldF = N.getFunction(); in replaceNodeFunction() local 1466 assert(&OldF != &NewF && "Cannot replace a function with itself!"); in replaceNodeFunction() 1467 assert(OldF.use_empty() && in replaceNodeFunction() 1474 G->NodeMap.erase(&OldF); in replaceNodeFunction() 1478 if (G->isLibFunction(OldF)) { in replaceNodeFunction() 1479 G->LibFunctions.remove(&OldF); in replaceNodeFunction()
|
| /freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
| H A D | CodeGenModule.cpp | 627 auto *OldF = cast<llvm::Function>(Entry); in applyReplacements() local 641 OldF->replaceAllUsesWith(Replacement); in applyReplacements() 644 OldF->getParent()->getFunctionList().insertAfter(OldF->getIterator(), in applyReplacements() 647 OldF->eraseFromParent(); in applyReplacements()
|
| /freebsd/contrib/llvm-project/clang/lib/Sema/ |
| H A D | SemaOverload.cpp | 1237 if (FunctionDecl *OldF = OldD->getAsFunction()) { in CheckOverload() local 1238 if (!IsOverload(New, OldF, UseMemberUsingDeclRules)) { in CheckOverload() 1254 if (!getASTContext().canBuiltinBeRedeclared(OldF)) { in CheckOverload()
|