Searched defs:NewF (Results 1 - 9 of 9) sorted by relevance

/external/llvm/lib/Target/R600/
H A DSITypeRewriter.cpp137 Function *NewF = Mod->getFunction(Name); local
138 if (!NewF) {
139 NewF = Function::Create(FunctionType::get(F->getReturnType(), Types, false), GlobalValue::ExternalLinkage, Name, Mod);
140 NewF->setAttributes(F->getAttributes());
142 I.replaceAllUsesWith(Builder.CreateCall(NewF, Args));
H A DAMDGPUPromoteAlloca.cpp350 Function *NewF = cast<Function>(C); local
351 Call->setCalledFunction(NewF);
/external/llvm/lib/Transforms/Utils/
H A DCloneFunction.cpp231 Function *NewF = Function::Create(FTy, F->getLinkage(), F->getName()); local
234 Function::arg_iterator DestI = NewF->arg_begin();
243 CloneDebugInfoMetadata(NewF, F, VMap);
246 CloneFunctionInto(NewF, F, VMap, ModuleLevelChanges, Returns, "", CodeInfo);
247 return NewF;
/external/llvm/lib/IR/
H A DMetadata.cpp170 const Function *F = nullptr, *NewF = nullptr; local
174 NewF = assertLocalFunction(MD);
176 NewF = getFunctionForValue(V);
179 F = NewF;
181 assert((NewF == nullptr || F == NewF) &&
H A DConstants.cpp1438 Function *NewF = getFunction(); local
1442 NewF = cast<Function>(To->stripPointerCasts());
1449 getContext().pImpl->BlockAddresses[std::make_pair(NewF, NewBB)];
1458 setOperand(0, NewF);
/external/llvm/tools/bugpoint/
H A DMiscompilation.cpp410 Function *NewF = ToNotOptimize->getFunction(MisCompFunctions[i].first); local
412 assert(NewF && "Function not found??");
413 MiscompiledFunctions.push_back(NewF);
448 Function *NewF = ToNotOptimize->getFunction(MisCompFunctions[i].first); local
450 assert(NewF && "Function not found??");
451 MiscompiledFunctions.push_back(NewF);
630 Function *NewF = ProgClone->getFunction(MisCompFunctions[i].first); local
631 assert(NewF && "Function not found??");
632 MiscompiledFunctions.push_back(NewF);
/external/llvm/lib/Transforms/Instrumentation/
H A DDataFlowSanitizer.cpp489 Function *NewF = Function::Create(NewFT, NewFLink, NewFName, local
491 NewF->copyAttributesFrom(F);
492 NewF->removeAttributes(
497 BasicBlock *BB = BasicBlock::Create(*Ctx, "entry", NewF);
500 for (Function::arg_iterator ai = NewF->arg_begin(); n != 0; ++ai, --n)
508 return NewF;
613 Function *NewF = local
615 GA->replaceAllUsesWith(ConstantExpr::getBitCast(NewF, GA->getType()));
616 NewF->takeName(GA);
618 FnsToInstrument.push_back(NewF);
643 Function *NewF = Function::Create(NewFT, F.getLinkage(), "", &M); local
688 Function *NewF = buildWrapperFunction( local
[all...]
/external/clang/lib/CodeGen/
H A DCodeGenModule.cpp203 auto *NewF = dyn_cast<llvm::Function>(Replacement); local
204 if (!NewF) {
206 NewF = dyn_cast<llvm::Function>(Alias->getAliasee());
211 NewF = dyn_cast<llvm::Function>(CE->getOperand(0));
217 if (NewF) {
218 NewF->removeFromParent();
219 OldF->getParent()->getFunctionList().insertAfter(OldF, NewF);
/external/llvm/lib/Transforms/Scalar/
H A DLoopStrengthReduce.cpp3816 Formula NewF = F; local
3817 NewF.BaseOffset = Offset;
3819 NewF))
3821 NewF.ScaledReg = SE.getAddExpr(NegImmS, NewF.ScaledReg);
3826 if (const SCEVConstant *C = dyn_cast<SCEVConstant>(NewF.ScaledReg))
3828 (NewF.BaseOffset < 0) &&
3830 .ule(abs64(NewF.BaseOffset)))
3834 NewF.Canonicalize();
3835 (void)InsertFormula(LU, LUIdx, NewF);
3842 Formula NewF = F; local
4063 Formula NewF = F; local
4078 Formula NewF = F; local
[all...]

Completed in 4278 milliseconds