Home
last modified time | relevance | path

Searched refs:NewF (Results 1 – 10 of 10) sorted by relevance

/external/llvm/lib/Target/R600/
DSITypeRewriter.cpp136 Function *NewF = Mod->getFunction(Name); in visitCallInst() local
137 if (!NewF) { in visitCallInst()
138NewF = Function::Create(FunctionType::get(F->getReturnType(), Types, false), GlobalValue::External… in visitCallInst()
139 NewF->setAttributes(F->getAttributes()); in visitCallInst()
141 I.replaceAllUsesWith(Builder.CreateCall(NewF, Args)); in visitCallInst()
DAMDGPUPromoteAlloca.cpp371 Function *NewF = cast<Function>(C); in visitAlloca() local
372 Call->setCalledFunction(NewF); in visitAlloca()
/external/llvm/lib/Transforms/Instrumentation/
DDataFlowSanitizer.cpp525 Function *NewF = Function::Create(NewFT, NewFLink, NewFName, in buildWrapperFunction() local
527 NewF->copyAttributesFrom(F); in buildWrapperFunction()
528 NewF->removeAttributes( in buildWrapperFunction()
533 BasicBlock *BB = BasicBlock::Create(*Ctx, "entry", NewF); in buildWrapperFunction()
535 NewF->removeAttributes( in buildWrapperFunction()
546 for (Function::arg_iterator ai = NewF->arg_begin(); n != 0; ++ai, --n) in buildWrapperFunction()
555 return NewF; in buildWrapperFunction()
673 Function *NewF = in runOnModule() local
675 GA->replaceAllUsesWith(ConstantExpr::getBitCast(NewF, GA->getType())); in runOnModule()
676 NewF->takeName(GA); in runOnModule()
[all …]
/external/llvm/tools/bugpoint/
DMiscompilation.cpp400 Function *NewF = ToNotOptimize->getFunction(MisCompFunctions[i].first); in ExtractLoops() local
402 assert(NewF && "Function not found??"); in ExtractLoops()
403 MiscompiledFunctions.push_back(NewF); in ExtractLoops()
434 Function *NewF = ToNotOptimize->getFunction(MisCompFunctions[i].first); in ExtractLoops() local
436 assert(NewF && "Function not found??"); in ExtractLoops()
437 MiscompiledFunctions.push_back(NewF); in ExtractLoops()
612 Function *NewF = ProgClone->getFunction(MisCompFunctions[i].first); in ExtractBlocks() local
613 assert(NewF && "Function not found??"); in ExtractBlocks()
614 MiscompiledFunctions.push_back(NewF); in ExtractBlocks()
/external/llvm/lib/Transforms/Scalar/
DLoopStrengthReduce.cpp3813 Formula NewF = F; in GenerateCrossUseConstantOffsets() local
3814 NewF.BaseOffset = Offset; in GenerateCrossUseConstantOffsets()
3816 NewF)) in GenerateCrossUseConstantOffsets()
3818 NewF.ScaledReg = SE.getAddExpr(NegImmS, NewF.ScaledReg); in GenerateCrossUseConstantOffsets()
3823 if (const SCEVConstant *C = dyn_cast<SCEVConstant>(NewF.ScaledReg)) in GenerateCrossUseConstantOffsets()
3825 (NewF.BaseOffset < 0) && in GenerateCrossUseConstantOffsets()
3827 .ule(std::abs(NewF.BaseOffset))) in GenerateCrossUseConstantOffsets()
3831 NewF.Canonicalize(); in GenerateCrossUseConstantOffsets()
3832 (void)InsertFormula(LU, LUIdx, NewF); in GenerateCrossUseConstantOffsets()
3839 Formula NewF = F; in GenerateCrossUseConstantOffsets() local
[all …]
DFloat2Int.cpp327 APFloat NewF = F; in walkForwards() local
328 auto Res = NewF.roundToIntegral(APFloat::rmNearestTiesToEven); in walkForwards()
329 if (Res != APFloat::opOK || NewF.compare(F) != APFloat::cmpEqual) { in walkForwards()
/external/llvm/lib/Transforms/Utils/
DCloneFunction.cpp232 Function *NewF = Function::Create(FTy, F->getLinkage(), F->getName()); in CloneFunction() local
235 Function::arg_iterator DestI = NewF->arg_begin(); in CloneFunction()
244 CloneDebugInfoMetadata(NewF, F, VMap); in CloneFunction()
247 CloneFunctionInto(NewF, F, VMap, ModuleLevelChanges, Returns, "", CodeInfo); in CloneFunction()
248 return NewF; in CloneFunction()
/external/clang/lib/CodeGen/
DCodeGenModule.cpp217 auto *NewF = dyn_cast<llvm::Function>(Replacement); in applyReplacements() local
218 if (!NewF) { in applyReplacements()
220 NewF = dyn_cast<llvm::Function>(Alias->getAliasee()); in applyReplacements()
225 NewF = dyn_cast<llvm::Function>(CE->getOperand(0)); in applyReplacements()
231 if (NewF) { in applyReplacements()
232 NewF->removeFromParent(); in applyReplacements()
233 OldF->getParent()->getFunctionList().insertAfter(OldF, NewF); in applyReplacements()
/external/llvm/lib/Linker/
DLinkModules.cpp1083 if (auto *NewF = dyn_cast<Function>(NewGV)) in linkGlobalValueProto() local
1084 OverridingFunctions.insert(NewF); in linkGlobalValueProto()
/external/llvm/lib/IR/
DConstants.cpp1514 Function *NewF = getFunction(); in replaceUsesOfWithOnConstant() local
1518 NewF = cast<Function>(To->stripPointerCasts()); in replaceUsesOfWithOnConstant()
1525 getContext().pImpl->BlockAddresses[std::make_pair(NewF, NewBB)]; in replaceUsesOfWithOnConstant()
1538 setOperand(0, NewF); in replaceUsesOfWithOnConstant()