• Home
  • Raw
  • Download

Lines Matching refs:NewFunc

81 void llvm::CloneFunctionInto(Function *NewFunc, const Function *OldFunc,  in CloneFunctionInto()  argument
97 AttributeList NewAttrs = NewFunc->getAttributes(); in CloneFunctionInto()
98 NewFunc->copyAttributesFrom(OldFunc); in CloneFunctionInto()
99 NewFunc->setAttributes(NewAttrs); in CloneFunctionInto()
103 NewFunc->setPersonalityFn( in CloneFunctionInto()
108 SmallVector<AttributeSet, 4> NewArgAttrs(NewFunc->arg_size()); in CloneFunctionInto()
119 NewFunc->setAttributes( in CloneFunctionInto()
120 AttributeList::get(NewFunc->getContext(), OldAttrs.getFnAttributes(), in CloneFunctionInto()
124 OldFunc->getParent() && OldFunc->getParent() == NewFunc->getParent(); in CloneFunctionInto()
160 BasicBlock *CBB = CloneBasicBlock(&BB, VMap, NameSuffix, NewFunc, CodeInfo, in CloneFunctionInto()
175 VMap[OldBBAddr] = BlockAddress::get(NewFunc, CBB); in CloneFunctionInto()
199 NewFunc->addMetadata( in CloneFunctionInto()
210 BE = NewFunc->end(); in CloneFunctionInto()
220 auto* NewModule = NewFunc->getParent(); in CloneFunctionInto()
280 Function *NewFunc; member
291 : NewFunc(newFunc), OldFunc(oldFunc), VMap(valueMap), in PruningFunctionCloner()
330 VMap[OldBBAddr] = BlockAddress::get(NewFunc, NewBB); in CloneBlock()
355 if (NewFunc != OldFunc) in CloneBlock()
452 void llvm::CloneAndPruneIntoFromInst(Function *NewFunc, const Function *OldFunc, in CloneAndPruneIntoFromInst() argument
472 PruningFunctionCloner PFC(NewFunc, OldFunc, VMap, ModuleLevelChanges, in CloneAndPruneIntoFromInst()
503 NewFunc->getBasicBlockList().push_back(NewBB); in CloneAndPruneIntoFromInst()
611 const DataLayout &DL = NewFunc->getParent()->getDataLayout(); in CloneAndPruneIntoFromInst()
658 while (I != NewFunc->end()) { in CloneAndPruneIntoFromInst()
716 E = NewFunc->end(); in CloneAndPruneIntoFromInst()
730 void llvm::CloneAndPruneFunctionInto(Function *NewFunc, const Function *OldFunc, in CloneAndPruneFunctionInto() argument
737 CloneAndPruneIntoFromInst(NewFunc, OldFunc, &OldFunc->front().front(), VMap, in CloneAndPruneFunctionInto()