Lines Matching refs:NewFunc
78 void llvm::CloneFunctionInto(Function *NewFunc, const Function *OldFunc, in CloneFunctionInto() argument
94 AttributeSet NewAttrs = NewFunc->getAttributes(); in CloneFunctionInto()
95 NewFunc->copyAttributesFrom(OldFunc); in CloneFunctionInto()
96 NewFunc->setAttributes(NewAttrs); in CloneFunctionInto()
100 NewFunc->setPersonalityFn( in CloneFunctionInto()
115 NewFunc->setAttributes( in CloneFunctionInto()
116 NewFunc->getAttributes() in CloneFunctionInto()
117 .addAttributes(NewFunc->getContext(), AttributeSet::ReturnIndex, in CloneFunctionInto()
119 .addAttributes(NewFunc->getContext(), AttributeSet::FunctionIndex, in CloneFunctionInto()
125 NewFunc->addMetadata( in CloneFunctionInto()
140 BasicBlock *CBB = CloneBasicBlock(&BB, VMap, NameSuffix, NewFunc, CodeInfo); in CloneFunctionInto()
154 VMap[OldBBAddr] = BlockAddress::get(NewFunc, CBB); in CloneFunctionInto()
166 BE = NewFunc->end(); in CloneFunctionInto()
221 Function *NewFunc; member
232 : NewFunc(newFunc), OldFunc(oldFunc), VMap(valueMap), in PruningFunctionCloner()
271 VMap[OldBBAddr] = BlockAddress::get(NewFunc, NewBB); in CloneBlock()
392 void llvm::CloneAndPruneIntoFromInst(Function *NewFunc, const Function *OldFunc, in CloneAndPruneIntoFromInst() argument
412 PruningFunctionCloner PFC(NewFunc, OldFunc, VMap, ModuleLevelChanges, in CloneAndPruneIntoFromInst()
443 NewFunc->getBasicBlockList().push_back(NewBB); in CloneAndPruneIntoFromInst()
565 while (I != NewFunc->end()) { in CloneAndPruneIntoFromInst()
615 E = NewFunc->end(); in CloneAndPruneIntoFromInst()
629 void llvm::CloneAndPruneFunctionInto(Function *NewFunc, const Function *OldFunc, in CloneAndPruneFunctionInto() argument
636 CloneAndPruneIntoFromInst(NewFunc, OldFunc, &OldFunc->front().front(), VMap, in CloneAndPruneFunctionInto()