Home | History | Annotate | Download | only in Utils

Lines Matching refs:NewFunc

73 // Clone OldFunc into NewFunc, transforming the old arguments into references to
76 void llvm::CloneFunctionInto(Function *NewFunc, const Function *OldFunc,
91 if (NewFunc->arg_size() == OldFunc->arg_size())
92 NewFunc->copyAttributesFrom(OldFunc);
100 NewFunc->setAttributes(NewFunc->getAttributes()
103 NewFunc->setAttributes(NewFunc->getAttributes()
118 BasicBlock *CBB = CloneBasicBlock(&BB, VMap, NameSuffix, NewFunc, CodeInfo);
132 VMap[OldBBAddr] = BlockAddress::get(NewFunc, CBB);
143 BE = NewFunc->end(); BB != BE; ++BB)
199 Function *NewFunc;
207 PruningFunctionCloner(Function *newFunc, const Function *oldFunc,
213 : NewFunc(newFunc), OldFunc(oldFunc),
251 VMap[OldBBAddr] = BlockAddress::get(NewFunc, NewBB);
362 void llvm::CloneAndPruneFunctionInto(Function *NewFunc, const Function *OldFunc,
378 PruningFunctionCloner PFC(NewFunc, OldFunc, VMap, ModuleLevelChanges,
403 NewFunc->getBasicBlockList().push_back(NewBB);
517 while (I != NewFunc->end()) {
567 E = NewFunc->end();