Home
last modified time | relevance | path

Searched refs:GlobalValue (Results 1 – 25 of 306) sorted by relevance

12345678910>>...13

/external/llvm/lib/Linker/
DLinkModules.cpp31 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 …]
DIRMover.cpp353 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/
DExtractGV.cpp28 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 …]
DGlobalDCE.cpp49 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()
DInternalize.cpp63 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/
DTargetLoweringObjectFileImpl.h31 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 …]
DPseudoSourceValue.h116 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/
DGlobals.cpp30 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/
DTargetLoweringObjectFile.h34 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/
DSystemZConstantPoolValue.h18 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/
Dgold-plugin.cpp95 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/
DSplitModule.cpp29 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()
DCloneModule.cpp36 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/
DGlobalsModRef.h40 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/
DMangler.h23 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/
DAMDGPUTargetObjectFile.h26 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,
DAMDGPUTargetObjectFile.cpp23 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/
DCodeGenModule.h42 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/
DMipsTargetObjectFile.h27 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/
DAMDGPUBaseInfo.h19 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/
DInstrProf.cpp76 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/
DNVPTXUtilities.cpp32 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/
DXCoreAsmPrinter.cpp130 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/
DLazyEmittingLayer.h104 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/
DIRMover.h18 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,

12345678910>>...13