Lines Matching defs:NF
259 Function *NF = Function::Create(NFTy, Fn.getLinkage());
260 NF->copyAttributesFrom(&Fn);
261 Fn.getParent()->getFunctionList().insert(&Fn, NF);
262 NF->takeName(&Fn);
291 New = InvokeInst::Create(NF, II->getNormalDest(), II->getUnwindDest(),
296 New = CallInst::Create(NF, Args, "", Call);
319 NF->getBasicBlockList().splice(NF->begin(), Fn.getBasicBlockList());
326 I2 = NF->arg_begin(); I != E; ++I, ++I2) {
335 DI->second.replaceFunction(NF);
338 Fn.replaceAllUsesWith(ConstantExpr::getBitCast(NF, Fn.getType()));
339 // Delete the bitcast that we just created, so that NF does not
341 NF->removeDeadConstantUsers();
868 Function *NF = Function::Create(NFTy, F->getLinkage());
869 NF->copyAttributesFrom(F);
870 NF->setAttributes(NewPAL);
873 F->getParent()->getFunctionList().insert(F, NF);
874 NF->takeName(F);
892 AttributeSet::get(NF->getContext(), AttributeSet::ReturnIndex,
895 typeIncompatible(NF->getReturnType(),
899 AttributesVec.push_back(AttributeSet::get(NF->getContext(), RAttrs));
944 New = InvokeInst::Create(NF, II->getNormalDest(), II->getUnwindDest(),
949 New = CallInst::Create(NF, Args, "", Call);
1015 NF->getBasicBlockList().splice(NF->begin(), F->getBasicBlockList());
1021 I2 = NF->arg_begin(); I != E; ++I, ++i)
1037 if (F->getReturnType() != NF->getReturnType())
1038 for (Function::iterator BB = NF->begin(), E = NF->end(); BB != E; ++BB)
1080 DI->second.replaceFunction(NF);