/external/llvm/lib/Linker/ |
D | LinkModules.cpp | 31 SetVector<GlobalValue *> ValuesToLink; 43 DenseSet<const GlobalValue *> *FunctionsToImport; 60 void addLazyFor(GlobalValue &GV, IRMover::ValueAdder Add); 69 bool doPromoteLocalToGlobal(const GlobalValue *SGV); 71 bool shouldLinkFromSource(bool &LinkFromSrc, const GlobalValue &Dest, 72 const GlobalValue &Src); 92 DenseMap<const Comdat *, std::vector<GlobalValue *>> ComdatMembers; 96 GlobalValue *getLinkedToGlobal(const GlobalValue *SrcGV) { in getLinkedToGlobal() 100 if (!SrcGV->hasName() || GlobalValue::isLocalLinkage(getLinkage(SrcGV))) in getLinkedToGlobal() 104 GlobalValue *DGV = DstM.getNamedValue(getName(SrcGV)); in getLinkedToGlobal() [all …]
|
D | IRMover.cpp | 353 void materializeInitFor(GlobalValue *New, GlobalValue *Old) override; 366 void materializeInitFor(GlobalValue *New, GlobalValue *Old) override; 379 std::function<void(GlobalValue &, IRMover::ValueAdder)> AddLazyFor; 392 DenseSet<GlobalValue *> ValuesToLink; 393 std::vector<GlobalValue *> Worklist; 395 void maybeAdd(GlobalValue *GV) { in maybeAdd() 432 GlobalValue *copyGlobalValueProto(const GlobalValue *SGV, bool ForDefinition); 455 GlobalValue *getLinkedToGlobal(const GlobalValue *SrcGV) { in getLinkedToGlobal() 462 GlobalValue *DGV = DstM.getNamedValue(SrcGV->getName()); in getLinkedToGlobal() 480 bool shouldLink(GlobalValue *DGV, GlobalValue &SGV); [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() 136 Declaration = Function::Create(FTy, GlobalValue::ExternalLinkage, in runOnModule() [all …]
|
D | GlobalDCE.cpp | 49 SmallPtrSet<GlobalValue*, 32> AliveGlobals; 51 std::unordered_multimap<Comdat *, GlobalValue *> ComdatMembers; 55 void GlobalIsNeeded(GlobalValue *GV); 58 bool RemoveUnusedGlobalValue(GlobalValue &GV); 193 void GlobalDCE::GlobalIsNeeded(GlobalValue *G) { in GlobalIsNeeded() 224 if (GlobalValue *GV = dyn_cast<GlobalValue>(U)) in GlobalIsNeeded() 232 if (GlobalValue *GV = dyn_cast<GlobalValue>(C)) in MarkUsedGlobalsAsNeeded() 251 bool GlobalDCE::RemoveUnusedGlobalValue(GlobalValue &GV) { in RemoveUnusedGlobalValue()
|
D | Internalize.cpp | 63 bool maybeInternalize(GlobalValue &GV, 65 void checkComdatVisibility(GlobalValue &GV, 112 static bool isExternallyVisible(const GlobalValue &GV, in isExternallyVisible() 136 GlobalValue &GV, const std::set<const Comdat *> &ExternalComdats) { in maybeInternalize() 155 GV.setVisibility(GlobalValue::DefaultVisibility); in maybeInternalize() 156 GV.setLinkage(GlobalValue::InternalLinkage); in maybeInternalize() 163 GlobalValue &GV, std::set<const Comdat *> &ExternalComdats) { in checkComdatVisibility() 177 SmallPtrSet<GlobalValue *, 8> Used; in runOnModule() 200 for (GlobalValue *V : Used) { in runOnModule()
|
/external/llvm/include/llvm/CodeGen/ |
D | TargetLoweringObjectFileImpl.h | 31 class GlobalValue; variable 52 MCSection *getExplicitSectionGlobal(const GlobalValue *GV, SectionKind Kind, 56 MCSection *SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind, 69 getTTypeGlobalReference(const GlobalValue *GV, unsigned Encoding, 75 MCSymbol *getCFIPersonalitySymbol(const GlobalValue *GV, Mangler &Mang, 98 MCSection *SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind, 102 MCSection *getExplicitSectionGlobal(const GlobalValue *GV, SectionKind Kind, 111 getTTypeGlobalReference(const GlobalValue *GV, unsigned Encoding, 117 MCSymbol *getCFIPersonalitySymbol(const GlobalValue *GV, Mangler &Mang, 127 void getNameWithPrefix(SmallVectorImpl<char> &OutName, const GlobalValue *GV, [all …]
|
D | PseudoSourceValue.h | 116 const GlobalValue *GV; 119 GlobalValuePseudoSourceValue(const GlobalValue *GV); 125 const GlobalValue *getValue() const { return GV; } in getValue() 148 ValueMap<const GlobalValue *, 176 const PseudoSourceValue *getGlobalValueCallEntry(const GlobalValue *GV);
|
/external/llvm/lib/IR/ |
D | Globals.cpp | 30 bool GlobalValue::isMaterializable() const { in isMaterializable() 35 std::error_code GlobalValue::materialize() { in materialize() 41 void GlobalValue::destroyConstantImpl() { in destroyConstantImpl() 45 Value *GlobalValue::handleOperandChangeImpl(Value *From, Value *To, Use *U) { in handleOperandChangeImpl() 51 void GlobalValue::copyAttributesFrom(const GlobalValue *Src) { in copyAttributesFrom() 57 unsigned GlobalValue::getAlignment() const { in getAlignment() 93 void GlobalObject::copyAttributesFrom(const GlobalValue *Src) { in copyAttributesFrom() 94 GlobalValue::copyAttributesFrom(Src); in copyAttributesFrom() 101 const char *GlobalValue::getSection() const { in getSection() 111 Comdat *GlobalValue::getComdat() { in getComdat() [all …]
|
/external/llvm/include/llvm/Target/ |
D | TargetLoweringObjectFile.h | 34 class GlobalValue; variable 78 static SectionKind getKindForGlobal(const GlobalValue *GV, 84 MCSection *SectionForGlobal(const GlobalValue *GV, SectionKind Kind, 90 MCSection *SectionForGlobal(const GlobalValue *GV, Mangler &Mang, in SectionForGlobal() 96 const GlobalValue *GV, Mangler &Mang, 109 getExplicitSectionGlobal(const GlobalValue *GV, SectionKind Kind, 113 virtual const MCSection *getSpecialCasedSectionGlobals(const GlobalValue *GV, in getSpecialCasedSectionGlobals() 122 getTTypeGlobalReference(const GlobalValue *GV, unsigned Encoding, 128 MCSymbol *getSymbolWithGlobalValueBase(const GlobalValue *GV, 133 virtual MCSymbol *getCFIPersonalitySymbol(const GlobalValue *GV, [all …]
|
/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/tools/gold/ |
D | gold-plugin.cpp | 95 GlobalValue::VisibilityTypes Visibility = GlobalValue::DefaultVisibility; 315 static const GlobalObject *getBaseObject(const GlobalValue &GV) { in getBaseObject() 364 static GlobalValue::VisibilityTypes 365 getMinVisibility(GlobalValue::VisibilityTypes A, in getMinVisibility() 366 GlobalValue::VisibilityTypes B) { in getMinVisibility() 367 if (A == GlobalValue::HiddenVisibility) in getMinVisibility() 369 if (B == GlobalValue::HiddenVisibility) in getMinVisibility() 371 if (A == GlobalValue::ProtectedVisibility) in getMinVisibility() 453 const GlobalValue *GV = Obj->getSymbolGV(Sym.getRawDataRefImpl()); in claim_file_hook() 472 case GlobalValue::DefaultVisibility: in claim_file_hook() [all …]
|
/external/llvm/lib/Transforms/Utils/ |
D | SplitModule.cpp | 29 static void externalize(GlobalValue *GV) { in externalize() 31 GV->setLinkage(GlobalValue::ExternalLinkage); in externalize() 32 GV->setVisibility(GlobalValue::HiddenVisibility); in externalize() 42 static bool isInPartition(const GlobalValue *GV, unsigned I, unsigned N) { in isInPartition() 78 CloneModule(M.get(), VMap, [=](const GlobalValue *GV) { in SplitModule()
|
D | CloneModule.cpp | 36 return CloneModule(M, VMap, [](const GlobalValue *GV) { return true; }); in CloneModule() 41 std::function<bool(const GlobalValue *)> ShouldCloneDefinition) { in CloneModule() 83 GlobalValue *GV; in CloneModule() 86 GlobalValue::ExternalLinkage, I->getName(), in CloneModule() 90 *New, I->getValueType(), false, GlobalValue::ExternalLinkage, in CloneModule() 115 GV->setLinkage(GlobalValue::ExternalLinkage); in CloneModule() 128 F->setLinkage(GlobalValue::ExternalLinkage); in CloneModule()
|
/external/llvm/include/llvm/Analysis/ |
D | GlobalsModRef.h | 40 SmallPtrSet<const GlobalValue *, 8> NonAddressTakenGlobals; 44 SmallPtrSet<const GlobalValue *, 8> IndirectGlobals; 48 DenseMap<const Value *, const GlobalValue *> AllocsForIndirectGlobals; 109 GlobalValue *OkayStoreDest = nullptr); 113 bool isNonEscapingGlobalNoAlias(const GlobalValue *GV, const Value *V); 115 const GlobalValue *GV);
|
/external/llvm/include/llvm/IR/ |
D | Mangler.h | 23 class GlobalValue; variable 30 mutable DenseMap<const GlobalValue*, unsigned> AnonGlobalIDs; 41 void getNameWithPrefix(raw_ostream &OS, const GlobalValue *GV, 43 void getNameWithPrefix(SmallVectorImpl<char> &OutName, const GlobalValue *GV,
|
/external/llvm/lib/Target/AMDGPU/ |
D | AMDGPUTargetObjectFile.h | 26 MCSection *SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind, 38 bool isAgentAllocation(const GlobalValue *GV) const; 39 bool isProgramAllocation(const GlobalValue *GV) const; 44 MCSection *SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind,
|
D | AMDGPUTargetObjectFile.cpp | 23 MCSection *AMDGPUTargetObjectFile::SelectSectionForGlobal(const GlobalValue *GV, in SelectSectionForGlobal() 58 bool AMDGPUHSATargetObjectFile::isAgentAllocation(const GlobalValue *GV) const { in isAgentAllocation() 66 const GlobalValue *GV) const { in isProgramAllocation() 72 const GlobalValue *GV, SectionKind Kind, in SelectSectionForGlobal()
|
/external/clang/lib/CodeGen/ |
D | CodeGenModule.h | 42 class GlobalValue; variable 296 llvm::SmallPtrSet<llvm::GlobalValue*, 10> WeakRefReferences; 307 DeferredGlobal(llvm::GlobalValue *GV, GlobalDecl GD) : GV(GV), GD(GD) {} in DeferredGlobal() 308 llvm::TrackingVH<llvm::GlobalValue> GV; 312 void addDeferredDeclToEmit(llvm::GlobalValue *GV, GlobalDecl GD) { in addDeferredDeclToEmit() 326 llvm::SmallVector<std::pair<llvm::GlobalValue *, llvm::Constant *>, 8> 377 llvm::GlobalValue *> StaticExternCMap; 550 llvm::GlobalValue::LinkageTypes Linkage); 661 void setGlobalVisibility(llvm::GlobalValue *GV, const NamedDecl *D) const; 665 void setTLSMode(llvm::GlobalValue *GV, const VarDecl &D) const; [all …]
|
/external/llvm/lib/Target/Mips/ |
D | MipsTargetObjectFile.h | 27 bool IsGlobalInSmallSection(const GlobalValue *GV, const TargetMachine &TM, 29 bool IsGlobalInSmallSection(const GlobalValue *GV, 31 bool IsGlobalInSmallSectionImpl(const GlobalValue *GV, 34 MCSection *SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind,
|
/external/llvm/lib/Target/AMDGPU/Utils/ |
D | AMDGPUBaseInfo.h | 19 class GlobalValue; variable 43 bool isGroupSegment(const GlobalValue *GV); 44 bool isGlobalSegment(const GlobalValue *GV); 45 bool isReadOnlySegment(const GlobalValue *GV);
|
/external/llvm/lib/ProfileData/ |
D | InstrProf.cpp | 76 GlobalValue::LinkageTypes Linkage, in getPGOFuncName() 87 if (llvm::GlobalValue::isLocalLinkage(Linkage)) { in getPGOFuncName() 117 GlobalValue::LinkageTypes Linkage) { in getPGOFuncNameVarName() 121 if (!GlobalValue::isLocalLinkage(Linkage)) in getPGOFuncNameVarName() 135 GlobalValue::LinkageTypes Linkage, in createPGOFuncNameVar() 141 if (Linkage == GlobalValue::ExternalWeakLinkage) in createPGOFuncNameVar() 142 Linkage = GlobalValue::LinkOnceAnyLinkage; in createPGOFuncNameVar() 143 else if (Linkage == GlobalValue::AvailableExternallyLinkage) in createPGOFuncNameVar() 144 Linkage = GlobalValue::LinkOnceODRLinkage; in createPGOFuncNameVar() 145 else if (Linkage == GlobalValue::InternalLinkage || in createPGOFuncNameVar() [all …]
|
/external/llvm/lib/Target/NVPTX/ |
D | NVPTXUtilities.cpp | 32 typedef std::map<const GlobalValue *, key_val_pair_t> global_val_annot_t; 69 static void cacheAnnotationFromMD(const Module *m, const GlobalValue *gv) { in cacheAnnotationFromMD() 78 GlobalValue *entity = in cacheAnnotationFromMD() 79 mdconst::dyn_extract_or_null<GlobalValue>(elem->getOperand(0)); in cacheAnnotationFromMD() 102 bool llvm::findOneNVVMAnnotation(const GlobalValue *gv, std::string prop, in findOneNVVMAnnotation() 116 bool llvm::findAllNVVMAnnotation(const GlobalValue *gv, std::string prop, in findAllNVVMAnnotation() 131 if (const GlobalValue *gv = dyn_cast<GlobalValue>(&val)) { in isTexture() 144 if (const GlobalValue *gv = dyn_cast<GlobalValue>(&val)) { in isSurface() 157 if (const GlobalValue *gv = dyn_cast<GlobalValue>(&val)) { in isSampler() 230 if(const GlobalValue *gv = dyn_cast<GlobalValue>(&val)) { in isManaged()
|
/external/llvm/lib/Target/XCore/ |
D | XCoreAsmPrinter.cpp | 130 case GlobalValue::AppendingLinkage: in EmitGlobalVariable() 132 case GlobalValue::LinkOnceAnyLinkage: in EmitGlobalVariable() 133 case GlobalValue::LinkOnceODRLinkage: in EmitGlobalVariable() 134 case GlobalValue::WeakAnyLinkage: in EmitGlobalVariable() 135 case GlobalValue::WeakODRLinkage: in EmitGlobalVariable() 136 case GlobalValue::ExternalLinkage: in EmitGlobalVariable() 137 case GlobalValue::CommonLinkage: in EmitGlobalVariable() 145 case GlobalValue::InternalLinkage: in EmitGlobalVariable() 146 case GlobalValue::PrivateLinkage: in EmitGlobalVariable()
|
/external/llvm/include/llvm/ExecutionEngine/Orc/ |
D | LazyEmittingLayer.h | 104 virtual const GlobalValue* searchGVs(StringRef Name, 125 const GlobalValue* searchGVs(StringRef Name, in searchGVs() 161 const GlobalValue* addGlobalValue(StringMap<const GlobalValue*> &Names, in addGlobalValue() 162 const GlobalValue &GV, in addGlobalValue() 189 const GlobalValue* buildMangledSymbols(StringRef SearchName, in buildMangledSymbols() 193 auto Symbols = llvm::make_unique<StringMap<const GlobalValue*>>(); in buildMangledSymbols() 216 mutable std::unique_ptr<StringMap<const GlobalValue*>> MangledSymbols;
|
/external/llvm/include/llvm/Linker/ |
D | IRMover.h | 18 class GlobalValue; variable 60 typedef std::function<void(GlobalValue &)> ValueAdder; 63 bool move(Module &Src, ArrayRef<GlobalValue *> ValuesToLink, 64 std::function<void(GlobalValue &GV, ValueAdder Add)> AddLazyFor,
|