| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
| H A D | FunctionImportUtils.cpp | 27 cl::list<GlobalValue::GUID> MoveSymbolGUID( 38 SetVector<GlobalValue *> *GlobalsToImport, bool ClearDSOLocalOnDeclarations) in FunctionImportGlobalProcessing() 49 SmallVector<GlobalValue *, 4> Vec; in FunctionImportGlobalProcessing() 62 const GlobalValue *SGV) { in doImportAsDefinition() 67 if (!GlobalsToImport->count(const_cast<GlobalValue *>(SGV))) in doImportAsDefinition() 78 const GlobalValue *SGV, ValueInfo VI) { in shouldPromoteLocalToGlobal() 93 assert((!GlobalsToImport->count(const_cast<GlobalValue *>(SGV)) || in shouldPromoteLocalToGlobal() 113 if (!GlobalValue::isLocalLinkage(Linkage)) { in shouldPromoteLocalToGlobal() 124 const GlobalValue &GV) const { in isNonRenamableLocal() 130 if (Used.count(const_cast<GlobalValue *>(&GV))) in isNonRenamableLocal() [all …]
|
| H A D | SplitModule.cpp | 53 using ClusterMapType = EquivalenceClasses<const GlobalValue *>; 54 using ComdatMembersType = DenseMap<const Comdat *, const GlobalValue *>; 55 using ClusterIDMapType = DenseMap<const GlobalValue *, unsigned>; 72 const GlobalValue *GV, const User *U) { in addNonConstUser() 73 assert((!isa<Constant>(U) || isa<GlobalValue>(U)) && "Bad user"); in addNonConstUser() 76 const GlobalValue *F = I->getParent()->getParent(); in addNonConstUser() 78 } else if (const GlobalValue *GVU = dyn_cast<GlobalValue>(U)) { in addNonConstUser() 87 const GlobalValue *GV, const Value *V) { in addAllGlobalValueUsers() 94 if (isa<Constant>(UU) && !isa<GlobalValue>(UU)) { in addAllGlobalValueUsers() 103 static const GlobalObject *getGVPartitioningRoot(const GlobalValue *GV) { in getGVPartitioningRoot() [all …]
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/ |
| H A D | FunctionImportUtils.h | 35 SetVector<GlobalValue *> *GlobalsToImport; 58 SmallPtrSet<GlobalValue *, 4> Used; 66 bool shouldPromoteLocalToGlobal(const GlobalValue *SGV, ValueInfo VI); 72 bool isNonRenamableLocal(const GlobalValue &GV) const; 82 bool doImportAsDefinition(const GlobalValue *SGV); 86 std::string getPromotedName(const GlobalValue *SGV); 93 void processGlobalForThinLTO(GlobalValue &GV); 99 GlobalValue::LinkageTypes getLinkage(const GlobalValue *SGV, bool DoPromote); 103 DenseSet<GlobalValue::GUID> SymbolsToMove; 108 SetVector<GlobalValue *> *GlobalsToImport, [all …]
|
| H A D | FunctionComparator.h | 36 class GlobalValue; variable 56 struct Config : ValueMapConfig<GlobalValue *> { 63 using ValueNumberMap = ValueMap<GlobalValue *, uint64_t, Config>; 72 uint64_t getNumber(GlobalValue* Global) { in getNumber() 81 void erase(GlobalValue *Global) { in erase() 223 LLVM_ABI int cmpGlobalValues(GlobalValue *L, GlobalValue *R) const;
|
| /freebsd/contrib/llvm-project/llvm/lib/IR/ |
| H A 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() { return getParent()->materialize(this); } in materialize() 53 void GlobalValue::destroyConstantImpl() { in destroyConstantImpl() 57 Value *GlobalValue::handleOperandChangeImpl(Value *From, Value *To) { in handleOperandChangeImpl() 63 void GlobalValue::copyAttributesFrom(const GlobalValue *Src) { in copyAttributesFrom() 76 GlobalValue::GUID 77 GlobalValue::getGUIDAssumingExternalLinkage(StringRef GlobalIdentifier) { in getGUIDAssumingExternalLinkage() 81 void GlobalValue::removeFromParent() { in removeFromParent() [all …]
|
| H A 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() 189 bool ModuleSummaryIndex::isGUIDLive(GlobalValue::GUID GUID) const { in isGUIDLive() 260 const DenseSet<GlobalValue::GUID> &GUIDPreservedSymbols) { in propagateAttributes() 359 !GlobalValue::isInterposableLinkage(S->linkage()); in canImportGlobalVar() 409 GlobalValue::GUID Src; [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Linker/ |
| H A D | LinkModules.cpp | 34 SetVector<GlobalValue *> ValuesToLink; 51 void addLazyFor(GlobalValue &GV, const IRMover::ValueAdder &Add); 56 bool shouldLinkFromSource(bool &LinkFromSrc, const GlobalValue &Dest, 57 const GlobalValue &Src); 77 DenseMap<const Comdat *, std::vector<GlobalValue *>> LazyComdatMembers; 81 GlobalValue *getLinkedToGlobal(const GlobalValue *SrcGV) { in getLinkedToGlobal() 85 if (!SrcGV->hasName() || GlobalValue::isLocalLinkage(SrcGV->getLinkage())) in getLinkedToGlobal() 89 GlobalValue *DGV = DstM.getNamedValue(SrcGV->getName()); in getLinkedToGlobal() 104 void dropReplacedComdat(GlobalValue &GV, 107 bool linkIfNeeded(GlobalValue &GV, SmallVectorImpl<GlobalValue *> &GVToClone); [all …]
|
| H A D | IRMover.cpp | 310 DenseSet<GlobalValue *> ValuesToLink; 311 std::vector<GlobalValue *> Worklist; 312 std::vector<std::pair<GlobalValue *, Value*>> RAUWWorklist; 318 void maybeAdd(GlobalValue *GV) { in maybeAdd() 349 GlobalValue *copyGlobalValueProto(const GlobalValue *SGV, bool ForDefinition); 357 GlobalValue *getLinkedToGlobal(const GlobalValue *SrcGV) { in getLinkedToGlobal() 364 GlobalValue *DGV = DstM.getNamedValue(SrcGV->getName()); in getLinkedToGlobal() 395 bool shouldLink(GlobalValue *DGV, GlobalValue &SGV); 396 Expected<Constant *> linkGlobalValueProto(GlobalValue *GV, 405 Error linkGlobalValueBody(GlobalValue &Dst, GlobalValue &Src); [all …]
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/IPO/ |
| H A D | GlobalDCE.h | 50 SmallPtrSet<GlobalValue*, 32> AliveGlobals; 53 DenseMap<GlobalValue *, SmallPtrSet<GlobalValue *, 4>> GVDependencies; 56 std::unordered_map<Constant *, SmallPtrSet<GlobalValue *, 8>> 60 std::unordered_multimap<Comdat *, GlobalValue *> ComdatMembers; 68 SmallPtrSet<GlobalValue *, 32> VFESafeVTables; 70 void UpdateGVDependencies(GlobalValue &GV); 71 void MarkLive(GlobalValue &GV, 72 SmallVectorImpl<GlobalValue *> *Updates = nullptr); 80 void ComputeDependencies(Value *V, SmallPtrSetImpl<GlobalValue *> &U);
|
| H A D | FunctionImport.h | 85 DenseMap<GlobalValue::GUID, 125 GlobalValue::GUID GUID) { in createImportIDs() 134 getImportIDs(StringRef FromModule, GlobalValue::GUID GUID) { in getImportIDs() 144 std::tuple<StringRef, GlobalValue::GUID, GlobalValueSummary::ImportKind> 151 GlobalValue::GUID GUID = It->first.second; in lookup() 156 std::tuple<StringRef, GlobalValue::GUID, GlobalValueSummary::ImportKind> 169 MapVector<std::pair<StringRef, GlobalValue::GUID>, ImportIDTy> TheTable; 204 GlobalValue::GUID GUID); 210 GlobalValue::GUID GUID); 212 void addGUID(StringRef FromModule, GlobalValue::GUID GUID, in addGUID() [all …]
|
| H A D | Internalize.h | 32 class GlobalValue; variable 49 const std::function<bool(const GlobalValue &)> MustPreserveGV; 54 bool shouldPreserveGV(const GlobalValue &GV); 57 bool maybeInternalize(GlobalValue &GV, 61 void checkComdat(GlobalValue &GV, 66 InternalizePass(std::function<bool(const GlobalValue &)> MustPreserveGV) in InternalizePass() 79 std::function<bool(const GlobalValue &)> MustPreserveGV) { in internalizeModule()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/ |
| H A D | ExtractGV.cpp | 23 static void makeVisible(GlobalValue &GV, bool Delete) { in makeVisible() 26 GV.setLinkage(GlobalValue::ExternalLinkage); in makeVisible() 28 GV.setVisibility(GlobalValue::HiddenVisibility); in makeVisible() 41 case GlobalValue::LinkOnceAnyLinkage: in makeVisible() 42 GV.setLinkage(GlobalValue::WeakAnyLinkage); in makeVisible() 44 case GlobalValue::LinkOnceODRLinkage: in makeVisible() 45 GV.setLinkage(GlobalValue::WeakODRLinkage); in makeVisible() 53 ExtractGVPass::ExtractGVPass(std::vector<GlobalValue *> &GVs, bool deleteS, in ExtractGVPass() 118 Declaration = Function::Create(FTy, GlobalValue::ExternalLinkage, in run() 123 M, Ty, false, GlobalValue::ExternalLinkage, nullptr, GA.getName()); in run() [all …]
|
| H A D | FunctionImport.cpp | 185 extern cl::list<GlobalValue::GUID> MoveSymbolGUID; 221 return GlobalValue::isLocalLinkage(RefSummary->linkage()) && in shouldSkipLocalInAnotherModule() 243 if (GlobalValue::isInterposableLinkage(GVSummary->linkage())) in qualifyCalleeCandidates() 347 GlobalValue::GUID GUID) { in addDefinition() 360 StringRef FromModule, GlobalValue::GUID GUID) { in maybeAddDeclaration() 380 GlobalValue::GUID GUID) const { in getImportType() 396 function_ref<bool(GlobalValue::GUID, const GlobalValueSummary *)> 416 GlobalValue::isInterposableLinkage(GVS->second->linkage()) && in shouldImportGlobal() 482 function_ref<bool(GlobalValue::GUID, const GlobalValueSummary *)> in GlobalsImporter() 510 function_ref<bool(GlobalValue::GUID, const GlobalValueSummary *)> [all …]
|
| H A D | Internalize.cpp | 65 bool operator()(const GlobalValue &GV) { in operator ()() 102 bool InternalizePass::shouldPreserveGV(const GlobalValue &GV) { in shouldPreserveGV() 133 GlobalValue &GV, DenseMap<const Comdat *, ComdatInfo> &ComdatMap) { in maybeInternalize() 164 GV.setVisibility(GlobalValue::DefaultVisibility); in maybeInternalize() 165 GV.setLinkage(GlobalValue::InternalLinkage); in maybeInternalize() 172 GlobalValue &GV, DenseMap<const Comdat *, ComdatInfo> &ComdatMap) { in checkComdat() 186 SmallVector<GlobalValue *, 4> Used; in internalizeModule() 209 for (GlobalValue *V : Used) { in internalizeModule()
|
| H A D | ThinLTOBitcodeWriter.cpp | 49 SetVector<GlobalValue *> &PromoteExtra) { in promoteInternals() 56 GlobalValue *ImportGV = nullptr; in promoteInternals() 76 ExportGV.setLinkage(GlobalValue::ExternalLinkage); in promoteInternals() 77 ExportGV.setVisibility(GlobalValue::HiddenVisibility); in promoteInternals() 81 ImportGV->setVisibility(GlobalValue::HiddenVisibility); in promoteInternals() 193 Function::Create(EmptyFT, GlobalValue::ExternalLinkage, in simplifyExternals() 222 function_ref<bool(const GlobalValue *)> ShouldKeepDefinition) { in filterModule() 223 std::vector<GlobalValue *> V; in filterModule() 224 for (GlobalValue &GV : M->global_values()) in filterModule() 228 for (GlobalValue *GV : V) in filterModule() [all …]
|
| H A D | GlobalDCE.cpp | 62 SmallPtrSetImpl<GlobalValue *> &Deps) { in ComputeDependencies() 66 } else if (auto *GV = dyn_cast<GlobalValue>(V)) { in ComputeDependencies() 71 SmallPtrSetImpl<GlobalValue *> &LocalDeps = Where->second; in ComputeDependencies() 80 void GlobalDCEPass::UpdateGVDependencies(GlobalValue &GV) { in UpdateGVDependencies() 81 SmallPtrSet<GlobalValue *, 8> Deps; in UpdateGVDependencies() 85 for (GlobalValue *GVU : Deps) { in UpdateGVDependencies() 100 void GlobalDCEPass::MarkLive(GlobalValue &GV, in MarkLive() 101 SmallVectorImpl<GlobalValue *> *Updates) { in MarkLive() 311 SmallVector<GlobalValue *, 8> NewLiveGVs{AliveGlobals.begin(), in run() 314 GlobalValue *LGV = NewLiveGVs.pop_back_val(); in run() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/LTO/ |
| H A D | LTO.cpp | 106 const std::map<GlobalValue::GUID, GlobalValue::LinkageTypes> &ResolvedODR, in computeLTOCacheKey() 108 const DenseSet<GlobalValue::GUID> &CfiFunctionDefs, in computeLTOCacheKey() 109 const DenseSet<GlobalValue::GUID> &CfiFunctionDecls) { in computeLTOCacheKey() 189 auto Comp = [&](const std::pair<StringRef, GlobalValue::GUID> &L, in computeLTOCacheKey() 190 const std::pair<StringRef, GlobalValue::GUID> &R) { in computeLTOCacheKey() 219 sizeof(GlobalValue::GUID))); in computeLTOCacheKey() 221 sizeof(GlobalValue::LinkageTypes))); in computeLTOCacheKey() 226 std::set<GlobalValue::GUID> UsedCfiDefs; in computeLTOCacheKey() 227 std::set<GlobalValue::GUID> UsedCfiDecls; in computeLTOCacheKey() 230 std::set<GlobalValue::GUID> UsedTypeIds; in computeLTOCacheKey() [all …]
|
| H A D | ThinLTOCodeGenerator.cpp | 110 return !GlobalValue::isAvailableExternallyLinkage(Linkage) && in getFirstDefinitionForLinker() 111 !GlobalValue::isWeakForLinker(Linkage); in getFirstDefinitionForLinker() 120 return !GlobalValue::isAvailableExternallyLinkage(Linkage); in getFirstDefinitionForLinker() 133 DenseMap<GlobalValue::GUID, const GlobalValueSummary *> &PrevailingCopy) { in computePrevailingCopies() 291 DenseSet<GlobalValue::GUID> &PreservedGUID) { in addUsedSymbolToPreservedGUID() 295 GlobalValue::getGUIDAssumingExternalLinkage(Sym.getIRName())); in addUsedSymbolToPreservedGUID() 303 DenseSet<GlobalValue::GUID> &GUIDs) { in computeGUIDPreservedSymbols() 308 GUIDs.insert(GlobalValue::getGUIDAssumingExternalLinkage( in computeGUIDPreservedSymbols() 309 GlobalValue::getGlobalIdentifier(Sym.getIRName(), in computeGUIDPreservedSymbols() 310 GlobalValue::ExternalLinkage, ""))); in computeGUIDPreservedSymbols() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/ |
| H A D | RISCVConstantPoolValue.h | 24 class GlobalValue; variable 29 const GlobalValue *GV; 32 RISCVConstantPoolValue(Type *Ty, const GlobalValue *GV); 36 enum class RISCVCPKind { ExtSymbol, GlobalValue }; enumerator 42 static RISCVConstantPoolValue *Create(const GlobalValue *GV); 45 bool isGlobalValue() const { return Kind == RISCVCPKind::GlobalValue; } in isGlobalValue() 48 const GlobalValue *getGlobalValue() const { return GV; } in getGlobalValue()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/IR/ |
| H A D | ModuleSummaryIndex.h | 155 const GlobalValue *GV; 180 std::map<GlobalValue::GUID, GlobalValueSummaryInfo>; 197 GlobalValue::GUID getGUID() const { return getRef()->first; } in getGUID() 198 const GlobalValue *getValue() const { in getValue() 252 LLVM_ABI GlobalValue::VisibilityTypes getELFVisibility() const; 511 explicit GVFlags(GlobalValue::LinkageTypes Linkage, 512 GlobalValue::VisibilityTypes Visibility, 530 GlobalValue::GUID OriginalName = 0; 562 GlobalValue::GUID getOriginalName() const { return OriginalName; } 565 void setOriginalName(GlobalValue::GUID Name) { OriginalName = Name; } [all …]
|
| H A D | Mangler.h | 23 class GlobalValue; variable 43 mutable DenseMap<const GlobalValue*, unsigned> AnonGlobalIDs; 49 LLVM_ABI void getNameWithPrefix(raw_ostream &OS, const GlobalValue *GV, 52 const GlobalValue *GV, 65 const GlobalValue *GV, 68 LLVM_ABI void emitLinkerFlagsForUsedCOFF(raw_ostream &OS, const GlobalValue *GV,
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/ |
| H A 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/contrib/llvm-project/llvm/include/llvm/Target/ |
| H A D | TargetLoweringObjectFile.h | 30 class GlobalValue; variable 145 const GlobalValue *GV, 171 virtual const MCExpr *getTTypeGlobalReference(const GlobalValue *GV, 179 MCSymbol *getSymbolWithGlobalValueBase(const GlobalValue *GV, 184 virtual MCSymbol *getCFIPersonalitySymbol(const GlobalValue *GV, 211 const GlobalValue *LHS, const GlobalValue *RHS, int64_t Addend, in lowerRelativeReference() 252 virtual const MCExpr *getIndirectSymViaGOTPCRel(const GlobalValue *GV, in getIndirectSymViaGOTPCRel() 293 virtual MCSymbol *getTargetSymbol(const GlobalValue *GV, in getTargetSymbol() 301 virtual MCSymbol *getFunctionEntryPointSymbol(const GlobalValue *Func, in getFunctionEntryPointSymbol()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/LTO/ |
| H A D | LTO.h | 53 function_ref<bool(GlobalValue::GUID, const GlobalValueSummary *)> 55 function_ref<void(StringRef, GlobalValue::GUID, GlobalValue::LinkageTypes)> 57 const DenseSet<GlobalValue::GUID> &GUIDPreservedSymbols); 65 function_ref<bool(GlobalValue::GUID, const GlobalValueSummary *)> 74 const std::map<GlobalValue::GUID, GlobalValue::LinkageTypes> &ResolvedODR, 76 const DenseSet<GlobalValue::GUID> &CfiFunctionDefs = {}, 77 const DenseSet<GlobalValue::GUID> &CfiFunctionDecls = {}); 238 const std::map<GlobalValue::GUID, GlobalValue::LinkageTypes> &ResolvedODR, 450 std::vector<GlobalValue *> Keep; 467 DenseMap<GlobalValue::GUID, StringRef> PrevailingModuleForGUID; [all …]
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/ |
| H A D | TargetLoweringObjectFileImpl.h | 24 class GlobalValue; variable 103 const MCExpr *getTTypeGlobalReference(const GlobalValue *GV, 110 MCSymbol *getCFIPersonalitySymbol(const GlobalValue *GV, 159 const MCExpr *getTTypeGlobalReference(const GlobalValue *GV, 166 MCSymbol *getCFIPersonalitySymbol(const GlobalValue *GV, 171 const MCExpr *getIndirectSymViaGOTPCRel(const GlobalValue *GV, 177 void getNameWithPrefix(SmallVectorImpl<char> &OutName, const GlobalValue *GV, 197 void getNameWithPrefix(SmallVectorImpl<char> &OutName, const GlobalValue *GV, 216 const MCExpr *lowerRelativeReference(const GlobalValue *LHS, 217 const GlobalValue *RHS, int64_t Addend, [all …]
|