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()
131 BasicBlock *CBB = CloneBasicBlock(&BB, VMap, NameSuffix, NewFunc, CodeInfo); in CloneFunctionInto()
145 VMap[OldBBAddr] = BlockAddress::get(NewFunc, CBB); in CloneFunctionInto()
157 BE = NewFunc->end(); in CloneFunctionInto()
190 static void CloneDebugInfoMetadata(Function *NewFunc, const Function *OldFunc, in CloneDebugInfoMetadata() argument
200 NewFunc->setSubprogram(NewSubprogram); in CloneDebugInfoMetadata()
263 Function *NewFunc; member
278 : NewFunc(newFunc), OldFunc(oldFunc), VMap(valueMap), in PruningFunctionCloner()
326 VMap[OldBBAddr] = BlockAddress::get(NewFunc, NewBB); in CloneBlock()
483 void llvm::CloneAndPruneIntoFromInst(Function *NewFunc, const Function *OldFunc, in CloneAndPruneIntoFromInst() argument
509 PruningFunctionCloner PFC(NewFunc, OldFunc, VMap, ModuleLevelChanges, in CloneAndPruneIntoFromInst()
540 NewFunc->getBasicBlockList().push_back(NewBB); in CloneAndPruneIntoFromInst()
662 while (I != NewFunc->end()) { in CloneAndPruneIntoFromInst()
712 E = NewFunc->end(); in CloneAndPruneIntoFromInst()
726 void llvm::CloneAndPruneFunctionInto(Function *NewFunc, const Function *OldFunc, in CloneAndPruneFunctionInto() argument
733 CloneAndPruneIntoFromInst(NewFunc, OldFunc, &OldFunc->front().front(), VMap, in CloneAndPruneFunctionInto()