/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/ |
H A D | WebAssemblyAddMissingPrototypes.cpp | 135 Function *NewF = in runOnModule() local 137 NewF->setAttributes(F.getAttributes()); in runOnModule() 138 NewF->removeFnAttr("no-prototype"); in runOnModule() 139 NewF->IsNewDbgInfoFormat = F.IsNewDbgInfoFormat; in runOnModule() 140 Replacements.emplace_back(&F, NewF); in runOnModule() 145 Function *NewF = Pair.second; in runOnModule() local 147 M.getFunctionList().push_back(NewF); in runOnModule() 149 ConstantExpr::getPointerBitCastOrAddrSpaceCast(NewF, OldF->getType())); in runOnModule() 151 NewF->setName(Name); in runOnModule()
|
H A D | WebAssemblyLowerEmscriptenEHSjLj.cpp | 355 void replaceLongjmpWith(Function *LongjmpF, Function *NewF); 810 Function *NewF) { in replaceLongjmpWith() argument 811 assert(NewF == EmLongjmpF || NewF == WasmLongjmpF); in replaceLongjmpWith() 824 if (NewF == EmLongjmpF) in replaceLongjmpWith() 829 IRB.CreateCall(NewF, {Env, CI->getArgOperand(1)}); in replaceLongjmpWith() 840 IRB.CreateBitCast(NewF, LongjmpF->getType(), "longjmp.cast"); in replaceLongjmpWith()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
H A D | R600OpenCLImageTypeLoweringPass.cpp | 291 auto NewF = Function::Create(NewFT, F->getLinkage(), F->getName()); in addImplicitArgs() local 293 auto NewFArgIt = NewF->arg_begin(); in addImplicitArgs() 304 CloneFunctionInto(NewF, F, VMap, CloneFunctionChangeType::LocalChangesOnly, in addImplicitArgs() 309 KernelMDArgs.push_back(ConstantAsMetadata::get(NewF)); in addImplicitArgs() 314 return std::tuple(NewF, NewMDNode); in addImplicitArgs() 329 Function *NewF; in transformKernels() local 331 std::tie(NewF, NewMDNode) = addImplicitArgs(F, KernelMDNode); in transformKernels() 332 if (NewF) { in transformKernels() 335 M.getFunctionList().push_back(NewF); in transformKernels() 336 M.getOrInsertFunction(NewF->getName(), NewF->getFunctionType(), in transformKernels() [all …]
|
H A D | AMDGPULowerBufferFatPointers.cpp | 1665 Function *NewF = in moveFunctionAdaptingType() local 1667 NewF->IsNewDbgInfoFormat = OldF->IsNewDbgInfoFormat; in moveFunctionAdaptingType() 1668 NewF->copyAttributesFrom(OldF); in moveFunctionAdaptingType() 1669 NewF->copyMetadata(OldF, 0); in moveFunctionAdaptingType() 1670 NewF->takeName(OldF); in moveFunctionAdaptingType() 1671 NewF->updateAfterNameChange(); in moveFunctionAdaptingType() 1672 NewF->setDLLStorageClass(OldF->getDLLStorageClass()); in moveFunctionAdaptingType() 1673 OldF->getParent()->getFunctionList().insertAfter(OldF->getIterator(), NewF); in moveFunctionAdaptingType() 1678 BB->insertInto(NewF); in moveFunctionAdaptingType() 1696 for (auto [I, OldArg, NewArg] : enumerate(OldF->args(), NewF->args())) { in moveFunctionAdaptingType() [all …]
|
H A D | AMDGPUInstCombineIntrinsic.cpp | 869 Function *NewF = Intrinsic::getDeclaration( in instCombineIntrinsic() local 874 CallInst *NewCall = IC.Builder.CreateCall(NewF, Args); in instCombineIntrinsic() 968 Function *NewF = Intrinsic::getDeclaration( in instCombineIntrinsic() local 972 CallInst *NewCall = IC.Builder.CreateCall(NewF, Args); in instCombineIntrinsic()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/ |
H A D | SPIRVRegularizer.cpp | 198 Function *NewF = nullptr; in visitCallScalToVec() local 204 NewF = Function::Create(NewFTy, OldF->getLinkage(), OldF->getName(), in visitCallScalToVec() 207 auto NewFArgIt = NewF->arg_begin(); in visitCallScalToVec() 214 CloneFunctionInto(NewF, OldF, VMap, in visitCallScalToVec() 216 NewF->setAttributes(Attrs); in visitCallScalToVec() 217 Old2NewFuncs[OldF] = NewF; in visitCallScalToVec() 219 NewF = Old2NewFuncs[OldF]; in visitCallScalToVec() 221 assert(NewF); in visitCallScalToVec() 243 CI->replaceUsesOfWith(OldF, NewF); in visitCallScalToVec() 244 CI->mutateFunctionType(NewF in visitCallScalToVec() 252 Function *NewF = OldNew.second; runOnFunction() local [all...] |
H A D | SPIRVPrepareFunctions.cpp | 87 Function *NewF = Function::Create(FT, GlobalValue::ExternalLinkage, Name, M); in getOrCreateFunction() local 89 NewF->setDSOLocal(F->isDSOLocal()); in getOrCreateFunction() 90 NewF->setCallingConv(CallingConv::SPIR_FUNC); in getOrCreateFunction() 91 return NewF; in getOrCreateFunction() 506 Function *NewF = in removeAggregateTypesFromSignature() local 510 auto NewFArgIt = NewF->arg_begin(); in removeAggregateTypesFromSignature() 518 CloneFunctionInto(NewF, F, VMap, CloneFunctionChangeType::LocalChangesOnly, in removeAggregateTypesFromSignature() 520 NewF->takeName(F); in removeAggregateTypesFromSignature() 525 MDArgs.push_back(MDString::get(B.getContext(), NewF->getName())); in removeAggregateTypesFromSignature() 536 CI->mutateFunctionType(NewF->getFunctionType()); in removeAggregateTypesFromSignature() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Coroutines/ |
H A D | CoroSplit.cpp | 104 Function *NewF; member in __anon98d7ec870111::CoroCloner 122 : OrigF(OrigF), NewF(nullptr), Suffix(Suffix), Shape(Shape), FKind(FKind), in CoroCloner() 129 Function *NewF, AnyCoroSuspendInst *ActiveSuspend, in CoroCloner() argument 131 : OrigF(OrigF), NewF(NewF), Suffix(Suffix), Shape(Shape), in CoroCloner() 136 assert(NewF && "need existing function for continuation"); in CoroCloner() 141 assert(NewF != nullptr && "declaration not yet set"); in getFunction() 142 return NewF; in getFunction() 514 if (NewF->isCoroOnlyDestroyWhenComplete()) { in handleFinalSuspend() 549 Function *NewF = in createCloneDeclaration() local 553 M->getFunctionList().insert(InsertBefore, NewF); in createCloneDeclaration() [all …]
|
/freebsd/contrib/llvm-project/clang/lib/Basic/Targets/ |
H A D | AMDGPU.cpp | 315 std::string NewF = F.str(); in getTargetDefines() local 316 std::replace(NewF.begin(), NewF.end(), '-', '_'); in getTargetDefines() 317 Builder.defineMacro(Twine("__amdgcn_feature_") + Twine(NewF) + in getTargetDefines()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/ |
H A D | MergeFunctions.cpp | 878 Function *NewF = Function::Create(F->getFunctionType(), F->getLinkage(), in mergeTwoFunctions() local 880 NewF->copyAttributesFrom(F); in mergeTwoFunctions() 881 NewF->takeName(F); in mergeTwoFunctions() 882 NewF->IsNewDbgInfoFormat = F->IsNewDbgInfoFormat; in mergeTwoFunctions() 884 copyMetadataIfPresent(F, NewF, "type"); in mergeTwoFunctions() 885 copyMetadataIfPresent(F, NewF, "kcfi_type"); in mergeTwoFunctions() 887 F->replaceAllUsesWith(NewF); in mergeTwoFunctions() 891 const MaybeAlign NewFAlign = NewF->getAlign(); in mergeTwoFunctions() 895 writeThunkOrAlias(F, NewF); in mergeTwoFunctions()
|
H A D | ThinLTOBitcodeWriter.cpp | 192 Function *NewF = in simplifyExternals() local 195 NewF->copyAttributesFrom(&F); in simplifyExternals() 197 NewF->setAttributes(AttributeList::get(M.getContext(), in simplifyExternals() 200 NewF->takeName(&F); in simplifyExternals() 201 F.replaceAllUsesWith(NewF); in simplifyExternals()
|
H A D | ArgumentPromotion.cpp | 876 Function *NewF = promoteArguments(&OldF, FAM, MaxElements, IsRecursive); in run() local 877 if (!NewF) in run() 886 C.getOuterRefSCC().replaceNodeFunction(N, *NewF); in run() 892 for (auto *U : NewF->users()) { in run()
|
H A D | MemProfContextDisambiguation.cpp | 3410 auto *NewF = CloneFunction(&F, *VMaps.back()); in createFunctionClones() local 3414 for (auto &BB : *NewF) { in createFunctionClones() 3426 NewF->takeName(PrevF); in createFunctionClones() 3427 PrevF->replaceAllUsesWith(NewF); in createFunctionClones() 3430 NewF->setName(Name); in createFunctionClones() 3432 << "created clone " << ore::NV("NewFunction", NewF)); in createFunctionClones() 3442 A->getLinkage(), Name, NewF); in createFunctionClones() 3560 auto NewF = M.getOrInsertFunction( in applyImport() local 3569 CBClone->setCalledFunction(NewF); in applyImport() 3574 << ore::NV("Callee", NewF.getCallee())); in applyImport()
|
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/ |
H A D | IndirectionUtils.cpp | 312 Function *NewF = in cloneFunctionDecl() local 315 NewF->copyAttributesFrom(&F); in cloneFunctionDecl() 318 (*VMap)[&F] = NewF; in cloneFunctionDecl() 319 auto NewArgI = NewF->arg_begin(); in cloneFunctionDecl() 325 return NewF; in cloneFunctionDecl()
|
/freebsd/contrib/llvm-project/llvm/tools/bugpoint/ |
H A D | Miscompilation.cpp | 402 Function *NewF = ToNotOptimize->getFunction(MisCompFunctions[i].first); in ExtractLoops() local 404 assert(NewF && "Function not found??"); in ExtractLoops() 405 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() 601 Function *NewF = ProgClone->getFunction(MisCompFunctions[i].first); in ExtractBlocks() local 602 assert(NewF && "Function not found??"); in ExtractBlocks() 603 MiscompiledFunctions.push_back(NewF); in ExtractBlocks()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
H A D | LoopStrengthReduce.cpp | 4631 Formula NewF = F; in GenerateCrossUseConstantOffsets() local 4632 NewF.BaseOffset = Offset; in GenerateCrossUseConstantOffsets() 4634 NewF)) in GenerateCrossUseConstantOffsets() 4636 NewF.ScaledReg = SE.getAddExpr(NegImmS, NewF.ScaledReg); in GenerateCrossUseConstantOffsets() 4641 if (const SCEVConstant *C = dyn_cast<SCEVConstant>(NewF.ScaledReg)) { in GenerateCrossUseConstantOffsets() 4645 if (NewF.BaseOffset.isNonZero() && NewF.BaseOffset.isScalable()) in GenerateCrossUseConstantOffsets() 4648 (NewF.BaseOffset.isLessThanZero()) && in GenerateCrossUseConstantOffsets() 4650 .ule(std::abs(NewF.BaseOffset.getFixedValue()))) in GenerateCrossUseConstantOffsets() 4655 NewF.canonicalize(*this->L); in GenerateCrossUseConstantOffsets() 4656 (void)InsertFormula(LU, LUIdx, NewF); in GenerateCrossUseConstantOffsets() [all …]
|
H A D | Float2Int.cpp | 236 APFloat NewF = F; in calcRange() local 237 auto Res = NewF.roundToIntegral(APFloat::rmNearestTiesToEven); in calcRange() 238 if (Res != APFloat::opOK || NewF != F) in calcRange()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/DirectX/DXILWriter/ |
H A D | DXILValueEnumerator.h | 83 bool hasDifferentFunction(unsigned NewF) const { return F && F != NewF; } in hasDifferentFunction()
|
/freebsd/contrib/llvm-project/llvm/lib/Bitcode/Writer/ |
H A D | ValueEnumerator.h | 80 bool hasDifferentFunction(unsigned NewF) const { return F && F != NewF; } in hasDifferentFunction()
|
/freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
H A D | LazyCallGraph.cpp | 133 void LazyCallGraph::Node::replaceFunction(Function &NewF) { in replaceFunction() argument 134 assert(F != &NewF && "Must not replace a function with itself!"); in replaceFunction() 135 F = &NewF; in replaceFunction() 1446 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() 1478 G->LibFunctions.insert(&NewF); in replaceNodeFunction()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/ |
H A D | DataFlowSanitizer.cpp | 1306 Function *NewF = Function::Create(NewFT, NewFLink, F->getAddressSpace(), in buildWrapperFunction() local 1308 NewF->copyAttributesFrom(F); in buildWrapperFunction() 1309 NewF->removeRetAttrs( in buildWrapperFunction() 1312 BasicBlock *BB = BasicBlock::Create(*Ctx, "entry", NewF); in buildWrapperFunction() 1314 NewF->removeFnAttr("split-stack"); in buildWrapperFunction() 1320 auto ArgIt = pointer_iterator<Argument *>(NewF->arg_begin()); in buildWrapperFunction() 1330 return NewF; in buildWrapperFunction() 1581 Function *NewF = in runImpl() local 1583 GA.replaceAllUsesWith(NewF); in runImpl() 1584 NewF->takeName(&GA); in runImpl() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
H A D | CloneFunction.cpp | 339 Function *NewF = Function::Create(FTy, F->getLinkage(), F->getAddressSpace(), in CloneFunction() local 341 NewF->setIsNewDbgInfoFormat(F->IsNewDbgInfoFormat); in CloneFunction() 344 Function::arg_iterator DestI = NewF->arg_begin(); in CloneFunction() 352 CloneFunctionInto(NewF, F, VMap, CloneFunctionChangeType::LocalChangesOnly, in CloneFunction() 355 return NewF; in CloneFunction()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineVectorOps.cpp | 2479 CallInst *NewF = CallInst::Create(FAbs, {NewShuf}); in foldShuffleOfUnaryOps() local 2480 NewF->setFastMathFlags(S0->getFastMathFlags()); in foldShuffleOfUnaryOps() 2481 return NewF; in foldShuffleOfUnaryOps() 2494 Instruction *NewF; in foldShuffleOfUnaryOps() local 2496 NewF = UnaryOperator::CreateFNeg(NewShuf); in foldShuffleOfUnaryOps() 2500 NewF = CallInst::Create(FAbs, {NewShuf}); in foldShuffleOfUnaryOps() 2502 NewF->copyIRFlags(S0); in foldShuffleOfUnaryOps() 2503 NewF->andIRFlags(S1); in foldShuffleOfUnaryOps() 2504 return NewF; in foldShuffleOfUnaryOps()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/ |
H A D | LazyCallGraph.h | 395 void replaceFunction(Function &NewF); 868 void replaceNodeFunction(Node &N, Function &NewF);
|
/freebsd/contrib/llvm-project/llvm/lib/Linker/ |
H A D | IRMover.cpp | 769 if (auto *NewF = dyn_cast<Function>(NewGV)) { in copyGlobalValueProto() local 770 NewF->setPersonalityFn(nullptr); in copyGlobalValueProto() 771 NewF->setPrefixData(nullptr); in copyGlobalValueProto() 772 NewF->setPrologueData(nullptr); in copyGlobalValueProto()
|