Home
last modified time | relevance | path

Searched refs:isDeclaration (Results 1 – 25 of 131) sorted by relevance

123456

/freebsd-12.1/contrib/llvm/lib/Transforms/IPO/
H A DStripDeadPrototypes.cpp36 if (F->isDeclaration() && F->use_empty()) { in stripDeadPrototypes()
48 if (GV->isDeclaration() && GV->use_empty()) in stripDeadPrototypes()
H A DAlwaysInliner.cpp41 if (!F.isDeclaration() && F.hasFnAttribute(Attribute::AlwaysInline) && in run()
151 if (Callee && !Callee->isDeclaration() && in getInlineCost()
H A DSyntheticCountsPropagation.cpp78 if (F.isDeclaration()) in initializeCounts()
134 if (!F || F->isDeclaration()) in run()
H A DExtractGV.cpp87 deleteStuff == (bool)Named.count(&*I) && !I->isDeclaration(); in runOnModule()
107 deleteStuff == (bool)Named.count(&F) && !F.isDeclaration(); in runOnModule()
H A DThinLTOBitcodeWriter.cpp146 if (F.isDeclaration() && F.use_empty()) { in simplifyExternals()
151 if (!F.isDeclaration() || F.getFunctionType() == EmptyFT || in simplifyExternals()
167 if (GV.isDeclaration() && GV.use_empty()) { in simplifyExternals()
259 if (!F->isDeclaration() && in splitAndWriteThinLTOBitcode()
281 if (!F.isDeclaration()) { in splitAndWriteThinLTOBitcode()
H A DInliner.cpp558 if (!F || F->isDeclaration()) in inlineCallsImpl()
574 if (Callee->isDeclaration()) { in inlineCallsImpl()
625 if (!Callee || Callee->isDeclaration()) in inlineCallsImpl()
803 if (!F || F->isDeclaration()) in removeDeadFunctions()
929 if (!Callee->isDeclaration()) in run()
1093 if (!NewCallee->isDeclaration()) in run()
H A DInferFunctionAttrs.cpp29 if (F.isDeclaration() && !F.hasFnAttribute((Attribute::OptimizeNone))) in inferAllPrototypeAttributes()
H A DGlobalDCE.cpp173 if (!GO.isDeclaration()) in run()
232 if (!F.isDeclaration()) in run()
H A DElimAvailExtern.cpp56 if (!F.isDeclaration()) in eliminateAvailableExternally()
/freebsd-12.1/contrib/llvm/lib/Transforms/Utils/
H A DNameAnonGlobals.cpp42 if (F.isDeclaration() || F.hasLocalLinkage() || !F.hasName()) in get()
48 if (GV.isDeclaration() || GV.hasLocalLinkage() || !GV.hasName()) in get()
H A DFunctionImportUtils.cpp212 if (!F->isDeclaration()) { in processGlobalForThinLTO()
242 if (!GV.isDeclaration() && VI && ImportIndex.withGlobalValueDeadStripping()) { in processGlobalForThinLTO()
H A DCloneModule.cpp121 if (I->isDeclaration()) in CloneModule()
145 if (I.isDeclaration()) in CloneModule()
H A DStripGCRelocates.cpp44 if (F.isDeclaration()) in runOnFunction()
/freebsd-12.1/contrib/llvm/lib/Linker/
H A DLinkModules.cpp274 LinkFromSrc = !Src.isDeclaration() && Dest.isDeclaration(); in shouldLinkFromSource()
340 if (!DGV->isDeclaration()) in linkIfNeeded()
349 if (DGVar->isDeclaration() && SGVar->isDeclaration() && in linkIfNeeded()
377 if (GV.isDeclaration()) in linkIfNeeded()
/freebsd-12.1/contrib/llvm/lib/Target/Lanai/
H A DLanaiTargetObjectFile.cpp58 if (GO->isDeclaration() || GO->hasAvailableExternallyLinkage()) in isGlobalInSmallSection()
94 if (((GVA->hasExternalLinkage() && GVA->isDeclaration()) || in isGlobalInSmallSectionImpl()
/freebsd-12.1/contrib/llvm/tools/bugpoint/
H A DExtractFunction.cpp70 if (F->isDeclaration()) in globalInitUsesExternalBA()
224 assert(F->isDeclaration() && "This didn't make the function external!"); in DeleteFunctionBody()
251 if (!GV || GV->isDeclaration() || GV->hasLocalLinkage() || !GV->use_empty()) in SplitStaticCtorDtor()
276 if (!F->isDeclaration()) in SplitStaticCtorDtor()
H A DMiscompilation.cpp418 if (!I->isDeclaration()) in ExtractLoops()
589 if (!I->isDeclaration()) in ExtractBlocks()
624 if (!F.isDeclaration()) in DebugAMiscompilation()
793 if (!oldMain->isDeclaration()) { in CleanupAndPrepareModules()
836 if (F->isDeclaration() && !F->use_empty() && &*F != resolverFunc && in CleanupAndPrepareModules()
841 if (TestFn && !TestFn->isDeclaration()) { in CleanupAndPrepareModules()
/freebsd-12.1/contrib/llvm/lib/Target/Mips/
H A DMipsTargetObjectFile.cpp76 if (GO->isDeclaration() || GO->hasAvailableExternallyLinkage()) in IsGlobalInSmallSection()
131 if (!ExternSData && ((GVA->hasExternalLinkage() && GVA->isDeclaration()) || in IsGlobalInSmallSectionImpl()
/freebsd-12.1/contrib/llvm/lib/ExecutionEngine/MCJIT/
H A DMCJIT.cpp304 if (F && !F->isDeclaration()) in findModuleForSymbol()
308 if (G && !G->isDeclaration()) in findModuleForSymbol()
415 if (F->isDeclaration() || F->hasAvailableExternallyLinkage()) { in getPointerToFunction()
465 if (F && !F->isDeclaration()) in FindFunctionNamedInModulePtrSet()
477 if (GV && !GV->isDeclaration()) in FindGlobalVariableNamedInModulePtrSet()
/freebsd-12.1/contrib/llvm/include/llvm/IR/
H A DGlobalValue.h413 return !isDeclaration() && isDefinitionExact(); in hasExactDefinition()
522 bool isDeclaration() const;
528 return isDeclaration(); in isDeclarationForLinker()
/freebsd-12.1/contrib/llvm/lib/Target/AMDGPU/
H A DAMDGPUInline.cpp111 bool InlineHint = Callee && !Callee->isDeclaration() && in getInlineThreshold()
175 if (!Callee || Callee->isDeclaration()) in getInlineCost()
/freebsd-12.1/contrib/llvm/include/llvm/ExecutionEngine/Orc/
H A DCompileOnDemandLayer.h383 if (F.isDeclaration()) in addLogicalModule()
439 if (!GV.isDeclaration() && !VMap.count(&GV)) in addLogicalModule()
458 if (F->isDeclaration()) in addLogicalModule()
485 if (!GV.isDeclaration()) in addLogicalModule()
570 if (F.isDeclaration()) in extractAndCompile()
/freebsd-12.1/contrib/llvm/lib/ExecutionEngine/Orc/
H A DLayer.cpp35 if (G.hasName() && !G.isDeclaration() && !G.hasLocalLinkage() && in IRMaterializationUnit()
66 assert(!I->second->isDeclaration() && in discard()
/freebsd-12.1/contrib/llvm/tools/opt/
H A DAnalysisWrappers.cpp37 if (!I->isDeclaration()) continue; in runOnModule()
/freebsd-12.1/contrib/llvm/lib/Passes/
H A DStandardInstrumentations.cpp51 if (!F.isDeclaration() && isFunctionInPrintList(F.getName())) { in unwrapModule()
89 if (!F.isDeclaration() && llvm::isFunctionInPrintList(F.getName())) { in printIR()

123456