| /freebsd-12-stable/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
| D | FunctionImportUtils.cpp | 22 const GlobalValue *SGV) { in doImportAsDefinition() 27 if (!GlobalsToImport->count(const_cast<GlobalValue *>(SGV))) in doImportAsDefinition() 38 const GlobalValue *SGV, ValueInfo VI) { in shouldPromoteLocalToGlobal() 46 assert((!GlobalsToImport->count(const_cast<GlobalValue *>(SGV)) || in shouldPromoteLocalToGlobal() 66 if (!GlobalValue::isLocalLinkage(Linkage)) { in shouldPromoteLocalToGlobal() 77 const GlobalValue &GV) const { in isNonRenamableLocal() 83 if (Used.count(const_cast<GlobalValue *>(&GV))) in isNonRenamableLocal() 90 FunctionImportGlobalProcessing::getPromotedName(const GlobalValue *SGV) { in getPromotedName() 100 GlobalValue::LinkageTypes 101 FunctionImportGlobalProcessing::getLinkage(const GlobalValue *SGV, in getLinkage() [all …]
|
| D | SplitModule.cpp | 55 using ClusterMapType = EquivalenceClasses<const GlobalValue *>; 56 using ComdatMembersType = DenseMap<const Comdat *, const GlobalValue *>; 57 using ClusterIDMapType = DenseMap<const GlobalValue *, unsigned>; 62 const GlobalValue *GV, const User *U) { in addNonConstUser() 63 assert((!isa<Constant>(U) || isa<GlobalValue>(U)) && "Bad user"); in addNonConstUser() 66 const GlobalValue *F = I->getParent()->getParent(); in addNonConstUser() 70 GVtoClusterMap.unionSets(GV, cast<GlobalValue>(U)); in addNonConstUser() 78 const GlobalValue *GV, const Value *V) { in addAllGlobalValueUsers() 85 if (isa<Constant>(UU) && !isa<GlobalValue>(UU)) { in addAllGlobalValueUsers() 107 auto recordGVSet = [&GVtoClusterMap, &ComdatMembers](GlobalValue &GV) { in findPartitions() [all …]
|
| /freebsd-12-stable/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/ |
| D | FunctionImportUtils.h | 34 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 …]
|
| D | FunctionComparator.h | 35 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-12-stable/contrib/llvm-project/llvm/lib/Linker/ |
| D | LinkModules.cpp | 33 SetVector<GlobalValue *> ValuesToLink; 50 void addLazyFor(GlobalValue &GV, const IRMover::ValueAdder &Add); 55 bool shouldLinkFromSource(bool &LinkFromSrc, const GlobalValue &Dest, 56 const GlobalValue &Src); 76 DenseMap<const Comdat *, std::vector<GlobalValue *>> LazyComdatMembers; 80 GlobalValue *getLinkedToGlobal(const GlobalValue *SrcGV) { in getLinkedToGlobal() 84 if (!SrcGV->hasName() || GlobalValue::isLocalLinkage(SrcGV->getLinkage())) in getLinkedToGlobal() 88 GlobalValue *DGV = DstM.getNamedValue(SrcGV->getName()); in getLinkedToGlobal() 103 void dropReplacedComdat(GlobalValue &GV, 106 bool linkIfNeeded(GlobalValue &GV); [all …]
|
| D | IRMover.cpp | 383 std::function<void(GlobalValue &, IRMover::ValueAdder)> AddLazyFor; 399 DenseSet<GlobalValue *> ValuesToLink; 400 std::vector<GlobalValue *> Worklist; 401 std::vector<std::pair<GlobalValue *, Value*>> RAUWWorklist; 403 void maybeAdd(GlobalValue *GV) { in maybeAdd() 440 GlobalValue *copyGlobalValueProto(const GlobalValue *SGV, bool ForDefinition); 448 GlobalValue *getLinkedToGlobal(const GlobalValue *SrcGV) { in getLinkedToGlobal() 455 GlobalValue *DGV = DstM.getNamedValue(SrcGV->getName()); in getLinkedToGlobal() 486 bool shouldLink(GlobalValue *DGV, GlobalValue &SGV); 487 Expected<Constant *> linkGlobalValueProto(GlobalValue *GV, [all …]
|
| /freebsd-12-stable/contrib/llvm-project/llvm/lib/LTO/ |
| D | LTO.cpp | 82 const std::map<GlobalValue::GUID, GlobalValue::LinkageTypes> &ResolvedODR, in computeLTOCacheKey() 84 const std::set<GlobalValue::GUID> &CfiFunctionDefs, in computeLTOCacheKey() 85 const std::set<GlobalValue::GUID> &CfiFunctionDecls) { in computeLTOCacheKey() 187 sizeof(GlobalValue::GUID))); in computeLTOCacheKey() 189 sizeof(GlobalValue::LinkageTypes))); in computeLTOCacheKey() 194 std::set<GlobalValue::GUID> UsedCfiDefs; in computeLTOCacheKey() 195 std::set<GlobalValue::GUID> UsedCfiDecls; in computeLTOCacheKey() 198 std::set<GlobalValue::GUID> UsedTypeIds; in computeLTOCacheKey() 200 auto AddUsedCfiGlobal = [&](GlobalValue::GUID ValueGUID) { in computeLTOCacheKey() 241 GlobalValue::LinkageTypes Linkage = GS.second->linkage(); in computeLTOCacheKey() [all …]
|
| D | ThinLTOCodeGenerator.cpp | 115 return !GlobalValue::isAvailableExternallyLinkage(Linkage) && in getFirstDefinitionForLinker() 116 !GlobalValue::isWeakForLinker(Linkage); in getFirstDefinitionForLinker() 125 return !GlobalValue::isAvailableExternallyLinkage(Linkage); in getFirstDefinitionForLinker() 138 DenseMap<GlobalValue::GUID, const GlobalValueSummary *> &PrevailingCopy) { in computePrevailingCopies() 332 DenseSet<GlobalValue::GUID> &PreservedGUID) { in addUsedSymbolToPreservedGUID() 335 PreservedGUID.insert(GlobalValue::getGUID(Sym.getIRName())); in addUsedSymbolToPreservedGUID() 343 DenseSet<GlobalValue::GUID> &GUIDs) { in computeGUIDPreservedSymbols() 348 GUIDs.insert(GlobalValue::getGUID(GlobalValue::getGlobalIdentifier( in computeGUIDPreservedSymbols() 349 Sym.getIRName(), GlobalValue::ExternalLinkage, ""))); in computeGUIDPreservedSymbols() 353 static DenseSet<GlobalValue::GUID> [all …]
|
| /freebsd-12-stable/contrib/llvm-project/llvm/include/llvm/Transforms/IPO/ |
| D | GlobalDCE.h | 34 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);
|
| D | Internalize.h | 48 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,
|
| D | FunctionImport.h | 37 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-12-stable/contrib/llvm-project/llvm/lib/IR/ |
| D | Globals.cpp | 36 static_assert(sizeof(GlobalValue) == 41 static_assert(sizeof(GlobalObject) == sizeof(GlobalValue) + sizeof(void *), 44 bool GlobalValue::isMaterializable() const { in isMaterializable() 49 Error GlobalValue::materialize() { in materialize() 55 void GlobalValue::destroyConstantImpl() { in destroyConstantImpl() 59 Value *GlobalValue::handleOperandChangeImpl(Value *From, Value *To) { in handleOperandChangeImpl() 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() [all …]
|
| D | ModuleSummaryIndex.cpp | 43 GlobalValue::VisibilityTypes ValueInfo::getELFVisibility() const { in getELFVisibility() 46 if (S.getVisibility() == GlobalValue::HiddenVisibility) in getELFVisibility() 47 return GlobalValue::HiddenVisibility; in getELFVisibility() 48 if (S.getVisibility() == GlobalValue::ProtectedVisibility) in getELFVisibility() 51 return HasProtected ? GlobalValue::ProtectedVisibility in getELFVisibility() 52 : GlobalValue::DefaultVisibility; in getELFVisibility() 175 bool ModuleSummaryIndex::isGUIDLive(GlobalValue::GUID GUID) const { in isGUIDLive() 246 const DenseSet<GlobalValue::GUID> &GUIDPreservedSymbols) { in propagateAttributes() 341 return !GlobalValue::isInterposableLinkage(S->linkage()) && in canImportGlobalVar() 380 GlobalValue::GUID Src; [all …]
|
| /freebsd-12-stable/contrib/llvm-project/llvm/lib/Transforms/IPO/ |
| D | ExtractGV.cpp | 25 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() 138 Declaration = Function::Create(FTy, GlobalValue::ExternalLinkage, in runOnModule() [all …]
|
| D | FunctionImport.cpp | 179 GlobalValue::GUID GUID) { in selectCallee() 207 if (GlobalValue::isInterposableLinkage(GVSummary->linkage())) { in selectCallee() 225 if (GlobalValue::isLocalLinkage(Summary->linkage()) && in selectCallee() 299 GlobalValue::isInterposableLinkage(GVS->second->linkage())) in shouldImportGlobal() 327 return GlobalValue::isLocalLinkage(RefSummary->linkage()) && in computeImportForReferencedGlobals() 640 GlobalValue::GUID G) { in isGlobalVarSummary() 663 DenseSet<GlobalValue::GUID> FlattenedImports; in checkVariableImport() 844 const DenseSet<GlobalValue::GUID> &GUIDPreservedSymbols, in computeDeadSymbols() 845 function_ref<PrevailingType(GlobalValue::GUID)> isPrevailing) { in computeDeadSymbols() 904 if (S->linkage() == GlobalValue::AvailableExternallyLinkage || in computeDeadSymbols() [all …]
|
| D | Internalize.cpp | 68 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 …]
|
| D | GlobalDCE.cpp | 103 SmallPtrSetImpl<GlobalValue *> &Deps) { in ComputeDependencies() 107 } else if (auto *GV = dyn_cast<GlobalValue>(V)) { in ComputeDependencies() 116 SmallPtrSetImpl<GlobalValue *> &LocalDeps = ConstantDependenciesCache[CE]; 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() [all …]
|
| /freebsd-12-stable/contrib/llvm-project/llvm/include/llvm/CodeGen/ |
| D | TargetLoweringObjectFileImpl.h | 23 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, 147 const MCExpr *getIndirectSymViaGOTPCRel(const GlobalValue *GV, 153 void getNameWithPrefix(SmallVectorImpl<char> &OutName, const GlobalValue *GV, 171 void getNameWithPrefix(SmallVectorImpl<char> &OutName, const GlobalValue *GV, [all …]
|
| /freebsd-12-stable/contrib/llvm-project/llvm/include/llvm/IR/ |
| D | ModuleSummaryIndex.h | 139 const GlobalValue *GV; 164 std::map<GlobalValue::GUID, GlobalValueSummaryInfo>; 181 GlobalValue::GUID getGUID() const { return getRef()->first; } in getGUID() 182 const GlobalValue *getValue() const { in getValue() 231 GlobalValue::VisibilityTypes getELFVisibility() const; 336 explicit GVFlags(GlobalValue::LinkageTypes Linkage, 337 GlobalValue::VisibilityTypes Visibility, 354 GlobalValue::GUID OriginalName = 0; 383 GlobalValue::GUID getOriginalName() const { return OriginalName; } 386 void setOriginalName(GlobalValue::GUID Name) { OriginalName = Name; } [all …]
|
| D | Mangler.h | 21 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-12-stable/contrib/llvm-project/llvm/lib/Target/NVPTX/ |
| D | NVPTXUtilities.cpp | 34 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-12-stable/contrib/llvm-project/llvm/include/llvm/Target/ |
| D | TargetLoweringObjectFile.h | 26 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-12-stable/contrib/llvm-project/llvm/include/llvm/LTO/ |
| D | LTO.h | 47 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-12-stable/contrib/llvm-project/llvm/lib/Target/SystemZ/ |
| D | SystemZConstantPoolValue.h | 17 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-12-stable/contrib/llvm-project/clang/lib/CodeGen/ |
| D | CodeGenModule.h | 45 class GlobalValue; variable 342 llvm::SmallPtrSet<llvm::GlobalValue*, 10> WeakRefReferences; 371 llvm::SmallVector<std::pair<llvm::GlobalValue *, llvm::Constant *>, 8> 439 llvm::GlobalValue *> StaticExternCMap; 655 llvm::GlobalValue::LinkageTypes Linkage); 802 void setGlobalVisibility(llvm::GlobalValue *GV, const NamedDecl *D) const; 804 void setDSOLocal(llvm::GlobalValue *GV) const; 806 void setDLLImportDLLExport(llvm::GlobalValue *GV, GlobalDecl D) const; 807 void setDLLImportDLLExport(llvm::GlobalValue *GV, const NamedDecl *D) const; 810 void setGVProperties(llvm::GlobalValue *GV, GlobalDecl GD) const; [all …]
|