Searched refs:OldFn (Results 1 – 5 of 5) sorted by relevance
/external/llvm-project/llvm/lib/Transforms/Utils/ |
D | CallGraphUpdater.cpp | 120 void CallGraphUpdater::replaceFunctionWith(Function &OldFn, Function &NewFn) { in replaceFunctionWith() argument 121 OldFn.removeDeadConstantUsers(); in replaceFunctionWith() 122 ReplacedFunctions.insert(&OldFn); in replaceFunctionWith() 125 CallGraphNode *OldCGN = (*CG)[&OldFn]; in replaceFunctionWith() 134 LazyCallGraph::Node &OldLCGN = LCG->get(OldFn); in replaceFunctionWith() 137 removeFunction(OldFn); in replaceFunctionWith()
|
/external/llvm-project/llvm/lib/Transforms/IPO/ |
D | Attributor.cpp | 1656 Function *OldFn = It.getFirst(); in rewriteFunctionSignatures() local 1659 if (!Functions.count(OldFn) || ToBeDeletedFunctions.count(OldFn)) in rewriteFunctionSignatures() 1664 assert(ARIs.size() == OldFn->arg_size() && "Inconsistent state!"); in rewriteFunctionSignatures() 1670 AttributeList OldFnAttributeList = OldFn->getAttributes(); in rewriteFunctionSignatures() 1671 for (Argument &Arg : OldFn->args()) { in rewriteFunctionSignatures() 1685 FunctionType *OldFnTy = OldFn->getFunctionType(); in rewriteFunctionSignatures() 1692 LLVM_DEBUG(dbgs() << "[Attributor] Function rewrite '" << OldFn->getName() in rewriteFunctionSignatures() 1693 << "' from " << *OldFn->getFunctionType() << " to " in rewriteFunctionSignatures() 1697 Function *NewFn = Function::Create(NewFnTy, OldFn->getLinkage(), in rewriteFunctionSignatures() 1698 OldFn->getAddressSpace(), ""); in rewriteFunctionSignatures() [all …]
|
/external/llvm-project/llvm/include/llvm/Transforms/Utils/ |
D | CallGraphUpdater.h | 96 void replaceFunctionWith(Function &OldFn, Function &NewFn);
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/IPO/ |
D | Attributor.cpp | 6256 Function *OldFn = It.getFirst(); in rewriteFunctionSignatures() local 6259 if (ToBeDeletedFunctions.count(OldFn)) in rewriteFunctionSignatures() 6263 assert(ARIs.size() == OldFn->arg_size() && "Inconsistent state!"); in rewriteFunctionSignatures() 6269 AttributeList OldFnAttributeList = OldFn->getAttributes(); in rewriteFunctionSignatures() 6270 for (Argument &Arg : OldFn->args()) { in rewriteFunctionSignatures() 6283 FunctionType *OldFnTy = OldFn->getFunctionType(); in rewriteFunctionSignatures() 6290 LLVM_DEBUG(dbgs() << "[Attributor] Function rewrite '" << OldFn->getName() in rewriteFunctionSignatures() 6291 << "' from " << *OldFn->getFunctionType() << " to " in rewriteFunctionSignatures() 6295 Function *NewFn = Function::Create(NewFnTy, OldFn->getLinkage(), in rewriteFunctionSignatures() 6296 OldFn->getAddressSpace(), ""); in rewriteFunctionSignatures() [all …]
|
/external/llvm-project/clang/lib/CodeGen/ |
D | CGObjCMac.cpp | 4026 llvm::Function *OldFn = nullptr, *Fn = nullptr; in GenerateDirectMethod() local 4040 OldFn = I->second; in GenerateDirectMethod() 4047 if (OldFn) { in GenerateDirectMethod() 4050 Fn->takeName(OldFn); in GenerateDirectMethod() 4051 OldFn->replaceAllUsesWith( in GenerateDirectMethod() 4052 llvm::ConstantExpr::getBitCast(Fn, OldFn->getType())); in GenerateDirectMethod() 4053 OldFn->eraseFromParent(); in GenerateDirectMethod()
|