Home
last modified time | relevance | path

Searched refs:GlobalValue (Results 1 – 25 of 484) sorted by relevance

12345678910>>...20

/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DFunctionImportUtils.cpp30 const GlobalValue *SGV) { in doImportAsDefinition()
92 const GlobalValue &GV) const { in isNonRenamableLocal()
125 GlobalValue::LinkageTypes
143 case GlobalValue::LinkOnceODRLinkage: in getLinkage()
144 case GlobalValue::ExternalLinkage: in getLinkage()
163 case GlobalValue::WeakAnyLinkage: in getLinkage()
173 case GlobalValue::WeakODRLinkage: in getLinkage()
183 case GlobalValue::AppendingLinkage: in getLinkage()
191 case GlobalValue::InternalLinkage: in getLinkage()
192 case GlobalValue::PrivateLinkage: in getLinkage()
[all …]
H A DSplitModule.cpp54 using ClusterMapType = EquivalenceClasses<const GlobalValue *>;
56 using ClusterIDMapType = DenseMap<const GlobalValue *, unsigned>;
61 const GlobalValue *GV, const User *U) { in addNonConstUser()
65 const GlobalValue *F = I->getParent()->getParent(); in addNonConstUser()
67 } else if (const GlobalValue *GVU = dyn_cast<GlobalValue>(U)) { in addNonConstUser()
83 if (isa<Constant>(UU) && !isa<GlobalValue>(UU)) { in addAllGlobalValueUsers()
175 SmallPtrSet<const GlobalValue *, 32> Visited; in findPartitions()
218 static void externalize(GlobalValue *GV) { in externalize()
220 GV->setLinkage(GlobalValue::ExternalLinkage); in externalize()
221 GV->setVisibility(GlobalValue::HiddenVisibility); in externalize()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DGlobals.cpp34 static_assert(sizeof(GlobalValue) ==
42 bool GlobalValue::isMaterializable() const { in isMaterializable()
51 void GlobalValue::destroyConstantImpl() { in destroyConstantImpl()
61 void GlobalValue::copyAttributesFrom(const GlobalValue *Src) { in copyAttributesFrom()
74 void GlobalValue::removeFromParent() { in removeFromParent()
86 void GlobalValue::eraseFromParent() { in eraseFromParent()
100 bool GlobalValue::isInterposable() const { in isInterposable()
139 GlobalValue::copyAttributesFrom(Src); in copyAttributesFrom()
174 StringRef GlobalValue::getSection() const { in getSection()
267 bool GlobalValue::isNobuiltinFnDef() const { in isNobuiltinFnDef()
[all …]
H A DModuleSummaryIndex.cpp46 return GlobalValue::HiddenVisibility; in getELFVisibility()
398 GlobalValue::GUID Src;
399 GlobalValue::GUID Dst;
438 case GlobalValue::ExternalLinkage: in linkageToString()
446 case GlobalValue::WeakAnyLinkage: in linkageToString()
448 case GlobalValue::WeakODRLinkage: in linkageToString()
450 case GlobalValue::AppendingLinkage: in linkageToString()
452 case GlobalValue::InternalLinkage: in linkageToString()
454 case GlobalValue::PrivateLinkage: in linkageToString()
458 case GlobalValue::CommonLinkage: in linkageToString()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/
H A DFunctionImportUtils.h34 SetVector<GlobalValue *> *GlobalsToImport;
57 SmallPtrSet<GlobalValue *, 4> Used;
65 bool shouldPromoteLocalToGlobal(const GlobalValue *SGV, ValueInfo VI);
71 bool isNonRenamableLocal(const GlobalValue &GV) const;
81 bool doImportAsDefinition(const GlobalValue *SGV);
85 std::string getPromotedName(const GlobalValue *SGV);
92 void processGlobalForThinLTO(GlobalValue &GV);
98 GlobalValue::LinkageTypes getLinkage(const GlobalValue *SGV, bool DoPromote);
102 SetVector<GlobalValue *> *GlobalsToImport, in FunctionImportGlobalProcessing()
114 SmallVector<GlobalValue *, 4> Vec; in FunctionImportGlobalProcessing()
[all …]
H A DFunctionComparator.h35 class GlobalValue; variable
55 struct Config : ValueMapConfig<GlobalValue *> {
62 using ValueNumberMap = ValueMap<GlobalValue *, uint64_t, Config>;
71 uint64_t getNumber(GlobalValue* Global) { in getNumber()
80 void erase(GlobalValue *Global) { in erase()
221 int cmpGlobalValues(GlobalValue *L, GlobalValue *R) const;
/freebsd/contrib/llvm-project/llvm/lib/Linker/
H A DLinkModules.cpp34 SetVector<GlobalValue *> ValuesToLink;
81 GlobalValue *getLinkedToGlobal(const GlobalValue *SrcGV) { in getLinkedToGlobal()
107 bool linkIfNeeded(GlobalValue &GV, SmallVectorImpl<GlobalValue *> &GVToClone);
120 static GlobalValue::VisibilityTypes
123 if (A == GlobalValue::HiddenVisibility || B == GlobalValue::HiddenVisibility) in getMinVisibility()
124 return GlobalValue::HiddenVisibility; in getMinVisibility()
128 return GlobalValue::DefaultVisibility; in getMinVisibility()
371 GlobalValue::UnnamedAddr UnnamedAddr = GlobalValue::getMinUnnamedAddr( in linkIfNeeded()
447 GlobalValue *Declaration; in dropReplacedComdat()
559 for (GlobalValue *GV : GVToClone) { in run()
[all …]
H A DIRMover.cpp461 GlobalValue *getLinkedToGlobal(const GlobalValue *SrcGV) { in getLinkedToGlobal()
499 bool shouldLink(GlobalValue *DGV, GlobalValue &SGV);
509 Error linkGlobalValueBody(GlobalValue &Dst, GlobalValue &Src);
519 GlobalValue *copyIndirectSymbolProto(const GlobalValue *SGV);
612 GlobalValue *New = dyn_cast<GlobalValue>(*NewProto); in materialize()
702 GlobalValue *IRLinker::copyIndirectSymbolProto(const GlobalValue *SGV) { in copyIndirectSymbolProto()
726 GlobalValue *IRLinker::copyGlobalValueProto(const GlobalValue *SGV, in copyGlobalValueProto()
728 GlobalValue *NewGV; in copyGlobalValueProto()
998 bool IRLinker::shouldLink(GlobalValue *DGV, GlobalValue &SGV) { in shouldLink()
1045 GlobalValue *NewGV; in linkGlobalValueProto()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/IPO/
H A DGlobalDCE.h48 SmallPtrSet<GlobalValue*, 32> AliveGlobals;
51 DenseMap<GlobalValue *, SmallPtrSet<GlobalValue *, 4>> GVDependencies;
54 std::unordered_map<Constant *, SmallPtrSet<GlobalValue *, 8>>
58 std::unordered_multimap<Comdat *, GlobalValue *> ComdatMembers;
66 SmallPtrSet<GlobalValue *, 32> VFESafeVTables;
68 void UpdateGVDependencies(GlobalValue &GV);
69 void MarkLive(GlobalValue &GV,
70 SmallVectorImpl<GlobalValue *> *Updates = nullptr);
78 void ComputeDependencies(Value *V, SmallPtrSetImpl<GlobalValue *> &U);
H A DInternalize.h46 const std::function<bool(const GlobalValue &)> MustPreserveGV;
51 bool shouldPreserveGV(const GlobalValue &GV);
54 bool maybeInternalize(GlobalValue &GV,
58 void checkComdat(GlobalValue &GV,
63 InternalizePass(std::function<bool(const GlobalValue &)> MustPreserveGV) in InternalizePass()
76 std::function<bool(const GlobalValue &)> MustPreserveGV) { in internalizeModule()
H A DFunctionImport.h36 using FunctionsToImportTy = std::unordered_set<GlobalValue::GUID>;
90 DenseMap<GlobalValue::GUID,
160 function_ref<bool(GlobalValue::GUID, const GlobalValueSummary *)>
185 const DenseSet<GlobalValue::GUID> &GUIDPreservedSymbols,
186 function_ref<PrevailingType(GlobalValue::GUID)> isPrevailing);
192 const DenseSet<GlobalValue::GUID> &GUIDPreservedSymbols,
193 function_ref<PrevailingType(GlobalValue::GUID)> isPrevailing,
198 bool convertToDeclaration(GlobalValue &GV);
/freebsd/contrib/llvm-project/llvm/lib/LTO/
H A DLTO.cpp93 const std::map<GlobalValue::GUID, GlobalValue::LinkageTypes> &ResolvedODR, in computeLTOCacheKey()
354 function_ref<void(StringRef, GlobalValue::GUID, GlobalValue::LinkageTypes)> in thinLTOResolvePrevailingGUID()
870 if (GlobalValue *GV = dyn_cast_if_present<GlobalValue *>(Msym)) { in addRegularLTO()
1005 auto GUID = GlobalValue::getGUID(GlobalValue::getGlobalIdentifier( in addThinLTO()
1026 auto GUID = GlobalValue::getGUID(GlobalValue::getGlobalIdentifier( in addThinLTO()
1136 GlobalValue::GUID GUID = GlobalValue::getGUID( in run()
1436 GlobalValue::getGUID(GlobalValue::dropLLVMManglingEscape(Name))); in InProcessThinBackend()
1439 GlobalValue::getGUID(GlobalValue::dropLLVMManglingEscape(Name))); in InProcessThinBackend()
1503 const std::map<GlobalValue::GUID, GlobalValue::LinkageTypes> in start()
1777 GlobalValue::getGUID(GlobalValue::dropLLVMManglingEscape(Def))); in runThinLTO()
[all …]
H A DThinLTOCodeGenerator.cpp116 !GlobalValue::isWeakForLinker(Linkage); in getFirstDefinitionForLinker()
313 GUIDs.insert(GlobalValue::getGUID(GlobalValue::getGlobalIdentifier( in computeGUIDPreservedSymbols()
318 static DenseSet<GlobalValue::GUID>
365 const std::map<GlobalValue::GUID, GlobalValue::LinkageTypes> &ResolvedODR, in ModuleCacheEntry()
513 StringMap<std::map<GlobalValue::GUID, GlobalValue::LinkageTypes>> in resolvePrevailingInIndex()
673 auto isPrevailing = [&](GlobalValue::GUID G) { in computeDeadSymbolsInIndex()
715 StringMap<std::map<GlobalValue::GUID, GlobalValue::LinkageTypes>> ResolvedODR; in promote()
898 StringMap<std::map<GlobalValue::GUID, GlobalValue::LinkageTypes>> ResolvedODR; in internalize()
1041 DenseSet<GlobalValue::GUID> GUIDPreservedSymbols; in run()
1074 std::set<GlobalValue::GUID> ExportedGUIDs; in run()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DExtractGV.cpp24 static void makeVisible(GlobalValue &GV, bool Delete) { in makeVisible()
27 GV.setLinkage(GlobalValue::ExternalLinkage); in makeVisible()
29 GV.setVisibility(GlobalValue::HiddenVisibility); in makeVisible()
42 case GlobalValue::LinkOnceAnyLinkage: in makeVisible()
43 GV.setLinkage(GlobalValue::WeakAnyLinkage); in makeVisible()
45 case GlobalValue::LinkOnceODRLinkage: in makeVisible()
46 GV.setLinkage(GlobalValue::WeakODRLinkage); in makeVisible()
54 ExtractGVPass::ExtractGVPass(std::vector<GlobalValue *> &GVs, bool deleteS, in ExtractGVPass()
119 Declaration = Function::Create(FTy, GlobalValue::ExternalLinkage, in run()
124 M, Ty, false, GlobalValue::ExternalLinkage, nullptr, GA.getName()); in run()
[all …]
H A DFunctionImport.cpp930 GlobalValue::GUID G) { in isGlobalVarSummary()
953 DenseSet<GlobalValue::GUID> FlattenedImports; in checkVariableImport()
1365 bool llvm::convertToDeclaration(GlobalValue &GV) { in convertToDeclaration()
1374 V->setLinkage(GlobalValue::ExternalLinkage); in convertToDeclaration()
1378 GlobalValue *NewGV; in convertToDeclaration()
1433 GlobalValue::isLocalLinkage(NewLinkage) || in thinLTOFinalizeInModule()
1552 OrigName, GlobalValue::InternalLinkage, in thinLTOInternalizeModule()
1596 GV.setLinkage(GlobalValue::InternalLinkage); in internalizeGVsAfterImport()
1633 SetVector<GlobalValue *> GlobalsToImport; in importFunctions()
1779 if (GlobalValue::isLocalLinkage(S->linkage())) in doImportingForModuleForTest()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DTargetLoweringObjectFileImpl.h24 class GlobalValue; variable
88 const MCExpr *getTTypeGlobalReference(const GlobalValue *GV,
95 MCSymbol *getCFIPersonalitySymbol(const GlobalValue *GV,
105 const MCExpr *lowerRelativeReference(const GlobalValue *LHS,
106 const GlobalValue *RHS,
139 const MCExpr *getTTypeGlobalReference(const GlobalValue *GV,
146 MCSymbol *getCFIPersonalitySymbol(const GlobalValue *GV,
194 const MCExpr *lowerRelativeReference(const GlobalValue *LHS,
195 const GlobalValue *RHS,
230 const MCExpr *lowerRelativeReference(const GlobalValue *LHS,
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DMangler.h21 class GlobalValue; variable
30 mutable DenseMap<const GlobalValue*, unsigned> AnonGlobalIDs;
36 void getNameWithPrefix(raw_ostream &OS, const GlobalValue *GV,
38 void getNameWithPrefix(SmallVectorImpl<char> &OutName, const GlobalValue *GV,
49 void emitLinkerFlagsForGlobalCOFF(raw_ostream &OS, const GlobalValue *GV,
52 void emitLinkerFlagsForUsedCOFF(raw_ostream &OS, const GlobalValue *GV,
H A DModuleSummaryIndex.h150 const GlobalValue *GV;
193 const GlobalValue *getValue() const { in getValue()
494 GlobalValue::GUID OriginalName = 0;
542 GlobalValue::LinkageTypes linkage() const {
635 GlobalValue::GUID getAliaseeGUID() const {
672 GlobalValue::GUID GUID;
814 GlobalValue::DefaultVisibility,
819 std::vector<GlobalValue::GUID>(),
995 void addTypeTest(GlobalValue::GUID Guid) {
1304 std::map<GlobalValue::GUID, GlobalValue::GUID> OidGuidMap;
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Frontend/Offloading/
H A DUtility.cpp43 GlobalValue::InternalLinkage, AddrName, in getOffloadingEntryInitializer()
45 Str->setUnnamedAddr(GlobalValue::UnnamedAddr::Global); in getOffloadingEntryInitializer()
69 /*isConstant=*/true, GlobalValue::WeakAnyLinkage, EntryInitializer, in emitOffloadingEntry()
70 ".omp_offloading.entry." + Name, nullptr, GlobalValue::NotThreadLocal, in emitOffloadingEntry()
91 GlobalValue::ExternalLinkage, EntryInit, in getOffloadEntryArray()
93 EntriesB->setVisibility(GlobalValue::HiddenVisibility); in getOffloadEntryArray()
95 GlobalValue::ExternalLinkage, EntryInit, in getOffloadEntryArray()
97 EntriesE->setVisibility(GlobalValue::HiddenVisibility); in getOffloadEntryArray()
108 DummyEntry->setVisibility(GlobalValue::HiddenVisibility); in getOffloadEntryArray()
/freebsd/contrib/llvm-project/llvm/include/llvm/Target/
H A DTargetLoweringObjectFile.h28 class GlobalValue; variable
129 const GlobalValue *GV,
151 virtual const MCExpr *getTTypeGlobalReference(const GlobalValue *GV,
159 MCSymbol *getSymbolWithGlobalValueBase(const GlobalValue *GV,
164 virtual MCSymbol *getCFIPersonalitySymbol(const GlobalValue *GV,
190 virtual const MCExpr *lowerRelativeReference(const GlobalValue *LHS, in lowerRelativeReference()
191 const GlobalValue *RHS, in lowerRelativeReference()
233 virtual const MCExpr *getIndirectSymViaGOTPCRel(const GlobalValue *GV, in getIndirectSymViaGOTPCRel()
274 virtual MCSymbol *getTargetSymbol(const GlobalValue *GV, in getTargetSymbol()
282 virtual MCSymbol *getFunctionEntryPointSymbol(const GlobalValue *Func, in getFunctionEntryPointSymbol()
/freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/
H A DSystemZConstantPoolValue.h17 class GlobalValue; variable
33 const GlobalValue *GV;
37 SystemZConstantPoolValue(const GlobalValue *GV,
42 Create(const GlobalValue *GV, SystemZCP::SystemZCPModifier Modifier);
51 const GlobalValue *getGlobalValue() const { return GV; } in getGlobalValue()
/freebsd/contrib/llvm-project/llvm/include/llvm/LTO/
H A DLTO.h48 function_ref<bool(GlobalValue::GUID, const GlobalValueSummary *)>
50 function_ref<void(StringRef, GlobalValue::GUID, GlobalValue::LinkageTypes)>
52 const DenseSet<GlobalValue::GUID> &GUIDPreservedSymbols);
60 function_ref<bool(GlobalValue::GUID, const GlobalValueSummary *)>
71 const std::map<GlobalValue::GUID, GlobalValue::LinkageTypes> &ResolvedODR,
73 const std::set<GlobalValue::GUID> &CfiFunctionDefs = {},
74 const std::set<GlobalValue::GUID> &CfiFunctionDecls = {});
329 std::vector<GlobalValue *> Keep;
346 DenseMap<GlobalValue::GUID, StringRef> PrevailingModuleForGUID;
433 const DenseSet<GlobalValue::GUID> &GUIDPreservedSymbols);
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/NVPTX/
H A DNVPTXUtilities.cpp34 typedef std::map<const GlobalValue *, key_val_pair_t> global_val_annot_t;
80 static void cacheAnnotationFromMD(const Module *m, const GlobalValue *gv) { in cacheAnnotationFromMD()
90 GlobalValue *entity = in cacheAnnotationFromMD()
91 mdconst::dyn_extract_or_null<GlobalValue>(elem->getOperand(0)); in cacheAnnotationFromMD()
114 bool findOneNVVMAnnotation(const GlobalValue *gv, const std::string &prop, in findOneNVVMAnnotation()
129 bool findAllNVVMAnnotation(const GlobalValue *gv, const std::string &prop, in findAllNVVMAnnotation()
145 if (const GlobalValue *gv = dyn_cast<GlobalValue>(&val)) { in isTexture()
156 if (const GlobalValue *gv = dyn_cast<GlobalValue>(&val)) { in isSurface()
169 if (const GlobalValue *gv = dyn_cast<GlobalValue>(&val)) { in isSampler()
228 if(const GlobalValue *gv = dyn_cast<GlobalValue>(&val)) { in isManaged()
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64TargetObjectFile.h27 const MCExpr *getIndirectSymViaGOTPCRel(const GlobalValue *GV,
39 const MCExpr *getTTypeGlobalReference(const GlobalValue *GV,
45 MCSymbol *getCFIPersonalitySymbol(const GlobalValue *GV,
49 const MCExpr *getIndirectSymViaGOTPCRel(const GlobalValue *GV,
55 void getNameWithPrefix(SmallVectorImpl<char> &OutName, const GlobalValue *GV,
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCodeGenModule.h48 class GlobalValue; variable
368 auto L = llvm::GlobalValue::ExternalLinkage; in addEmittedDeferredDecl()
374 if (llvm::GlobalValue::isInternalLinkage(L) || in addEmittedDeferredDecl()
375 llvm::GlobalValue::isLinkOnceLinkage(L) || in addEmittedDeferredDecl()
376 llvm::GlobalValue::isWeakLinkage(L)) { in addEmittedDeferredDecl()
846 void setDSOLocal(llvm::GlobalValue *GV) const;
1134 void addUsedGlobal(llvm::GlobalValue *GV);
1137 void addCompilerUsedGlobal(llvm::GlobalValue *GV);
1316 llvm::GlobalValue::LinkageTypes
1320 llvm::GlobalValue::LinkageTypes
[all …]

12345678910>>...20