/openbsd-current/gnu/llvm/llvm/include/llvm/Transforms/Utils/ |
H A D | FunctionImportUtils.h | 23 /// Class to handle necessary GlobalValue changes required by ThinLTO 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 *SG [all...] |
H A D | FunctionComparator.h | 35 class GlobalValue; 55 struct Config : ValueMapConfig<GlobalValue *> { 59 // Each GlobalValue is mapped to an identifier. The Config ensures when RAUW 62 using ValueNumberMap = ValueMap<GlobalValue *, uint64_t, Config>; 71 uint64_t getNumber(GlobalValue* Global) { 80 void erase(GlobalValue *Global) { 226 int cmpGlobalValues(GlobalValue *L, GlobalValue *R) const;
|
/openbsd-current/gnu/llvm/llvm/include/llvm/Transforms/IPO/ |
H A D | GlobalDCE.h | 22 #include "llvm/IR/GlobalValue.h" 41 SmallPtrSet<GlobalValue*, 32> AliveGlobals; 44 DenseMap<GlobalValue *, SmallPtrSet<GlobalValue *, 4>> GVDependencies; 47 std::unordered_map<Constant *, SmallPtrSet<GlobalValue *, 8>> 51 std::unordered_multimap<Comdat *, GlobalValue *> ComdatMembers; 59 SmallPtrSet<GlobalValue *, 32> VFESafeVTables; 61 void UpdateGVDependencies(GlobalValue &GV); 62 void MarkLive(GlobalValue &GV, 63 SmallVectorImpl<GlobalValue *> *Update [all...] |
H A D | ExtractGV.h | 19 SetVector<GlobalValue *> Named; 24 ExtractGVPass(std::vector<GlobalValue *> &GVs, bool deleteS = true,
|
H A D | Internalize.h | 47 const std::function<bool(const GlobalValue &)> MustPreserveGV; 52 bool shouldPreserveGV(const GlobalValue &GV); 55 bool maybeInternalize(GlobalValue &GV, 59 void checkComdat(GlobalValue &GV, 64 InternalizePass(std::function<bool(const GlobalValue &)> MustPreserveGV) 80 std::function<bool(const GlobalValue &)> MustPreserveGV,
|
/openbsd-current/gnu/llvm/llvm/tools/llvm-reduce/deltas/ |
H A D | ReduceGlobalValues.cpp | 15 #include "llvm/IR/GlobalValue.h" 19 static bool shouldReduceDSOLocal(GlobalValue &GV) { 23 static bool shouldReduceVisibility(GlobalValue &GV) { 24 return GV.getVisibility() != GlobalValue::VisibilityTypes::DefaultVisibility; 27 static bool shouldReduceUnnamedAddress(GlobalValue &GV) { 28 return GV.getUnnamedAddr() != GlobalValue::UnnamedAddr::None; 31 static bool shouldReduceDLLStorageClass(GlobalValue &GV) { 33 GlobalValue::DLLStorageClassTypes::DefaultStorageClass; 36 static bool shouldReduceThreadLocal(GlobalValue &GV) { 46 GV.setVisibility(GlobalValue [all...] |
H A D | ReduceGlobalVarInitializers.cpp | 16 #include "llvm/IR/GlobalValue.h" 26 GV.setLinkage(GlobalValue::LinkageTypes::ExternalLinkage);
|
/openbsd-current/gnu/llvm/llvm/include/llvm/IR/ |
H A D | Mangler.h | 21 class GlobalValue; 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 D | GVMaterializer.h | 25 class GlobalValue; 35 /// Make sure the given GlobalValue is fully read. 37 virtual Error materialize(GlobalValue *GV) = 0;
|
/openbsd-current/gnu/llvm/llvm/lib/Transforms/Utils/ |
H A D | FunctionImportUtils.cpp | 30 const GlobalValue *SGV) { 35 if (!GlobalsToImport->count(const_cast<GlobalValue *>(SGV))) 46 const GlobalValue *SGV, ValueInfo VI) { 61 assert((!GlobalsToImport->count(const_cast<GlobalValue *>(SGV)) || 81 if (!GlobalValue::isLocalLinkage(Linkage)) { 92 const GlobalValue &GV) const { 98 if (Used.count(const_cast<GlobalValue *>(&GV))) 105 FunctionImportGlobalProcessing::getPromotedName(const GlobalValue *SGV) { 125 GlobalValue::LinkageTypes 126 FunctionImportGlobalProcessing::getLinkage(const GlobalValue *SG [all...] |
H A D | SplitModule.cpp | 27 #include "llvm/IR/GlobalValue.h" 54 using ClusterMapType = EquivalenceClasses<const GlobalValue *>; 55 using ComdatMembersType = DenseMap<const Comdat *, const GlobalValue *>; 56 using ClusterIDMapType = DenseMap<const GlobalValue *, unsigned>; 61 const GlobalValue *GV, const User *U) { 62 assert((!isa<Constant>(U) || isa<GlobalValue>(U)) && "Bad user"); 65 const GlobalValue *F = I->getParent()->getParent(); 67 } else if (const GlobalValue *GVU = dyn_cast<GlobalValue>(U)) { 74 // Adds all GlobalValue user [all...] |
/openbsd-current/gnu/llvm/llvm/include/llvm/AsmParser/ |
H A D | SlotMapping.h | 23 class GlobalValue; 33 std::vector<GlobalValue *> GlobalValues;
|
/openbsd-current/gnu/llvm/llvm/lib/Target/SystemZ/ |
H A D | SystemZConstantPoolValue.h | 17 class GlobalValue; 33 const GlobalValue *GV; 37 SystemZConstantPoolValue(const GlobalValue *GV, 42 Create(const GlobalValue *GV, SystemZCP::SystemZCPModifier Modifier); 51 const GlobalValue *getGlobalValue() const { return GV; }
|
/openbsd-current/gnu/llvm/llvm/lib/Target/AArch64/ |
H A D | AArch64TargetObjectFile.h | 32 const MCExpr *getTTypeGlobalReference(const GlobalValue *GV, 38 MCSymbol *getCFIPersonalitySymbol(const GlobalValue *GV, 42 const MCExpr *getIndirectSymViaGOTPCRel(const GlobalValue *GV, 48 void getNameWithPrefix(SmallVectorImpl<char> &OutName, const GlobalValue *GV,
|
/openbsd-current/gnu/llvm/llvm/lib/Transforms/IPO/ |
H A D | ExtractGV.cpp | 24 static void makeVisible(GlobalValue &GV, bool Delete) { 27 GV.setLinkage(GlobalValue::ExternalLinkage); 29 GV.setVisibility(GlobalValue::HiddenVisibility); 42 case GlobalValue::LinkOnceAnyLinkage: 43 GV.setLinkage(GlobalValue::WeakAnyLinkage); 45 case GlobalValue::LinkOnceODRLinkage: 46 GV.setLinkage(GlobalValue::WeakODRLinkage); 55 ExtractGVPass::ExtractGVPass(std::vector<GlobalValue *> &GVs, bool deleteS, 120 Declaration = Function::Create(FTy, GlobalValue::ExternalLinkage, 125 M, Ty, false, GlobalValue [all...] |
/openbsd-current/gnu/llvm/llvm/lib/IR/ |
H A D | Globals.cpp | 1 //===-- Globals.cpp - Implement the GlobalValue & GlobalVariable class ----===// 9 // This file implements the GlobalValue & GlobalVariable classes for the IR 20 #include "llvm/IR/GlobalValue.h" 28 // GlobalValue Class 31 // GlobalValue should be a Constant, plus a type, a module, some flags, and an 33 // GlobalValue while adding flags. 34 static_assert(sizeof(GlobalValue) == 36 "unexpected GlobalValue size growth"); 39 static_assert(sizeof(GlobalObject) == sizeof(GlobalValue) + sizeof(void *), 42 bool GlobalValue [all...] |
H A D | ModuleSummaryIndex.cpp | 42 GlobalValue::VisibilityTypes ValueInfo::getELFVisibility() const { 45 if (S.getVisibility() == GlobalValue::HiddenVisibility) 46 return GlobalValue::HiddenVisibility; 47 if (S.getVisibility() == GlobalValue::ProtectedVisibility) 50 return HasProtected ? GlobalValue::ProtectedVisibility 51 : GlobalValue::DefaultVisibility; 173 assert(VI && "GlobalValue not found in index"); 180 bool ModuleSummaryIndex::isGUIDLive(GlobalValue::GUID GUID) const { 251 const DenseSet<GlobalValue::GUID> &GUIDPreservedSymbols) { 347 return !GlobalValue [all...] |
/openbsd-current/gnu/llvm/llvm/lib/Target/X86/ |
H A D | X86TargetObjectFile.h | 20 const MCExpr *getTTypeGlobalReference(const GlobalValue *GV, 28 MCSymbol *getCFIPersonalitySymbol(const GlobalValue *GV, 32 const MCExpr *getIndirectSymViaGOTPCRel(const GlobalValue *GV,
|
/openbsd-current/gnu/llvm/llvm/lib/Linker/ |
H A D | LinkModules.cpp | 17 #include "llvm/IR/GlobalValue.h" 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) { 85 if (!SrcGV->hasName() || GlobalValue::isLocalLinkage(SrcGV->getLinkage())) 89 GlobalValue *DG [all...] |
/openbsd-current/gnu/llvm/llvm/include/llvm/ExecutionEngine/Orc/ |
H A D | Mangling.h | 45 using SymbolNameToDefinitionMap = std::map<SymbolStringPtr, GlobalValue *>; 49 /// with Name-to-GlobalValue* mappings. Note that this mapping is not 54 ArrayRef<GlobalValue *> GVs, SymbolFlagsMap &SymbolFlags,
|
/openbsd-current/gnu/llvm/llvm/lib/ExecutionEngine/Orc/ |
H A D | ThreadSafeModule.cpp | 24 ShouldCloneDef = [](const GlobalValue &) { return true; }; 30 std::set<GlobalValue *> ClonedDefsInSrc; 32 auto Tmp = CloneModule(M, VMap, [&](const GlobalValue *GV) { 34 ClonedDefsInSrc.insert(const_cast<GlobalValue *>(GV));
|
/openbsd-current/gnu/llvm/llvm/lib/Target/Sparc/ |
H A D | SparcTargetObjectFile.h | 25 const MCExpr *getTTypeGlobalReference(const GlobalValue *GV,
|
/openbsd-current/gnu/llvm/llvm/lib/LTO/ |
H A D | LTO.cpp | 85 const std::map<GlobalValue::GUID, GlobalValue::LinkageTypes> &ResolvedODR, 87 const std::set<GlobalValue::GUID> &CfiFunctionDefs, 88 const std::set<GlobalValue::GUID> &CfiFunctionDecls) { 191 sizeof(GlobalValue::GUID))); 193 sizeof(GlobalValue::LinkageTypes))); 198 std::set<GlobalValue::GUID> UsedCfiDefs; 199 std::set<GlobalValue::GUID> UsedCfiDecls; 202 std::set<GlobalValue::GUID> UsedTypeIds; 204 auto AddUsedCfiGlobal = [&](GlobalValue [all...] |
/openbsd-current/gnu/llvm/llvm/include/llvm/CodeGen/ |
H A D | TargetLoweringObjectFileImpl.h | 24 class GlobalValue; 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, 151 const MCExpr *getIndirectSymViaGOTPCRel(const GlobalValue *GV, 157 void getNameWithPrefix(SmallVectorImpl<char> &OutName, const GlobalValue *GV, 175 void getNameWithPrefix(SmallVectorImpl<char> &OutName, const GlobalValue *G [all...] |
/openbsd-current/gnu/llvm/llvm/include/llvm/Object/ |
H A D | ModuleSymbolTable.h | 30 class GlobalValue; 36 using Symbol = PointerUnion<GlobalValue *, AsmSymbol *>;
|