/freebsd-13-stable/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
H A D | CallGraphUpdater.cpp | 99 void CallGraphUpdater::registerOutlinedFunction(Function &NewFn) { argument 101 CG->addToCallGraph(&NewFn); 103 LCG->addNewFunctionIntoSCC(NewFn, *SCC); 122 void CallGraphUpdater::replaceFunctionWith(Function &OldFn, Function &NewFn) { argument 128 CallGraphNode *NewCGN = CG->getOrInsertFunction(&NewFn); 137 SCC->getOuterRefSCC().replaceNodeFunction(OldLCGN, NewFn);
|
/freebsd-13-stable/contrib/llvm-project/llvm/include/llvm/IR/ |
H A D | AutoUpgrade.h | 32 /// null in NewFn if the all calls to the original intrinsic function 34 bool UpgradeIntrinsicFunction(Function *F, Function *&NewFn); 38 void UpgradeIntrinsicCall(CallInst *CI, Function *NewFn);
|
/freebsd-13-stable/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/ |
H A D | CallGraphUpdater.h | 90 void registerOutlinedFunction(Function &NewFn); 92 /// Replace \p OldFn in the call graph (and SCC) with \p NewFn. The uses 96 void replaceFunctionWith(Function &OldFn, Function &NewFn);
|
/freebsd-13-stable/contrib/llvm-project/llvm/lib/IR/ |
H A D | AutoUpgrade.cpp | 42 Function *&NewFn) { 51 NewFn = Intrinsic::getDeclaration(F->getParent(), IID); 58 Function *&NewFn) { 67 NewFn = Intrinsic::getDeclaration(F->getParent(), IID); 407 Function *&NewFn) { 415 NewFn = nullptr; 425 NewFn = Intrinsic::getDeclaration(F->getParent(), 433 return UpgradePTESTIntrinsic(F, Intrinsic::x86_sse41_ptestc, NewFn); 435 return UpgradePTESTIntrinsic(F, Intrinsic::x86_sse41_ptestz, NewFn); 437 return UpgradePTESTIntrinsic(F, Intrinsic::x86_sse41_ptestnzc, NewFn); 41 UpgradePTESTIntrinsic(Function* F, Intrinsic::ID IID, Function *&NewFn) argument 57 UpgradeX86IntrinsicsWith8BitMask(Function *F, Intrinsic::ID IID, Function *&NewFn) argument 406 UpgradeX86IntrinsicFunction(Function *F, StringRef Name, Function *&NewFn) argument 502 UpgradeIntrinsicFunction1(Function *F, Function *&NewFn) argument 855 UpgradeIntrinsicFunction(Function *F, Function *&NewFn) argument 1684 UpgradeIntrinsicCall(CallInst *CI, Function *NewFn) argument 3783 Function *NewFn; local [all...] |
/freebsd-13-stable/contrib/llvm-project/llvm/lib/CodeGen/ |
H A D | PreISelIntrinsicLowering.cpp | 72 static bool lowerObjCCall(Function &F, const char *NewFn, argument 80 FunctionCallee FCache = M->getOrInsertFunction(NewFn, F.getFunctionType());
|
H A D | IntrinsicLowering.cpp | 30 static CallInst *ReplaceCallWith(const char *NewFn, CallInst *CI, argument 41 M->getOrInsertFunction(NewFn, FunctionType::get(RetTy, ParamTys, false));
|
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Transforms/IPO/ |
H A D | Attributor.cpp | 1515 Function *NewFn = Function::Create(NewFnTy, OldFn->getLinkage(), 1517 OldFn->getParent()->getFunctionList().insert(OldFn->getIterator(), NewFn); 1518 NewFn->takeName(OldFn); 1519 NewFn->copyAttributesFrom(OldFn); 1522 NewFn->setSubprogram(OldFn->getSubprogram()); 1528 NewFn->setAttributes(AttributeList::get( 1535 NewFn->getBasicBlockList().splice(NewFn->begin(), 1544 BA->replaceAllUsesWith(BlockAddress::get(NewFn, BA->getBasicBlock())); 1581 assert(NewArgOperands.size() == NewFn [all...] |
H A D | FunctionImport.cpp | 1109 Function *NewFn = CloneFunction(Fn, VMap); local 1112 NewFn->setLinkage(GA->getLinkage()); 1113 NewFn->setVisibility(GA->getVisibility()); 1114 GA->replaceAllUsesWith(ConstantExpr::getBitCast(NewFn, GA->getType())); 1115 NewFn->takeName(GA); 1116 return NewFn;
|
/freebsd-13-stable/contrib/llvm-project/clang/lib/CodeGen/ |
H A D | CGVTables.cpp | 185 llvm::Function *NewFn = llvm::CloneFunction(BaseFn, VMap); local 186 Fn->replaceAllUsesWith(NewFn); 187 NewFn->takeName(Fn); 189 Fn = NewFn;
|
H A D | CodeGenModule.cpp | 2900 llvm::Function *NewFn); 4474 llvm::Function *NewFn) { 4478 replaceUsesOfNonProtoConstant(Old, NewFn); 4473 ReplaceUsesOfNonProtoTypeWithRealFunction(llvm::GlobalValue *Old, llvm::Function *NewFn) argument
|
/freebsd-13-stable/contrib/llvm-project/clang/lib/Sema/ |
H A D | SemaOverload.cpp | 12727 ExprResult NewFn = ExprError(); 12729 NewFn = SemaRef.BuildPossibleImplicitMemberExpr(SS, TemplateKWLoc, R, 12732 NewFn = SemaRef.BuildTemplateIdExpr(SS, TemplateKWLoc, R, false, 12735 NewFn = SemaRef.BuildDeclarationNameExpr(SS, R, false); 12737 if (NewFn.isInvalid()) 12743 return SemaRef.BuildCallExpr(/*Scope*/ nullptr, NewFn.get(), LParenLoc, 14404 ExprResult NewFn = CreateFunctionRefExpr(*this, Method, Best->FoundDecl, 14408 if (NewFn.isInvalid()) 14484 Context, OO_Call, NewFn.get(), MethodArgs, ResultTy, VK, RParenLoc,
|
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Bitcode/Reader/ |
H A D | BitcodeReader.cpp | 3016 Function *NewFn; local 3017 if (UpgradeIntrinsicFunction(&F, NewFn)) 3018 UpgradedIntrinsics[&F] = NewFn;
|