Searched refs:OldF (Results 1 – 7 of 7) sorted by relevance
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/WebAssembly/ |
D | WebAssemblyAddMissingPrototypes.cpp | 133 Function *OldF = Pair.first; in runOnModule() local 135 std::string Name = OldF->getName(); in runOnModule() 137 OldF->replaceAllUsesWith( in runOnModule() 138 ConstantExpr::getPointerBitCastOrAddrSpaceCast(NewF, OldF->getType())); in runOnModule() 139 OldF->eraseFromParent(); in runOnModule()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/IPO/ |
D | ArgumentPromotion.cpp | 1032 Function &OldF = N.getFunction(); in run() local 1039 assert(&F == &OldF && "Called with an unexpected function!"); in run() 1043 const TargetTransformInfo &TTI = FAM.getResult<TargetIRAnalysis>(OldF); in run() 1045 promoteArguments(&OldF, AARGetter, MaxElements, None, TTI); in run() 1056 OldF.eraseFromParent(); in run() 1134 Function *OldF = OldNode->getFunction(); in runOnSCC() local 1135 if (!OldF) in runOnSCC() 1149 getAnalysis<TargetTransformInfoWrapperPass>().getTTI(*OldF); in runOnSCC() 1150 if (Function *NewF = promoteArguments(OldF, AARGetter, MaxElements, in runOnSCC() 1160 OldF->setLinkage(Function::ExternalLinkage); in runOnSCC()
|
D | MergeFunctions.cpp | 916 const FunctionNode &OldF = *Result.first; in insert() local 918 if (!isFuncOrderCorrect(OldF.getFunc(), NewFunction)) { in insert() 920 Function *F = OldF.getFunc(); in insert() 923 assert(OldF.getFunc() != F && "Must have swapped the functions."); in insert() 926 LLVM_DEBUG(dbgs() << " " << OldF.getFunc()->getName() in insert() 930 mergeTwoFunctions(OldF.getFunc(), DeleteF); in insert()
|
/external/llvm/lib/Transforms/IPO/ |
D | MergeFunctions.cpp | 1807 const FunctionNode &OldF = *Result.first; in insert() local 1826 if ((OldF.getFunc()->isInterposable() && !NewFunction->isInterposable()) || in insert() 1827 (OldF.getFunc()->isInterposable() == NewFunction->isInterposable() && in insert() 1828 OldF.getFunc()->getName() > NewFunction->getName())) { in insert() 1830 Function *F = OldF.getFunc(); in insert() 1833 assert(OldF.getFunc() != F && "Must have swapped the functions."); in insert() 1836 DEBUG(dbgs() << " " << OldF.getFunc()->getName() in insert() 1840 mergeTwoFunctions(OldF.getFunc(), DeleteF); in insert()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/ |
D | LazyCallGraph.cpp | 1446 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()
|
/external/clang/lib/CodeGen/ |
D | CodeGenModule.cpp | 219 auto *OldF = cast<llvm::Function>(Entry); in applyReplacements() local 233 OldF->replaceAllUsesWith(Replacement); in applyReplacements() 236 OldF->getParent()->getFunctionList().insertAfter(OldF->getIterator(), in applyReplacements() 239 OldF->eraseFromParent(); in applyReplacements()
|
/external/clang/lib/Sema/ |
D | SemaOverload.cpp | 958 if (FunctionDecl *OldF = OldD->getAsFunction()) { in CheckOverload() local 959 if (!IsOverload(New, OldF, UseMemberUsingDeclRules)) { in CheckOverload()
|