/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 …]
|
D | ThinLTOCodeGenerator.cpp | 96 return !GlobalValue::isAvailableExternallyLinkage(Linkage) && in getFirstDefinitionForLinker() 97 !GlobalValue::isWeakForLinker(Linkage); in getFirstDefinitionForLinker() 106 return !GlobalValue::isAvailableExternallyLinkage(Linkage); in getFirstDefinitionForLinker() 119 DenseMap<GlobalValue::GUID, const GlobalValueSummary *> &PrevailingCopy) { in computePrevailingCopies() 181 static DenseSet<GlobalValue::GUID> 184 DenseSet<GlobalValue::GUID> GUIDPreservedSymbols(PreservedSymbols.size()); in computeGUIDPreservedSymbols() 189 GUIDPreservedSymbols.insert(GlobalValue::getGUID(Name)); in computeGUIDPreservedSymbols() 230 const std::map<GlobalValue::GUID, GlobalValue::LinkageTypes> &ResolvedODR, in ModuleCacheEntry() 232 const DenseSet<GlobalValue::GUID> &PreservedSymbols) { in ModuleCacheEntry() 265 sizeof(GlobalValue::GUID))); in ModuleCacheEntry() [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 …]
|
D | IRMover.cpp | 376 std::function<void(GlobalValue &, IRMover::ValueAdder)> AddLazyFor; 392 DenseSet<GlobalValue *> ValuesToLink; 393 std::vector<GlobalValue *> Worklist; 395 void maybeAdd(GlobalValue *GV) { in maybeAdd() 425 GlobalValue *copyGlobalValueProto(const GlobalValue *SGV, bool ForDefinition); 433 GlobalValue *getLinkedToGlobal(const GlobalValue *SrcGV) { in getLinkedToGlobal() 440 GlobalValue *DGV = DstM.getNamedValue(SrcGV->getName()); in getLinkedToGlobal() 463 bool shouldLink(GlobalValue *DGV, GlobalValue &SGV); 464 Expected<Constant *> linkGlobalValueProto(GlobalValue *GV, bool ForAlias); 471 Error linkGlobalValueBody(GlobalValue &Dst, GlobalValue &Src); [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/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/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/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/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/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 …]
|
D | Internalize.cpp | 66 bool operator()(const GlobalValue &GV) { in operator ()() 92 bool InternalizePass::shouldPreserveGV(const GlobalValue &GV) { in shouldPreserveGV() 117 GlobalValue &GV, const std::set<const Comdat *> &ExternalComdats) { in maybeInternalize() 136 GV.setVisibility(GlobalValue::DefaultVisibility); in maybeInternalize() 137 GV.setLinkage(GlobalValue::InternalLinkage); in maybeInternalize() 144 GlobalValue &GV, std::set<const Comdat *> &ExternalComdats) { in checkComdatVisibility() 157 SmallPtrSet<GlobalValue *, 8> Used; in internalizeModule() 180 for (GlobalValue *V : Used) { in internalizeModule() 254 std::function<bool(const GlobalValue &)> MustPreserveGV; 261 InternalizeLegacyPass(std::function<bool(const GlobalValue &)> MustPreserveGV) in InternalizeLegacyPass() [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/lib/Transforms/IPO/ |
D | ExtractGV.cpp | 27 SetVector<GlobalValue *> Named; 36 explicit GVExtractorPass(std::vector<GlobalValue*>& GVs, bool deleteS = true) in GVExtractorPass() 64 I->setVisibility(GlobalValue::HiddenVisibility); in runOnModule() 65 I->setLinkage(GlobalValue::ExternalLinkage); in runOnModule() 78 I->setVisibility(GlobalValue::HiddenVisibility); in runOnModule() 79 I->setLinkage(GlobalValue::ExternalLinkage); in runOnModule() 89 ModulePass *llvm::createGVExtractionPass(std::vector<GlobalValue*>& GVs, in createGVExtractionPass()
|
/external/swiftshader/third_party/LLVM/include/llvm/ExecutionEngine/ |
D | ExecutionEngine.h | 37 class GlobalValue; variable 50 struct AddressMapConfig : public ValueMapConfig<const GlobalValue*> { 53 static void onDelete(ExecutionEngineState *EES, const GlobalValue *Old); 54 static void onRAUW(ExecutionEngineState *, const GlobalValue *, 55 const GlobalValue *); 58 typedef ValueMap<const GlobalValue *, void *, AddressMapConfig> 72 std::map<void *, AssertingVH<const GlobalValue> > GlobalAddressReverseMap; 81 std::map<void*, AssertingVH<const GlobalValue> > & 89 void *RemoveMapping(const MutexGuard &, const GlobalValue *ToUnmap); 257 void addGlobalMapping(const GlobalValue *GV, void *Addr); [all …]
|
/external/llvm/include/llvm/Transforms/IPO/ |
D | Internalize.h | 39 const std::function<bool(const GlobalValue &)> MustPreserveGV; 44 bool shouldPreserveGV(const GlobalValue &GV); 47 bool maybeInternalize(GlobalValue &GV, 51 void checkComdatVisibility(GlobalValue &GV, 56 InternalizePass(std::function<bool(const GlobalValue &)> MustPreserveGV) in InternalizePass() 72 std::function<bool(const GlobalValue &)> MustPreserveGV,
|
/external/swiftshader/third_party/LLVM/include/llvm/ |
D | GVMaterializer.h | 26 class GlobalValue; variable 38 virtual bool isMaterializable(const GlobalValue *GV) const = 0; 42 virtual bool isDematerializable(const GlobalValue *GV) const = 0; 48 virtual bool Materialize(GlobalValue *GV, std::string *ErrInfo = 0) = 0; 55 virtual void Dematerialize(GlobalValue *) {} in Dematerialize() argument
|
/external/llvm/lib/Target/SystemZ/ |
D | SystemZConstantPoolValue.h | 18 class GlobalValue; variable 34 const GlobalValue *GV; 38 SystemZConstantPoolValue(const GlobalValue *GV, 43 Create(const GlobalValue *GV, SystemZCP::SystemZCPModifier Modifier); 52 const GlobalValue *getGlobalValue() const { return GV; } in getGlobalValue()
|
/external/llvm/lib/Target/Hexagon/ |
D | HexagonTargetObjectFile.h | 22 MCSection *SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind, 25 MCSection *getExplicitSectionGlobal(const GlobalValue *GV, SectionKind Kind, 28 bool isGlobalInSmallSection(const GlobalValue *GV, const TargetMachine &TM) 39 unsigned getSmallestAddressableSize(const Type *Ty, const GlobalValue *GV, 42 MCSection *selectSmallSectionForGlobal(const GlobalValue *GV,
|
/external/swiftshader/third_party/LLVM/lib/Analysis/IPA/ |
D | GlobalsModRef.cpp | 51 std::map<const GlobalValue*, unsigned> GlobalInfo; 56 unsigned getInfoForGlobal(const GlobalValue *GV) const { in getInfoForGlobal() 58 std::map<const GlobalValue*, unsigned>::const_iterator I = in getInfoForGlobal() 76 std::set<const GlobalValue*> NonAddressTakenGlobals; 80 std::set<const GlobalValue*> IndirectGlobals; 84 std::map<const Value*, const GlobalValue*> AllocsForIndirectGlobals; 182 GlobalValue *OkayStoreDest = 0); 183 bool AnalyzeIndirectGlobalMemory(GlobalValue *GV); 247 GlobalValue *OkayStoreDest) { in AnalyzeUsesOfPointer() 303 bool GlobalsModRef::AnalyzeIndirectGlobalMemory(GlobalValue *GV) { in AnalyzeIndirectGlobalMemory() [all …]
|
/external/swiftshader/third_party/LLVM/lib/CodeGen/ |
D | ELFWriter.h | 46 typedef SetVector<const GlobalValue*>::const_iterator PendingGblsIter; 128 SetVector<const GlobalValue*> PendingGlobals; 133 std::map<const GlobalValue*, uint32_t> GblSymLookup; 199 unsigned getGlobalELFBinding(const GlobalValue *GV); 200 unsigned getGlobalELFType(const GlobalValue *GV); 201 unsigned getGlobalELFVisibility(const GlobalValue *GV); 206 void AddPendingGlobalSymbol(const GlobalValue *GV, 227 void EmitGlobal(const GlobalValue *GV); 232 void EmitGlobalDataRelocation(const GlobalValue *GV, unsigned Size,
|
/external/swiftshader/third_party/subzero/src/ |
D | IceGlobalInits.h | 75 return Linkage == llvm::GlobalValue::InternalLinkage; in isInternal() 77 llvm::GlobalValue::LinkageTypes getLinkage() const { return Linkage; } in getLinkage() 78 void setLinkage(llvm::GlobalValue::LinkageTypes L) { in setLinkage() 83 return Linkage == llvm::GlobalValue::ExternalLinkage; in isExternal() 107 llvm::GlobalValue::LinkageTypes Linkage) in GlobalDeclaration() 116 case llvm::GlobalValue::InternalLinkage: in verifyLinkageDefault() 118 case llvm::GlobalValue::ExternalLinkage: in verifyLinkageDefault() 124 llvm::GlobalValue::LinkageTypes Linkage; 139 llvm::GlobalValue::LinkageTypes Linkage, in create() 160 return Linkage == llvm::GlobalValue::ExternalLinkage; in verifyLinkageCorrect() [all …]
|