/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Utils/ |
D | FunctionImportUtils.cpp | 22 const GlobalValue *SGV, SetVector<GlobalValue *> *GlobalsToImport) { in doImportAsDefinition() 25 if (!GlobalsToImport->count(const_cast<GlobalValue *>(SGV))) in doImportAsDefinition() 36 const GlobalValue *SGV) { in doImportAsDefinition() 44 const GlobalValue *SGV) { in shouldPromoteLocalToGlobal() 52 assert((!GlobalsToImport->count(const_cast<GlobalValue *>(SGV)) || in shouldPromoteLocalToGlobal() 72 if (!GlobalValue::isLocalLinkage(Linkage)) { in shouldPromoteLocalToGlobal() 83 const GlobalValue &GV) const { in isNonRenamableLocal() 89 if (Used.count(const_cast<GlobalValue *>(&GV))) in isNonRenamableLocal() 95 std::string FunctionImportGlobalProcessing::getName(const GlobalValue *SGV, in getName() 109 GlobalValue::LinkageTypes [all …]
|
D | SplitModule.cpp | 56 using ClusterMapType = EquivalenceClasses<const GlobalValue *>; 57 using ComdatMembersType = DenseMap<const Comdat *, const GlobalValue *>; 58 using ClusterIDMapType = DenseMap<const GlobalValue *, unsigned>; 63 const GlobalValue *GV, const User *U) { in addNonConstUser() 64 assert((!isa<Constant>(U) || isa<GlobalValue>(U)) && "Bad user"); in addNonConstUser() 67 const GlobalValue *F = I->getParent()->getParent(); in addNonConstUser() 71 GVtoClusterMap.unionSets(GV, cast<GlobalValue>(U)); in addNonConstUser() 79 const GlobalValue *GV, const Value *V) { in addAllGlobalValueUsers() 86 if (isa<Constant>(UU) && !isa<GlobalValue>(UU)) { in addAllGlobalValueUsers() 109 auto recordGVSet = [&GVtoClusterMap, &ComdatMembers](GlobalValue &GV) { in findPartitions() [all …]
|
/external/llvm/lib/Transforms/Utils/ |
D | FunctionImportUtils.cpp | 24 const GlobalValue *SGV, DenseSet<const GlobalValue *> *GlobalsToImport) { in doImportAsDefinition() 44 const GlobalValue *SGV) { in doImportAsDefinition() 52 const GlobalValue *SGV) { in doPromoteLocalToGlobal() 81 std::string FunctionImportGlobalProcessing::getName(const GlobalValue *SGV) { in getName() 95 GlobalValue::LinkageTypes 96 FunctionImportGlobalProcessing::getLinkage(const GlobalValue *SGV) { in getLinkage() 103 return GlobalValue::ExternalLinkage; in getLinkage() 112 case GlobalValue::ExternalLinkage: in getLinkage() 118 return GlobalValue::AvailableExternallyLinkage; in getLinkage() 122 case GlobalValue::AvailableExternallyLinkage: in getLinkage() [all …]
|
D | SplitModule.cpp | 38 typedef EquivalenceClasses<const GlobalValue *> ClusterMapType; 39 typedef DenseMap<const Comdat *, const GlobalValue *> ComdatMembersType; 40 typedef DenseMap<const GlobalValue *, unsigned> ClusterIDMapType; 44 const GlobalValue *GV, const User *U) { in addNonConstUser() 45 assert((!isa<Constant>(U) || isa<GlobalValue>(U)) && "Bad user"); in addNonConstUser() 48 const GlobalValue *F = I->getParent()->getParent(); in addNonConstUser() 52 GVtoClusterMap.unionSets(GV, cast<GlobalValue>(U)); in addNonConstUser() 60 const GlobalValue *GV, const Value *V) { in addAllGlobalValueUsers() 67 if (isa<Constant>(UU) && !isa<GlobalValue>(UU)) { in addAllGlobalValueUsers() 89 auto recordGVSet = [&GVtoClusterMap, &ComdatMembers](GlobalValue &GV) { in findPartitions() [all …]
|
/external/llvm/lib/LTO/ |
D | LTO.cpp | 44 GlobalValueSummaryList &GVSummaryList, GlobalValue::GUID GUID, in thinLTOResolveWeakForLinkerGUID() 46 function_ref<bool(GlobalValue::GUID, const GlobalValueSummary *)> in thinLTOResolveWeakForLinkerGUID() 48 function_ref<void(StringRef, GlobalValue::GUID, GlobalValue::LinkageTypes)> in thinLTOResolveWeakForLinkerGUID() 53 GlobalValue::LinkageTypes OriginalLinkage = S->linkage(); in thinLTOResolveWeakForLinkerGUID() 54 if (!GlobalValue::isWeakForLinker(OriginalLinkage)) in thinLTOResolveWeakForLinkerGUID() 59 if (GlobalValue::isLinkOnceLinkage(OriginalLinkage)) in thinLTOResolveWeakForLinkerGUID() 60 S->setLinkage(GlobalValue::getWeakLinkage( in thinLTOResolveWeakForLinkerGUID() 61 GlobalValue::isLinkOnceODRLinkage(OriginalLinkage))); in thinLTOResolveWeakForLinkerGUID() 65 (GlobalValue::isLinkOnceODRLinkage(OriginalLinkage) || in thinLTOResolveWeakForLinkerGUID() 66 GlobalValue::isWeakODRLinkage(OriginalLinkage))) in thinLTOResolveWeakForLinkerGUID() [all …]
|
/external/llvm/lib/Linker/ |
D | LinkModules.cpp | 33 SetVector<GlobalValue *> ValuesToLink; 41 DenseSet<const GlobalValue *> *GlobalsToImport; 47 void addLazyFor(GlobalValue &GV, const IRMover::ValueAdder &Add); 58 bool shouldLinkFromSource(bool &LinkFromSrc, const GlobalValue &Dest, 59 const GlobalValue &Src); 79 DenseMap<const Comdat *, std::vector<GlobalValue *>> LazyComdatMembers; 83 GlobalValue *getLinkedToGlobal(const GlobalValue *SrcGV) { in getLinkedToGlobal() 87 if (!SrcGV->hasName() || GlobalValue::isLocalLinkage(SrcGV->getLinkage())) in getLinkedToGlobal() 91 GlobalValue *DGV = DstM.getNamedValue(SrcGV->getName()); in getLinkedToGlobal() 106 void dropReplacedComdat(GlobalValue &GV, [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Transforms/Utils/ |
D | FunctionImportUtils.h | 35 SetVector<GlobalValue *> *GlobalsToImport; 45 SmallPtrSet<GlobalValue *, 8> Used; 48 bool shouldPromoteLocalToGlobal(const GlobalValue *SGV); 54 bool isNonRenamableLocal(const GlobalValue &GV) const; 64 bool doImportAsDefinition(const GlobalValue *SGV); 70 std::string getName(const GlobalValue *SGV, bool DoPromote); 77 void processGlobalForThinLTO(GlobalValue &GV); 83 GlobalValue::LinkageTypes getLinkage(const GlobalValue *SGV, bool DoPromote); 88 SetVector<GlobalValue *> *GlobalsToImport = nullptr) 107 static bool doImportAsDefinition(const GlobalValue *SGV, [all …]
|
/external/swiftshader/third_party/LLVM/lib/VMCore/ |
D | Globals.cpp | 29 bool GlobalValue::isMaterializable() const { in isMaterializable() 32 bool GlobalValue::isDematerializable() const { in isDematerializable() 35 bool GlobalValue::Materialize(std::string *ErrInfo) { in Materialize() 38 void GlobalValue::Dematerialize() { in Dematerialize() 44 void GlobalValue::destroyConstant() { in destroyConstant() 50 void GlobalValue::copyAttributesFrom(const GlobalValue *Src) { in copyAttributesFrom() 57 void GlobalValue::setAlignment(unsigned Align) { in setAlignment() 65 bool GlobalValue::isDeclaration() const { in isDeclaration() 86 : GlobalValue(PointerType::get(Ty, AddressSpace), in GlobalVariable() 105 : GlobalValue(PointerType::get(Ty, AddressSpace), in GlobalVariable() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/LTO/ |
D | LTO.cpp | 61 GlobalValue::GUID, 72 const std::map<GlobalValue::GUID, GlobalValue::LinkageTypes> &ResolvedODR, in computeCacheKey() 75 const std::set<GlobalValue::GUID> &CfiFunctionDefs, in computeCacheKey() 76 const std::set<GlobalValue::GUID> &CfiFunctionDecls) { in computeCacheKey() 165 sizeof(GlobalValue::GUID))); in computeCacheKey() 167 sizeof(GlobalValue::LinkageTypes))); in computeCacheKey() 172 std::set<GlobalValue::GUID> UsedCfiDefs; in computeCacheKey() 173 std::set<GlobalValue::GUID> UsedCfiDecls; in computeCacheKey() 176 std::set<GlobalValue::GUID> UsedTypeIds; in computeCacheKey() 178 auto AddUsedCfiGlobal = [&](GlobalValue::GUID ValueGUID) { in computeCacheKey() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Linker/ |
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); [all …]
|
/external/llvm/include/llvm/Transforms/Utils/ |
D | FunctionImportUtils.h | 35 DenseSet<const GlobalValue *> *GlobalsToImport; 44 bool doPromoteLocalToGlobal(const GlobalValue *SGV); 53 bool doImportAsDefinition(const GlobalValue *SGV); 58 std::string getName(const GlobalValue *SGV); 65 void processGlobalForThinLTO(GlobalValue &GV); 70 GlobalValue::LinkageTypes getLinkage(const GlobalValue *SGV); 75 DenseSet<const GlobalValue *> *GlobalsToImport = nullptr) 88 doImportAsDefinition(const GlobalValue *SGV, 89 DenseSet<const GlobalValue *> *GlobalsToImport); 96 DenseSet<const GlobalValue *> *GlobalsToImport = nullptr);
|
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/IR/ |
D | ManglerTest.cpp | 29 GlobalValue::LinkageTypes Linkage, in mangleFunc() 57 EXPECT_EQ(mangleFunc("foo", llvm::GlobalValue::ExternalLinkage, in TEST() 60 EXPECT_EQ(mangleFunc("?foo", llvm::GlobalValue::ExternalLinkage, in TEST() 63 EXPECT_EQ(mangleFunc("foo", llvm::GlobalValue::PrivateLinkage, in TEST() 77 EXPECT_EQ(mangleFunc("foo", llvm::GlobalValue::ExternalLinkage, in TEST() 80 EXPECT_EQ(mangleFunc("?foo", llvm::GlobalValue::ExternalLinkage, in TEST() 83 EXPECT_EQ(mangleFunc("foo", llvm::GlobalValue::PrivateLinkage, in TEST() 88 EXPECT_EQ(mangleFunc("stdcall", llvm::GlobalValue::ExternalLinkage, in TEST() 91 EXPECT_EQ(mangleFunc("fastcall", llvm::GlobalValue::ExternalLinkage, in TEST() 94 EXPECT_EQ(mangleFunc("vectorcall", llvm::GlobalValue::ExternalLinkage, in TEST() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Transforms/IPO/ |
D | GlobalDCE.h | 35 SmallPtrSet<GlobalValue*, 32> AliveGlobals; 38 DenseMap<GlobalValue *, SmallPtrSet<GlobalValue *, 4>> GVDependencies; 41 std::unordered_map<Constant *, SmallPtrSet<GlobalValue *, 8>> 45 std::unordered_multimap<Comdat *, GlobalValue *> ComdatMembers; 47 void UpdateGVDependencies(GlobalValue &GV); 48 void MarkLive(GlobalValue &GV, 49 SmallVectorImpl<GlobalValue *> *Updates = nullptr); 50 bool RemoveUnusedGlobalValue(GlobalValue &GV); 52 void ComputeDependencies(Value *V, SmallPtrSetImpl<GlobalValue *> &U);
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/IR/ |
D | Globals.cpp | 37 static_assert(sizeof(GlobalValue) == 42 static_assert(sizeof(GlobalObject) == sizeof(GlobalValue) + sizeof(void *), 45 bool GlobalValue::isMaterializable() const { in isMaterializable() 50 Error GlobalValue::materialize() { in materialize() 56 void GlobalValue::destroyConstantImpl() { in destroyConstantImpl() 60 Value *GlobalValue::handleOperandChangeImpl(Value *From, Value *To) { in handleOperandChangeImpl() 66 void GlobalValue::copyAttributesFrom(const GlobalValue *Src) { in copyAttributesFrom() 73 void GlobalValue::removeFromParent() { in removeFromParent() 85 void GlobalValue::eraseFromParent() { in eraseFromParent() 97 unsigned GlobalValue::getAlignment() const { in getAlignment() [all …]
|
D | ModuleSummaryIndex.cpp | 74 bool ModuleSummaryIndex::isGUIDLive(GlobalValue::GUID GUID) const { in isGUIDLive() 120 GlobalValue::GUID Src; 121 GlobalValue::GUID Dst; 154 static std::string linkageToString(GlobalValue::LinkageTypes LT) { in linkageToString() 156 case GlobalValue::ExternalLinkage: in linkageToString() 158 case GlobalValue::AvailableExternallyLinkage: in linkageToString() 160 case GlobalValue::LinkOnceAnyLinkage: in linkageToString() 162 case GlobalValue::LinkOnceODRLinkage: in linkageToString() 164 case GlobalValue::WeakAnyLinkage: in linkageToString() 166 case GlobalValue::WeakODRLinkage: in linkageToString() [all …]
|
/external/llvm/include/llvm/IR/ |
D | ModuleSummaryIndex.h | 59 GlobalValue::GUID Id; 61 ValueUnion(GlobalValue::GUID Id) : Id(Id) {} in ValueUnion() 70 ValueInfo(GlobalValue::GUID Id = 0) : TheValue(Id), Kind(VI_GUID) {} in TheValue() 74 GlobalValue::GUID getGUID() const { in getGUID() 107 explicit GVFlags(GlobalValue::LinkageTypes Linkage, bool HasSection) in GVFlags() 109 GVFlags(const GlobalValue &GV) in GVFlags() 120 GlobalValue::GUID OriginalName; 148 GlobalValue::GUID getOriginalName() { return OriginalName; } in getOriginalName() 151 void setOriginalName(GlobalValue::GUID Name) { OriginalName = Name; } in setOriginalName() 167 GlobalValue::LinkageTypes linkage() const { in linkage() [all …]
|
/external/llvm/include/llvm/CodeGen/ |
D | TargetLoweringObjectFileImpl.h | 30 class GlobalValue; variable 56 MCSection *getExplicitSectionGlobal(const GlobalValue *GV, SectionKind Kind, 60 MCSection *SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind, 73 getTTypeGlobalReference(const GlobalValue *GV, unsigned Encoding, 79 MCSymbol *getCFIPersonalitySymbol(const GlobalValue *GV, Mangler &Mang, 89 const MCExpr *lowerRelativeReference(const GlobalValue *LHS, 90 const GlobalValue *RHS, Mangler &Mang, 106 MCSection *SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind, 110 MCSection *getExplicitSectionGlobal(const GlobalValue *GV, SectionKind Kind, 120 getTTypeGlobalReference(const GlobalValue *GV, unsigned Encoding, [all …]
|
/external/swiftshader/third_party/LLVM/include/llvm/CodeGen/ |
D | TargetLoweringObjectFileImpl.h | 31 class GlobalValue; variable 49 getExplicitSectionGlobal(const GlobalValue *GV, SectionKind Kind, 53 SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind, 60 getExprForDwarfGlobalReference(const GlobalValue *GV, Mangler *Mang, 66 getCFIPersonalitySymbol(const GlobalValue *GV, Mangler *Mang, 77 SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind, 81 getExplicitSectionGlobal(const GlobalValue *GV, SectionKind Kind, 89 virtual bool shouldEmitUsedDirectiveFor(const GlobalValue *GV, 95 getExprForDwarfGlobalReference(const GlobalValue *GV, Mangler *Mang, 101 getCFIPersonalitySymbol(const GlobalValue *GV, Mangler *Mang, [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/IPO/ |
D | ExtractGV.cpp | 26 static void makeVisible(GlobalValue &GV, bool Delete) { in makeVisible() 29 GV.setLinkage(GlobalValue::ExternalLinkage); in makeVisible() 31 GV.setVisibility(GlobalValue::HiddenVisibility); in makeVisible() 44 case GlobalValue::LinkOnceAnyLinkage: in makeVisible() 45 GV.setLinkage(GlobalValue::WeakAnyLinkage); in makeVisible() 47 case GlobalValue::LinkOnceODRLinkage: in makeVisible() 48 GV.setLinkage(GlobalValue::WeakODRLinkage); in makeVisible() 56 SetVector<GlobalValue *> Named; 64 explicit GVExtractorPass(std::vector<GlobalValue*> &GVs, in GVExtractorPass() 137 Declaration = Function::Create(FTy, GlobalValue::ExternalLinkage, in runOnModule() [all …]
|
/external/llvm/lib/Transforms/IPO/ |
D | ExtractGV.cpp | 28 static void makeVisible(GlobalValue &GV, bool Delete) { in makeVisible() 31 GV.setLinkage(GlobalValue::ExternalLinkage); in makeVisible() 33 GV.setVisibility(GlobalValue::HiddenVisibility); in makeVisible() 46 case GlobalValue::LinkOnceAnyLinkage: in makeVisible() 47 GV.setLinkage(GlobalValue::WeakAnyLinkage); in makeVisible() 49 case GlobalValue::LinkOnceODRLinkage: in makeVisible() 50 GV.setLinkage(GlobalValue::WeakODRLinkage); in makeVisible() 58 SetVector<GlobalValue *> Named; 67 explicit GVExtractorPass(std::vector<GlobalValue*>& GVs, bool deleteS = true) in GVExtractorPass() 139 Declaration = Function::Create(FTy, GlobalValue::ExternalLinkage, in runOnModule() [all …]
|
/external/llvm/include/llvm/Target/ |
D | TargetLoweringObjectFile.h | 34 class GlobalValue; variable 79 static SectionKind getKindForGlobal(const GlobalValue *GV, 85 MCSection *SectionForGlobal(const GlobalValue *GV, SectionKind Kind, 91 MCSection *SectionForGlobal(const GlobalValue *GV, Mangler &Mang, in SectionForGlobal() 97 const GlobalValue *GV, Mangler &Mang, 110 getExplicitSectionGlobal(const GlobalValue *GV, SectionKind Kind, 114 virtual const MCSection *getSpecialCasedSectionGlobals(const GlobalValue *GV, in getSpecialCasedSectionGlobals() 123 getTTypeGlobalReference(const GlobalValue *GV, unsigned Encoding, 129 MCSymbol *getSymbolWithGlobalValueBase(const GlobalValue *GV, 134 virtual MCSymbol *getCFIPersonalitySymbol(const GlobalValue *GV, [all …]
|
/external/llvm/lib/IR/ |
D | Globals.cpp | 31 bool GlobalValue::isMaterializable() const { in isMaterializable() 36 std::error_code GlobalValue::materialize() { in materialize() 42 void GlobalValue::destroyConstantImpl() { in destroyConstantImpl() 46 Value *GlobalValue::handleOperandChangeImpl(Value *From, Value *To) { in handleOperandChangeImpl() 52 void GlobalValue::copyAttributesFrom(const GlobalValue *Src) { in copyAttributesFrom() 58 unsigned GlobalValue::getAlignment() const { in getAlignment() 94 void GlobalObject::copyAttributesFrom(const GlobalValue *Src) { in copyAttributesFrom() 95 GlobalValue::copyAttributesFrom(Src); in copyAttributesFrom() 102 std::string GlobalValue::getGlobalIdentifier(StringRef Name, in getGlobalIdentifier() 103 GlobalValue::LinkageTypes Linkage, in getGlobalIdentifier() [all …]
|
/external/swiftshader/third_party/LLVM/include/llvm/Target/ |
D | TargetLoweringObjectFile.h | 32 class GlobalValue; variable 60 virtual bool shouldEmitUsedDirectiveFor(const GlobalValue *GV, in shouldEmitUsedDirectiveFor() 71 static SectionKind getKindForGlobal(const GlobalValue *GV, 77 const MCSection *SectionForGlobal(const GlobalValue *GV, 84 const MCSection *SectionForGlobal(const GlobalValue *GV, in SectionForGlobal() 96 getExplicitSectionGlobal(const GlobalValue *GV, SectionKind Kind, 102 getSpecialCasedSectionGlobals(const GlobalValue *GV, Mangler *Mang, in getSpecialCasedSectionGlobals() 111 getExprForDwarfGlobalReference(const GlobalValue *GV, Mangler *Mang, 117 getCFIPersonalitySymbol(const GlobalValue *GV, Mangler *Mang, 127 SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind,
|
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/CodeGen/ |
D | TargetLoweringObjectFileImpl.h | 24 class GlobalValue; variable 73 const MCExpr *getTTypeGlobalReference(const GlobalValue *GV, 80 MCSymbol *getCFIPersonalitySymbol(const GlobalValue *GV, 90 const MCExpr *lowerRelativeReference(const GlobalValue *LHS, 91 const GlobalValue *RHS, 116 const MCExpr *getTTypeGlobalReference(const GlobalValue *GV, 123 MCSymbol *getCFIPersonalitySymbol(const GlobalValue *GV, 133 void getNameWithPrefix(SmallVectorImpl<char> &OutName, const GlobalValue *GV, 150 void getNameWithPrefix(SmallVectorImpl<char> &OutName, const GlobalValue *GV, 165 const GlobalValue *GV) const override; [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/IR/ |
D | ModuleSummaryIndex.h | 119 const GlobalValue *GV; 144 std::map<GlobalValue::GUID, GlobalValueSummaryInfo>; 160 GlobalValue::GUID getGUID() const { return getRef()->first; } in getGUID() 161 const GlobalValue *getValue() const { in getValue() 265 explicit GVFlags(GlobalValue::LinkageTypes Linkage, 280 GlobalValue::GUID OriginalName = 0; 309 GlobalValue::GUID getOriginalName() const { return OriginalName; } 312 void setOriginalName(GlobalValue::GUID Name) { OriginalName = Name; } 328 GlobalValue::LinkageTypes linkage() const { 329 return static_cast<GlobalValue::LinkageTypes>(Flags.Linkage); [all …]
|