Home
last modified time | relevance | path

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

/freebsd/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()
201 SmallVector<Type *, 2> ArgTypes = {OldF->getArg(0)->getType(), Arg0Ty}; in visitCallScalToVec()
203 FunctionType::get(OldF->getReturnType(), ArgTypes, OldF->isVarArg()); in visitCallScalToVec()
204 NewF = Function::Create(NewFTy, OldF->getLinkage(), OldF->getName(), in visitCallScalToVec()
205 *OldF->getParent()); in visitCallScalToVec()
208 for (auto &Arg : OldF->args()) { in visitCallScalToVec()
214 CloneFunctionInto(NewF, OldF, VMa in visitCallScalToVec()
251 Function *OldF = OldNew.first; runOnFunction() local
[all...]
/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyAddMissingPrototypes.cpp144 Function *OldF = Pair.first; in runOnModule() local
146 std::string Name = std::string(OldF->getName()); in runOnModule()
148 OldF->replaceAllUsesWith( in runOnModule()
149 ConstantExpr::getPointerBitCastOrAddrSpaceCast(NewF, OldF->getType())); in runOnModule()
150 OldF->eraseFromParent(); in runOnModule()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPULowerBufferFatPointers.cpp1662 static Function *moveFunctionAdaptingType(Function *OldF, FunctionType *NewTy, in moveFunctionAdaptingType() argument
1664 bool IsIntrinsic = OldF->isIntrinsic(); in moveFunctionAdaptingType()
1666 Function::Create(NewTy, OldF->getLinkage(), OldF->getAddressSpace()); in moveFunctionAdaptingType()
1667 NewF->IsNewDbgInfoFormat = OldF->IsNewDbgInfoFormat; in moveFunctionAdaptingType()
1668 NewF->copyAttributesFrom(OldF); in moveFunctionAdaptingType()
1669 NewF->copyMetadata(OldF, 0); in moveFunctionAdaptingType()
1670 NewF->takeName(OldF); in moveFunctionAdaptingType()
1672 NewF->setDLLStorageClass(OldF->getDLLStorageClass()); in moveFunctionAdaptingType()
1673 OldF->getParent()->getFunctionList().insertAfter(OldF->getIterator(), NewF); in moveFunctionAdaptingType()
1675 while (!OldF->empty()) { in moveFunctionAdaptingType()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DMergeFunctions.cpp992 const FunctionNode &OldF = *Result.first; in insert() local
994 if (!isFuncOrderCorrect(OldF.getFunc(), NewFunction)) { in insert()
996 Function *F = OldF.getFunc(); in insert()
999 assert(OldF.getFunc() != F && "Must have swapped the functions."); in insert()
1002 LLVM_DEBUG(dbgs() << " " << OldF.getFunc()->getName() in insert()
1006 mergeTwoFunctions(OldF.getFunc(), DeleteF); in insert()
H A DArgumentPromotion.cpp875 Function &OldF = N.getFunction(); in run() local
876 Function *NewF = promoteArguments(&OldF, FAM, MaxElements, IsRecursive); in run()
887 FAM.clear(OldF, OldF.getName()); in run()
888 OldF.eraseFromParent(); in run()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DLazyCallGraph.cpp1447 Function &OldF = N.getFunction(); in replaceNodeFunction() local
1464 assert(&OldF != &NewF && "Cannot replace a function with itself!"); in replaceNodeFunction()
1465 assert(OldF.use_empty() && in replaceNodeFunction()
1472 G->NodeMap.erase(&OldF); in replaceNodeFunction()
1476 if (G->isLibFunction(OldF)) { in replaceNodeFunction()
1477 G->LibFunctions.remove(&OldF); in replaceNodeFunction()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCodeGenModule.cpp520 auto *OldF = cast<llvm::Function>(Entry); in applyReplacements() local
534 OldF->replaceAllUsesWith(Replacement); in applyReplacements()
537 OldF->getParent()->getFunctionList().insertAfter(OldF->getIterator(), in applyReplacements()
540 OldF->eraseFromParent(); in applyReplacements()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaOverload.cpp1204 if (FunctionDecl *OldF = OldD->getAsFunction()) { in CheckOverload() local
1205 if (!IsOverload(New, OldF, UseMemberUsingDeclRules)) { in CheckOverload()
1221 if (!getASTContext().canBuiltinBeRedeclared(OldF)) { in CheckOverload()