Home
last modified time | relevance | path

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

/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/
DAMDGPUPropagateAttributes.cpp60 Clone(FeatureBitset FeatureMask, Function *OrigF, Function *NewF) : in Clone() argument
61 FeatureMask(FeatureMask), OrigF(OrigF), NewF(NewF) {} in Clone()
65 Function *NewF; member in __anone08fdc650111::AMDGPUPropagateAttributes::Clone
163 return C.NewF; in findFunction()
223 Function *NewF = findFunction(CallerBits, &F); in process() local
224 if (!NewF) { in process()
238 NewF = cloneWithFeatures(F, NewFeatures); in process()
239 Clones.push_back(Clone(CallerBits, &F, NewF)); in process()
240 NewRoots.insert(NewF); in process()
243 ToReplace.push_back(std::make_pair(CI, NewF)); in process()
[all …]
DR600OpenCLImageTypeLoweringPass.cpp306 auto NewF = Function::Create(NewFT, F->getLinkage(), F->getName()); in addImplicitArgs() local
308 auto NewFArgIt = NewF->arg_begin(); in addImplicitArgs()
319 CloneFunctionInto(NewF, F, VMap, /*ModuleLevelChanges=*/false, Returns); in addImplicitArgs()
323 KernelMDArgs.push_back(ConstantAsMetadata::get(NewF)); in addImplicitArgs()
328 return std::make_tuple(NewF, NewMDNode); in addImplicitArgs()
343 Function *NewF; in transformKernels() local
345 std::tie(NewF, NewMDNode) = addImplicitArgs(F, KernelMDNode); in transformKernels()
346 if (NewF) { in transformKernels()
349 M.getFunctionList().push_back(NewF); in transformKernels()
350 M.getOrInsertFunction(NewF->getName(), NewF->getFunctionType(), in transformKernels()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/WebAssembly/
DWebAssemblyAddMissingPrototypes.cpp125 Function *NewF = in runOnModule() local
127 NewF->setAttributes(F.getAttributes()); in runOnModule()
128 NewF->removeFnAttr("no-prototype"); in runOnModule()
129 Replacements.emplace_back(&F, NewF); in runOnModule()
134 Function *NewF = Pair.second; in runOnModule() local
136 M.getFunctionList().push_back(NewF); in runOnModule()
138 ConstantExpr::getPointerBitCastOrAddrSpaceCast(NewF, OldF->getType())); in runOnModule()
140 NewF->setName(Name); in runOnModule()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Coroutines/
DCoroSplit.cpp95 Function *NewF; member in __anon67a376110111::CoroCloner
111 : OrigF(OrigF), NewF(nullptr), Suffix(Suffix), Shape(Shape), in CoroCloner()
118 Function *NewF, AnyCoroSuspendInst *ActiveSuspend) in CoroCloner() argument
119 : OrigF(OrigF), NewF(NewF), Suffix(Suffix), Shape(Shape), in CoroCloner()
124 assert(NewF && "need existing function for continuation"); in CoroCloner()
129 assert(NewF != nullptr && "declaration not yet set"); in getFunction()
130 return NewF; in getFunction()
401 Function *NewF = in createCloneDeclaration() local
404 NewF->addParamAttr(0, Attribute::NonNull); in createCloneDeclaration()
405 NewF->addParamAttr(0, Attribute::NoAlias); in createCloneDeclaration()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/ExecutionEngine/Orc/
DIndirectionUtils.cpp291 Function *NewF = in cloneFunctionDecl() local
294 NewF->copyAttributesFrom(&F); in cloneFunctionDecl()
297 (*VMap)[&F] = NewF; in cloneFunctionDecl()
298 auto NewArgI = NewF->arg_begin(); in cloneFunctionDecl()
304 return NewF; in cloneFunctionDecl()
309 Function *NewF) { in moveFunctionBody() argument
311 if (!NewF) in moveFunctionBody()
312 NewF = cast<Function>(VMap[&OrigF]); in moveFunctionBody()
314 assert(VMap[&OrigF] == NewF && "Incorrect function mapping in VMap."); in moveFunctionBody()
315 assert(NewF && "Function mapping missing from VMap."); in moveFunctionBody()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Instrumentation/
DDataFlowSanitizer.cpp654 Function *NewF = Function::Create(NewFT, NewFLink, F->getAddressSpace(), in buildWrapperFunction() local
656 NewF->copyAttributesFrom(F); in buildWrapperFunction()
657 NewF->removeAttributes( in buildWrapperFunction()
661 BasicBlock *BB = BasicBlock::Create(*Ctx, "entry", NewF); in buildWrapperFunction()
663 NewF->removeAttributes(AttributeList::FunctionIndex, in buildWrapperFunction()
672 for (Function::arg_iterator ai = NewF->arg_begin(); n != 0; ++ai, --n) in buildWrapperFunction()
681 return NewF; in buildWrapperFunction()
815 Function *NewF = in runOnModule() local
817 GA->replaceAllUsesWith(ConstantExpr::getBitCast(NewF, GA->getType())); in runOnModule()
818 NewF->takeName(GA); in runOnModule()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/IPO/
DMergeFunctions.cpp814 Function *NewF = Function::Create(F->getFunctionType(), F->getLinkage(), in mergeTwoFunctions() local
816 NewF->copyAttributesFrom(F); in mergeTwoFunctions()
817 NewF->takeName(F); in mergeTwoFunctions()
819 F->replaceAllUsesWith(NewF); in mergeTwoFunctions()
821 MaybeAlign MaxAlignment(std::max(G->getAlignment(), NewF->getAlignment())); in mergeTwoFunctions()
824 writeThunkOrAlias(F, NewF); in mergeTwoFunctions()
DThinLTOBitcodeWriter.cpp157 Function *NewF = in simplifyExternals() local
160 NewF->setVisibility(F.getVisibility()); in simplifyExternals()
161 NewF->takeName(&F); in simplifyExternals()
162 F.replaceAllUsesWith(ConstantExpr::getBitCast(NewF, F.getType())); in simplifyExternals()
DArgumentPromotion.cpp1044 Function *NewF = in run() local
1046 if (!NewF) in run()
1055 C.getOuterRefSCC().replaceNodeFunction(N, *NewF); in run()
1150 if (Function *NewF = promoteArguments(OldF, AARGetter, MaxElements, in runOnSCC() local
1155 CallGraphNode *NewNode = CG.getOrInsertFunction(NewF); in runOnSCC()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/
DLoopStrengthReduce.cpp4210 Formula NewF = F; in GenerateCrossUseConstantOffsets() local
4211 NewF.BaseOffset = Offset; in GenerateCrossUseConstantOffsets()
4213 NewF)) in GenerateCrossUseConstantOffsets()
4215 NewF.ScaledReg = SE.getAddExpr(NegImmS, NewF.ScaledReg); in GenerateCrossUseConstantOffsets()
4220 if (const SCEVConstant *C = dyn_cast<SCEVConstant>(NewF.ScaledReg)) in GenerateCrossUseConstantOffsets()
4221 if (C->getValue()->isNegative() != (NewF.BaseOffset < 0) && in GenerateCrossUseConstantOffsets()
4223 .ule(std::abs(NewF.BaseOffset))) in GenerateCrossUseConstantOffsets()
4227 NewF.canonicalize(*this->L); in GenerateCrossUseConstantOffsets()
4228 (void)InsertFormula(LU, LUIdx, NewF); in GenerateCrossUseConstantOffsets()
4235 Formula NewF = F; in GenerateCrossUseConstantOffsets() local
[all …]
DFloat2Int.cpp328 APFloat NewF = F; in walkForwards() local
329 auto Res = NewF.roundToIntegral(APFloat::rmNearestTiesToEven); in walkForwards()
330 if (Res != APFloat::opOK || NewF.compare(F) != APFloat::cmpEqual) { in walkForwards()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Bitcode/Writer/
DValueEnumerator.h81 bool hasDifferentFunction(unsigned NewF) const { return F && F != NewF; } in hasDifferentFunction()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/
DLazyCallGraph.cpp135 void LazyCallGraph::Node::replaceFunction(Function &NewF) { in replaceFunction() argument
136 assert(F != &NewF && "Must not replace a function with itself!"); in replaceFunction()
137 F = &NewF; in replaceFunction()
1445 void LazyCallGraph::RefSCC::replaceNodeFunction(Node &N, Function &NewF) { in replaceNodeFunction() argument
1455 assert(G->NodeMap.find(&NewF) == G->NodeMap.end() && in replaceNodeFunction()
1464 assert(&OldF != &NewF && "Cannot replace a function with itself!"); in replaceNodeFunction()
1469 N.replaceFunction(NewF); in replaceNodeFunction()
1473 G->NodeMap[&NewF] = &N; in replaceNodeFunction()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/
DCloneFunction.cpp253 Function *NewF = Function::Create(FTy, F->getLinkage(), F->getAddressSpace(), in CloneFunction() local
257 Function::arg_iterator DestI = NewF->arg_begin(); in CloneFunction()
265 CloneFunctionInto(NewF, F, VMap, F->getSubprogram() != nullptr, Returns, "", in CloneFunction()
268 return NewF; in CloneFunction()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Linker/
DIRMover.cpp723 if (auto *NewF = dyn_cast<Function>(NewGV)) { in copyGlobalValueProto() local
724 NewF->setPersonalityFn(nullptr); in copyGlobalValueProto()
725 NewF->setPrefixData(nullptr); in copyGlobalValueProto()
726 NewF->setPrologueData(nullptr); in copyGlobalValueProto()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Analysis/
DLazyCallGraph.h407 void replaceFunction(Function &NewF);
875 void replaceNodeFunction(Node &N, Function &NewF);
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ExecutionEngine/Orc/
DIndirectionUtils.h462 Function *NewF = nullptr);
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/IR/
DConstants.cpp1573 Function *NewF = getFunction(); in handleOperandChangeImpl() local
1576 if (From == NewF) in handleOperandChangeImpl()
1577 NewF = cast<Function>(To->stripPointerCasts()); in handleOperandChangeImpl()
1586 getContext().pImpl->BlockAddresses[std::make_pair(NewF, NewBB)]; in handleOperandChangeImpl()
1597 setOperand(0, NewF); in handleOperandChangeImpl()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/
DInstCombineCalls.cpp3823 Function *NewF = Intrinsic::getDeclaration( in visitCallInst() local
3828 CallInst *NewCall = Builder.CreateCall(NewF, Args); in visitCallInst()
3918 Function *NewF = in visitCallInst() local
3924 CallInst *NewCall = Builder.CreateCall(NewF, Args); in visitCallInst()