/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 Replacements.emplace_back(&F, NewF); in runOnModule() 144 Function *NewF = Pair.second; in runOnModule() local 146 M.getFunctionList().push_back(NewF); in runOnModule() 148 ConstantExpr::getPointerBitCastOrAddrSpaceCast(NewF, OldF->getType())); in runOnModule() 150 NewF->setName(Name); in runOnModule()
|
H A D | WebAssemblyLowerEmscriptenEHSjLj.cpp | 361 void replaceLongjmpWith(Function *LongjmpF, Function *NewF); 817 Function *NewF) { in replaceLongjmpWith() argument 818 assert(NewF == EmLongjmpF || NewF == WasmLongjmpF); in replaceLongjmpWith() 831 if (NewF == EmLongjmpF) in replaceLongjmpWith() 836 IRB.CreateCall(NewF, {Env, CI->getArgOperand(1)}); in replaceLongjmpWith() 847 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() 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() 337 NewF->getAttributes()); in transformKernels() [all …]
|
H A D | AMDGPUInstCombineIntrinsic.cpp | 870 Function *NewF = Intrinsic::getDeclaration( in instCombineIntrinsic() local 875 CallInst *NewCall = IC.Builder.CreateCall(NewF, Args); in instCombineIntrinsic() 969 Function *NewF = Intrinsic::getDeclaration( in instCombineIntrinsic() local 973 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 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->getFunctionType()); in visitCallScalToVec() 252 Function *NewF = OldNew.second; in runOnFunction() local [all …]
|
H A D | SPIRVPrepareFunctions.cpp | 86 NewF->setDSOLocal(F->isDSOLocal()); in getOrCreateFunction() 87 NewF->setCallingConv(CallingConv::SPIR_FUNC); in getOrCreateFunction() 88 return NewF; in getOrCreateFunction() 345 Function *NewF = in removeAggregateTypesFromSignature() local 349 auto NewFArgIt = NewF->arg_begin(); in removeAggregateTypesFromSignature() 359 NewF->takeName(F); in removeAggregateTypesFromSignature() 375 CI->mutateFunctionType(NewF->getFunctionType()); in removeAggregateTypesFromSignature() 376 U->replaceUsesOfWith(F, NewF); in removeAggregateTypesFromSignature() 378 return NewF; in removeAggregateTypesFromSignature() 391 Function *NewF = removeAggregateTypesFromSignature(F); in runOnModule() local [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Coroutines/ |
H A D | CoroSplit.cpp | 104 Function *NewF; member in __anon25bac84f0111::CoroCloner 128 : OrigF(OrigF), NewF(NewF), Suffix(Suffix), Shape(Shape), in CoroCloner() 139 return NewF; in getFunction() 568 Function *NewF = in createCloneDeclaration() local 574 return NewF; in createCloneDeclaration() 593 for (auto I = IsAsyncABI ? NewF->arg_begin() : std::next(NewF->arg_begin()), in replaceRetconOrAsyncSuspendUses() 594 E = NewF->arg_end(); in replaceRetconOrAsyncSuspendUses() 761 DominatorTree DomTree(*NewF); in salvageDebugInfo() 858 return &*NewF->arg_begin(); in deriveNewFramePointer() 939 if (!NewF) { in create() [all …]
|
/freebsd/contrib/llvm-project/clang/lib/Basic/Targets/ |
H A D | AMDGPU.cpp | 295 std::string NewF = F.str(); in getTargetDefines() local 296 std::replace(NewF.begin(), NewF.end(), '-', '_'); in getTargetDefines() 297 Builder.defineMacro(Twine("__amdgcn_feature_") + Twine(NewF) + in getTargetDefines()
|
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/ |
H A D | IndirectionUtils.cpp | 311 Function *NewF = in cloneFunctionDecl() local 314 NewF->copyAttributesFrom(&F); in cloneFunctionDecl() 317 (*VMap)[&F] = NewF; in cloneFunctionDecl() 318 auto NewArgI = NewF->arg_begin(); in cloneFunctionDecl() 324 return NewF; in cloneFunctionDecl()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/ |
H A D | MergeFunctions.cpp | 824 Function *NewF = Function::Create(F->getFunctionType(), F->getLinkage(), in mergeTwoFunctions() local 826 NewF->copyAttributesFrom(F); in mergeTwoFunctions() 827 NewF->takeName(F); in mergeTwoFunctions() 829 copyMetadataIfPresent(F, NewF, "type"); in mergeTwoFunctions() 830 copyMetadataIfPresent(F, NewF, "kcfi_type"); in mergeTwoFunctions() 832 F->replaceAllUsesWith(NewF); in mergeTwoFunctions() 836 const MaybeAlign NewFAlign = NewF->getAlign(); in mergeTwoFunctions() 840 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 | 819 Function *NewF = promoteArguments(&OldF, FAM, MaxElements, IsRecursive); in run() local 820 if (!NewF) in run() 829 C.getOuterRefSCC().replaceNodeFunction(N, *NewF); in run() 835 for (auto *U : NewF->users()) { in run()
|
H A D | MemProfContextDisambiguation.cpp | 3199 auto *NewF = CloneFunction(&F, *VMaps.back()); in createFunctionClones() local 3203 for (auto &BB : *NewF) { in createFunctionClones() 3215 NewF->takeName(PrevF); in createFunctionClones() 3216 PrevF->replaceAllUsesWith(NewF); in createFunctionClones() 3219 NewF->setName(Name); in createFunctionClones() 3221 << "created clone " << ore::NV("NewFunction", NewF)); in createFunctionClones() 3231 A->getLinkage(), Name, NewF); in createFunctionClones() 3349 auto NewF = M.getOrInsertFunction( in applyImport() local 3358 CBClone->setCalledFunction(NewF); in applyImport() 3363 << ore::NV("Callee", NewF.getCallee())); in applyImport()
|
/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/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/Transforms/Scalar/ |
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()
|
H A D | LoopStrengthReduce.cpp | 4365 Formula NewF = F; in GenerateCrossUseConstantOffsets() local 4366 NewF.BaseOffset = Offset; in GenerateCrossUseConstantOffsets() 4368 NewF)) in GenerateCrossUseConstantOffsets() 4370 NewF.ScaledReg = SE.getAddExpr(NegImmS, NewF.ScaledReg); in GenerateCrossUseConstantOffsets() 4390 Formula NewF = F; in GenerateCrossUseConstantOffsets() local 4391 NewF.BaseOffset = (uint64_t)NewF.BaseOffset + Imm; in GenerateCrossUseConstantOffsets() 4399 NewF = F; in GenerateCrossUseConstantOffsets() 4400 NewF.UnfoldedOffset = (uint64_t)NewF.UnfoldedOffset + Imm; in GenerateCrossUseConstantOffsets() 4604 Formula NewF = F; in NarrowSearchSpaceByDetectingSupersets() local 4608 NewF.BaseRegs.erase(NewF.BaseRegs.begin() + in NarrowSearchSpaceByDetectingSupersets() [all …]
|
/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() 1442 void LazyCallGraph::RefSCC::replaceNodeFunction(Node &N, Function &NewF) { in replaceNodeFunction() argument 1451 assert(G->NodeMap.find(&NewF) == G->NodeMap.end() && in replaceNodeFunction() 1460 assert(&OldF != &NewF && "Cannot replace a function with itself!"); in replaceNodeFunction() 1465 N.replaceFunction(NewF); in replaceNodeFunction() 1469 G->NodeMap[&NewF] = &N; in replaceNodeFunction() 1474 G->LibFunctions.insert(&NewF); in replaceNodeFunction()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
H A D | CloneFunction.cpp | 337 Function *NewF = Function::Create(FTy, F->getLinkage(), F->getAddressSpace(), in CloneFunction() local 339 NewF->setIsNewDbgInfoFormat(F->IsNewDbgInfoFormat); in CloneFunction() 342 Function::arg_iterator DestI = NewF->arg_begin(); in CloneFunction() 350 CloneFunctionInto(NewF, F, VMap, CloneFunctionChangeType::LocalChangesOnly, in CloneFunction() 353 return NewF; in CloneFunction()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/ |
H A D | DataFlowSanitizer.cpp | 1304 NewF->copyAttributesFrom(F); in buildWrapperFunction() 1305 NewF->removeRetAttrs( in buildWrapperFunction() 1310 NewF->removeFnAttr("split-stack"); in buildWrapperFunction() 1326 return NewF; in buildWrapperFunction() 1576 Function *NewF = in runImpl() local 1578 GA.replaceAllUsesWith(NewF); in runImpl() 1579 NewF->takeName(&GA); in runImpl() 1581 FnsToInstrument.push_back(NewF); in runImpl() 1618 Function *NewF = buildWrapperFunction( in runImpl() local 1659 UnwrappedFnMap[NewF] = &F; in runImpl() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineVectorOps.cpp | 2455 CallInst *NewF = CallInst::Create(FAbs, {NewShuf}); in foldShuffleOfUnaryOps() local 2456 NewF->setFastMathFlags(S0->getFastMathFlags()); in foldShuffleOfUnaryOps() 2457 return NewF; in foldShuffleOfUnaryOps() 2470 Instruction *NewF; in foldShuffleOfUnaryOps() local 2472 NewF = UnaryOperator::CreateFNeg(NewShuf); in foldShuffleOfUnaryOps() 2476 NewF = CallInst::Create(FAbs, {NewShuf}); in foldShuffleOfUnaryOps() 2478 NewF->copyIRFlags(S0); in foldShuffleOfUnaryOps() 2479 NewF->andIRFlags(S1); in foldShuffleOfUnaryOps() 2480 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 | 767 if (auto *NewF = dyn_cast<Function>(NewGV)) { in copyGlobalValueProto() local 768 NewF->setPersonalityFn(nullptr); in copyGlobalValueProto() 769 NewF->setPrefixData(nullptr); in copyGlobalValueProto() 770 NewF->setPrologueData(nullptr); in copyGlobalValueProto()
|
/freebsd/contrib/llvm-project/llvm/lib/IR/ |
H A D | Constants.cpp | 1802 Function *NewF = getFunction(); in handleOperandChangeImpl() local 1805 if (From == NewF) in handleOperandChangeImpl() 1806 NewF = cast<Function>(To->stripPointerCasts()); in handleOperandChangeImpl() 1815 getContext().pImpl->BlockAddresses[std::make_pair(NewF, NewBB)]; in handleOperandChangeImpl() 1826 setOperand(0, NewF); in handleOperandChangeImpl()
|