Lines Matching refs:OldFunc
78 void llvm::CloneFunctionInto(Function *NewFunc, const Function *OldFunc, in CloneFunctionInto() argument
88 for (const Argument &I : OldFunc->args()) in CloneFunctionInto()
95 NewFunc->copyAttributesFrom(OldFunc); in CloneFunctionInto()
99 if (OldFunc->hasPersonalityFn()) in CloneFunctionInto()
101 MapValue(OldFunc->getPersonalityFn(), VMap, in CloneFunctionInto()
105 AttributeSet OldAttrs = OldFunc->getAttributes(); in CloneFunctionInto()
107 for (const Argument &OldArg : OldFunc->args()) in CloneFunctionInto()
123 OldFunc->getAllMetadata(MDs); in CloneFunctionInto()
135 for (Function::const_iterator BI = OldFunc->begin(), BE = OldFunc->end(); in CloneFunctionInto()
152 Constant *OldBBAddr = BlockAddress::get(const_cast<Function*>(OldFunc), in CloneFunctionInto()
165 cast<BasicBlock>(VMap[&OldFunc->front()])->getIterator(), in CloneFunctionInto()
222 const Function *OldFunc; member
232 : NewFunc(newFunc), OldFunc(oldFunc), VMap(valueMap), in PruningFunctionCloner()
269 Constant *OldBBAddr = BlockAddress::get(const_cast<Function*>(OldFunc), in CloneBlock()
392 void llvm::CloneAndPruneIntoFromInst(Function *NewFunc, const Function *OldFunc, in CloneAndPruneIntoFromInst() argument
408 for (const Argument &II : OldFunc->args()) in CloneAndPruneIntoFromInst()
412 PruningFunctionCloner PFC(NewFunc, OldFunc, VMap, ModuleLevelChanges, in CloneAndPruneIntoFromInst()
418 StartingBB = &OldFunc->getEntryBlock(); in CloneAndPruneIntoFromInst()
437 for (const BasicBlock &BI : *OldFunc) { in CloneAndPruneIntoFromInst()
629 void llvm::CloneAndPruneFunctionInto(Function *NewFunc, const Function *OldFunc, in CloneAndPruneFunctionInto() argument
636 CloneAndPruneIntoFromInst(NewFunc, OldFunc, &OldFunc->front().front(), VMap, in CloneAndPruneFunctionInto()