Home
last modified time | relevance | path

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

12345678910>>...17

/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DFunctionImportUtils.cpp22 const GlobalValue *SGV) { in doImportAsDefinition()
77 const GlobalValue &GV) const { in isNonRenamableLocal()
100 GlobalValue::LinkageTypes
118 case GlobalValue::LinkOnceODRLinkage: in getLinkage()
119 case GlobalValue::ExternalLinkage: in getLinkage()
138 case GlobalValue::WeakAnyLinkage: in getLinkage()
148 case GlobalValue::WeakODRLinkage: in getLinkage()
158 case GlobalValue::AppendingLinkage: in getLinkage()
166 case GlobalValue::InternalLinkage: in getLinkage()
167 case GlobalValue::PrivateLinkage: in getLinkage()
[all …]
H A DSplitModule.cpp55 using ClusterMapType = EquivalenceClasses<const GlobalValue *>;
57 using ClusterIDMapType = DenseMap<const GlobalValue *, unsigned>;
62 const GlobalValue *GV, const User *U) { in addNonConstUser()
66 const GlobalValue *F = I->getParent()->getParent(); in addNonConstUser()
70 GVtoClusterMap.unionSets(GV, cast<GlobalValue>(U)); in addNonConstUser()
85 if (isa<Constant>(UU) && !isa<GlobalValue>(UU)) { in addAllGlobalValueUsers()
171 SmallPtrSet<const GlobalValue *, 32> Visited; in findPartitions()
214 static void externalize(GlobalValue *GV) { in externalize()
216 GV->setLinkage(GlobalValue::ExternalLinkage); in externalize()
217 GV->setVisibility(GlobalValue::HiddenVisibility); in externalize()
[all …]
/freebsd-13.1/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()
226 int cmpGlobalValues(GlobalValue *L, GlobalValue *R) const;
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Transforms/IPO/
H A DGlobalDCE.h34 SmallPtrSet<GlobalValue*, 32> AliveGlobals;
37 DenseMap<GlobalValue *, SmallPtrSet<GlobalValue *, 4>> GVDependencies;
40 std::unordered_map<Constant *, SmallPtrSet<GlobalValue *, 8>>
44 std::unordered_multimap<Comdat *, GlobalValue *> ComdatMembers;
52 SmallPtrSet<GlobalValue *, 32> VFESafeVTables;
54 void UpdateGVDependencies(GlobalValue &GV);
55 void MarkLive(GlobalValue &GV,
56 SmallVectorImpl<GlobalValue *> *Updates = nullptr);
57 bool RemoveUnusedGlobalValue(GlobalValue &GV);
65 void ComputeDependencies(Value *V, SmallPtrSetImpl<GlobalValue *> &U);
H A DInternalize.h48 const std::function<bool(const GlobalValue &)> MustPreserveGV;
53 bool shouldPreserveGV(const GlobalValue &GV);
56 bool maybeInternalize(GlobalValue &GV,
60 void checkComdat(GlobalValue &GV,
65 InternalizePass(std::function<bool(const GlobalValue &)> MustPreserveGV) in InternalizePass()
81 std::function<bool(const GlobalValue &)> MustPreserveGV,
H A DFunctionImport.h37 using FunctionsToImportTy = std::unordered_set<GlobalValue::GUID>;
91 DenseMap<GlobalValue::GUID,
181 const DenseSet<GlobalValue::GUID> &GUIDPreservedSymbols,
182 function_ref<PrevailingType(GlobalValue::GUID)> isPrevailing);
188 const DenseSet<GlobalValue::GUID> &GUIDPreservedSymbols,
189 function_ref<PrevailingType(GlobalValue::GUID)> isPrevailing,
194 bool convertToDeclaration(GlobalValue &GV);
/freebsd-13.1/contrib/llvm-project/llvm/lib/Linker/
H A DLinkModules.cpp33 SetVector<GlobalValue *> ValuesToLink;
80 GlobalValue *getLinkedToGlobal(const GlobalValue *SrcGV) { in getLinkedToGlobal()
103 void dropReplacedComdat(GlobalValue &GV,
106 bool linkIfNeeded(GlobalValue &GV);
119 static GlobalValue::VisibilityTypes
122 if (A == GlobalValue::HiddenVisibility || B == GlobalValue::HiddenVisibility) in getMinVisibility()
123 return GlobalValue::HiddenVisibility; in getMinVisibility()
127 return GlobalValue::DefaultVisibility; in getMinVisibility()
382 GlobalValue::UnnamedAddr UnnamedAddr = GlobalValue::getMinUnnamedAddr( in linkIfNeeded()
457 GlobalValue *Declaration; in dropReplacedComdat()
[all …]
H A DIRMover.cpp448 GlobalValue *getLinkedToGlobal(const GlobalValue *SrcGV) { in getLinkedToGlobal()
486 bool shouldLink(GlobalValue *DGV, GlobalValue &SGV);
496 Error linkGlobalValueBody(GlobalValue &Dst, GlobalValue &Src);
597 GlobalValue *New = dyn_cast<GlobalValue>(*NewProto); in materialize()
680 GlobalValue *
698 GlobalValue *IRLinker::copyGlobalValueProto(const GlobalValue *SGV, in copyGlobalValueProto()
700 GlobalValue *NewGV; in copyGlobalValueProto()
964 bool IRLinker::shouldLink(GlobalValue *DGV, GlobalValue &SGV) { in shouldLink()
1010 GlobalValue *NewGV; in linkGlobalValueProto()
1117 Error IRLinker::linkGlobalValueBody(GlobalValue &Dst, GlobalValue &Src) { in linkGlobalValueBody()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/LTO/
H A DLTO.cpp82 const std::map<GlobalValue::GUID, GlobalValue::LinkageTypes> &ResolvedODR, in computeLTOCacheKey()
326 function_ref<void(StringRef, GlobalValue::GUID, GlobalValue::LinkageTypes)> in thinLTOResolvePrevailingGUID()
767 if (GlobalValue *GV = Msym.dyn_cast<GlobalValue *>()) { in addRegularLTO()
901 auto GUID = GlobalValue::getGUID(GlobalValue::getGlobalIdentifier( in addThinLTO()
1005 GlobalValue::GUID GUID = GlobalValue::getGUID( in run()
1113 GlobalValue *GV = in runRegularLTO()
1198 GlobalValue::getGUID(GlobalValue::dropLLVMManglingEscape(Name))); in InProcessThinBackend()
1201 GlobalValue::getGUID(GlobalValue::dropLLVMManglingEscape(Name))); in InProcessThinBackend()
1256 const std::map<GlobalValue::GUID, GlobalValue::LinkageTypes> in start()
1482 GlobalValue::getGUID(GlobalValue::dropLLVMManglingEscape(Def))); in runThinLTO()
[all …]
H A DThinLTOCodeGenerator.cpp116 !GlobalValue::isWeakForLinker(Linkage); in getFirstDefinitionForLinker()
348 GUIDs.insert(GlobalValue::getGUID(GlobalValue::getGlobalIdentifier( in computeGUIDPreservedSymbols()
353 static DenseSet<GlobalValue::GUID>
399 const std::map<GlobalValue::GUID, GlobalValue::LinkageTypes> &ResolvedODR, in ModuleCacheEntry()
560 StringMap<std::map<GlobalValue::GUID, GlobalValue::LinkageTypes>> in resolvePrevailingInIndex()
721 auto isPrevailing = [&](GlobalValue::GUID G) { in computeDeadSymbolsInIndex()
761 StringMap<std::map<GlobalValue::GUID, GlobalValue::LinkageTypes>> ResolvedODR; in promote()
926 StringMap<std::map<GlobalValue::GUID, GlobalValue::LinkageTypes>> ResolvedODR; in internalize()
1063 DenseSet<GlobalValue::GUID> GUIDPreservedSymbols; in run()
1091 std::set<GlobalValue::GUID> ExportedGUIDs; in run()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/IR/
H A DGlobals.cpp36 static_assert(sizeof(GlobalValue) ==
44 bool GlobalValue::isMaterializable() const { in isMaterializable()
49 Error GlobalValue::materialize() { in materialize()
55 void GlobalValue::destroyConstantImpl() { in destroyConstantImpl()
65 void GlobalValue::copyAttributesFrom(const GlobalValue *Src) { in copyAttributesFrom()
74 void GlobalValue::removeFromParent() { in removeFromParent()
86 void GlobalValue::eraseFromParent() { in eraseFromParent()
98 bool GlobalValue::isInterposable() const { in isInterposable()
128 GlobalValue::copyAttributesFrom(Src); in copyAttributesFrom()
162 StringRef GlobalValue::getSection() const { in getSection()
[all …]
H A DModuleSummaryIndex.cpp47 return GlobalValue::HiddenVisibility; in getELFVisibility()
380 GlobalValue::GUID Src;
381 GlobalValue::GUID Dst;
420 case GlobalValue::ExternalLinkage: in linkageToString()
428 case GlobalValue::WeakAnyLinkage: in linkageToString()
430 case GlobalValue::WeakODRLinkage: in linkageToString()
432 case GlobalValue::AppendingLinkage: in linkageToString()
434 case GlobalValue::InternalLinkage: in linkageToString()
436 case GlobalValue::PrivateLinkage: in linkageToString()
440 case GlobalValue::CommonLinkage: in linkageToString()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DExtractGV.cpp25 static void makeVisible(GlobalValue &GV, bool Delete) { in makeVisible()
28 GV.setLinkage(GlobalValue::ExternalLinkage); in makeVisible()
30 GV.setVisibility(GlobalValue::HiddenVisibility); in makeVisible()
43 case GlobalValue::LinkOnceAnyLinkage: in makeVisible()
44 GV.setLinkage(GlobalValue::WeakAnyLinkage); in makeVisible()
46 case GlobalValue::LinkOnceODRLinkage: in makeVisible()
47 GV.setLinkage(GlobalValue::WeakODRLinkage); in makeVisible()
55 SetVector<GlobalValue *> Named;
64 explicit GVExtractorPass(std::vector<GlobalValue*> &GVs, in GVExtractorPass()
144 new GlobalVariable(M, Ty, false, GlobalValue::ExternalLinkage, in runOnModule()
[all …]
H A DInternalize.cpp68 bool operator()(const GlobalValue &GV) { in operator ()()
91 bool InternalizePass::shouldPreserveGV(const GlobalValue &GV) { in shouldPreserveGV()
122 GlobalValue &GV, DenseMap<const Comdat *, ComdatInfo> &ComdatMap) { in maybeInternalize()
154 GV.setVisibility(GlobalValue::DefaultVisibility); in maybeInternalize()
155 GV.setLinkage(GlobalValue::InternalLinkage); in maybeInternalize()
162 GlobalValue &GV, DenseMap<const Comdat *, ComdatInfo> &ComdatMap) { in checkComdat()
177 SmallVector<GlobalValue *, 4> Used; in internalizeModule()
200 for (GlobalValue *V : Used) { in internalizeModule()
278 std::function<bool(const GlobalValue &)> MustPreserveGV;
285 InternalizeLegacyPass(std::function<bool(const GlobalValue &)> MustPreserveGV) in InternalizeLegacyPass()
[all …]
H A DFunctionImport.cpp179 GlobalValue::GUID GUID) { in selectCallee()
640 GlobalValue::GUID G) { in isGlobalVarSummary()
663 DenseSet<GlobalValue::GUID> FlattenedImports; in checkVariableImport()
1008 bool llvm::convertToDeclaration(GlobalValue &GV) { in convertToDeclaration()
1017 V->setLinkage(GlobalValue::ExternalLinkage); in convertToDeclaration()
1021 GlobalValue *NewGV; in convertToDeclaration()
1045 auto updateLinkage = [&](GlobalValue &GV) { in thinLTOResolvePrevailingInModule()
1055 GlobalValue::isLocalLinkage(NewLinkage) || in thinLTOResolvePrevailingInModule()
1132 OrigName, GlobalValue::InternalLinkage, in thinLTOInternalizeModule()
1176 GV.setLinkage(GlobalValue::InternalLinkage); in internalizeGVsAfterImport()
[all …]
H A DGlobalDCE.cpp103 SmallPtrSetImpl<GlobalValue *> &Deps) { in ComputeDependencies()
107 } else if (auto *GV = dyn_cast<GlobalValue>(V)) { in ComputeDependencies()
124 void GlobalDCEPass::UpdateGVDependencies(GlobalValue &GV) { in UpdateGVDependencies()
125 SmallPtrSet<GlobalValue *, 8> Deps; in UpdateGVDependencies()
129 for (GlobalValue *GVU : Deps) { in UpdateGVDependencies()
144 void GlobalDCEPass::MarkLive(GlobalValue &GV, in MarkLive()
145 SmallVectorImpl<GlobalValue *> *Updates) { in MarkLive()
353 SmallVector<GlobalValue *, 8> NewLiveGVs{AliveGlobals.begin(), in run()
356 GlobalValue *LGV = NewLiveGVs.pop_back_val(); in run()
405 auto EraseUnusedGlobalValue = [&](GlobalValue *GV) { in run()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DTargetLoweringObjectFileImpl.h23 class GlobalValue; variable
87 const MCExpr *getTTypeGlobalReference(const GlobalValue *GV,
94 MCSymbol *getCFIPersonalitySymbol(const GlobalValue *GV,
104 const MCExpr *lowerRelativeReference(const GlobalValue *LHS,
105 const GlobalValue *RHS,
135 const MCExpr *getTTypeGlobalReference(const GlobalValue *GV,
142 MCSymbol *getCFIPersonalitySymbol(const GlobalValue *GV,
185 const MCExpr *lowerRelativeReference(const GlobalValue *LHS,
186 const GlobalValue *RHS,
221 const MCExpr *lowerRelativeReference(const GlobalValue *LHS,
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/IR/
H A DModuleSummaryIndex.h139 const GlobalValue *GV;
182 const GlobalValue *getValue() const { in getValue()
354 GlobalValue::GUID OriginalName = 0;
402 GlobalValue::LinkageTypes linkage() const {
493 GlobalValue::GUID getAliaseeGUID() const {
530 GlobalValue::GUID GUID;
618 GlobalValue::DefaultVisibility,
623 std::vector<GlobalValue::GUID>(),
768 void addTypeTest(GlobalValue::GUID Guid) {
1050 std::map<GlobalValue::GUID, GlobalValue::GUID> OidGuidMap;
[all …]
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,
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/NVPTX/
H A DNVPTXUtilities.cpp34 typedef std::map<const GlobalValue *, key_val_pair_t> global_val_annot_t;
72 static void cacheAnnotationFromMD(const Module *m, const GlobalValue *gv) { in cacheAnnotationFromMD()
81 GlobalValue *entity = in cacheAnnotationFromMD()
82 mdconst::dyn_extract_or_null<GlobalValue>(elem->getOperand(0)); in cacheAnnotationFromMD()
105 bool findOneNVVMAnnotation(const GlobalValue *gv, const std::string &prop, in findOneNVVMAnnotation()
119 bool findAllNVVMAnnotation(const GlobalValue *gv, const std::string &prop, in findAllNVVMAnnotation()
134 if (const GlobalValue *gv = dyn_cast<GlobalValue>(&val)) { in isTexture()
145 if (const GlobalValue *gv = dyn_cast<GlobalValue>(&val)) { in isSurface()
158 if (const GlobalValue *gv = dyn_cast<GlobalValue>(&val)) { in isSampler()
217 if(const GlobalValue *gv = dyn_cast<GlobalValue>(&val)) { in isManaged()
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Target/
H A DTargetLoweringObjectFile.h26 class GlobalValue; variable
127 const GlobalValue *GV,
149 virtual const MCExpr *getTTypeGlobalReference(const GlobalValue *GV,
157 MCSymbol *getSymbolWithGlobalValueBase(const GlobalValue *GV,
162 virtual MCSymbol *getCFIPersonalitySymbol(const GlobalValue *GV,
188 virtual const MCExpr *lowerRelativeReference(const GlobalValue *LHS, in lowerRelativeReference()
189 const GlobalValue *RHS, in lowerRelativeReference()
223 virtual const MCExpr *getIndirectSymViaGOTPCRel(const GlobalValue *GV, in getIndirectSymViaGOTPCRel()
264 virtual MCSymbol *getTargetSymbol(const GlobalValue *GV, in getTargetSymbol()
272 virtual MCSymbol *getFunctionEntryPointSymbol(const GlobalValue *Func, in getFunctionEntryPointSymbol()
/freebsd-13.1/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-13.1/contrib/llvm-project/llvm/include/llvm/LTO/
H A DLTO.h47 function_ref<bool(GlobalValue::GUID, const GlobalValueSummary *)>
49 function_ref<void(StringRef, GlobalValue::GUID, GlobalValue::LinkageTypes)>
51 const DenseSet<GlobalValue::GUID> &GUIDPreservedSymbols);
59 function_ref<bool(GlobalValue::GUID, const GlobalValueSummary *)>
70 const std::map<GlobalValue::GUID, GlobalValue::LinkageTypes> &ResolvedODR,
72 const std::set<GlobalValue::GUID> &CfiFunctionDefs = {},
73 const std::set<GlobalValue::GUID> &CfiFunctionDecls = {});
333 std::vector<GlobalValue *> Keep;
350 DenseMap<GlobalValue::GUID, StringRef> PrevailingModuleForGUID;
435 const DenseSet<GlobalValue::GUID> &GUIDPreservedSymbols);
[all …]
/freebsd-13.1/contrib/llvm-project/clang/lib/CodeGen/
H A DCodeGenModule.h45 class GlobalValue; variable
342 llvm::SmallPtrSet<llvm::GlobalValue*, 10> WeakRefReferences;
439 llvm::GlobalValue *> StaticExternCMap;
804 void setDSOLocal(llvm::GlobalValue *GV) const;
1072 void addUsedGlobal(llvm::GlobalValue *GV);
1075 void addCompilerUsedGlobal(llvm::GlobalValue *GV);
1078 void addUsedOrCompilerUsedGlobal(llvm::GlobalValue *GV);
1263 llvm::GlobalValue::LinkageTypes
1268 llvm::GlobalValue::LinkageTypes
1293 llvm::Constant *EmitAnnotateAttr(llvm::GlobalValue *GV,
[all …]

12345678910>>...17