Home
last modified time | relevance | path

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

1234567891011

/NextBSD/contrib/llvm/lib/IR/
HDGlobals.cpp30 bool GlobalValue::isMaterializable() const { in isMaterializable()
35 bool GlobalValue::isDematerializable() const { in isDematerializable()
38 std::error_code GlobalValue::materialize() { in materialize()
41 void GlobalValue::dematerialize() { in dematerialize()
47 void GlobalValue::destroyConstantImpl() { in destroyConstantImpl()
51 Value *GlobalValue::handleOperandChangeImpl(Value *From, Value *To, Use *U) { in handleOperandChangeImpl()
57 void GlobalValue::copyAttributesFrom(const GlobalValue *Src) { in copyAttributesFrom()
63 unsigned GlobalValue::getAlignment() const { in getAlignment()
99 void GlobalObject::copyAttributesFrom(const GlobalValue *Src) { in copyAttributesFrom()
101 GlobalValue::copyAttributesFrom(GV); in copyAttributesFrom()
[all …]
/NextBSD/contrib/llvm/lib/Transforms/IPO/
HDExtractGV.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 …]
HDInternalize.cpp108 static bool shouldInternalize(const GlobalValue &GV, in shouldInternalize()
139 SmallPtrSet<GlobalValue *, 8> Used; in runOnModule()
151 for (GlobalValue *V : Used) { in runOnModule()
160 I->setVisibility(GlobalValue::DefaultVisibility); in runOnModule()
161 I->setLinkage(GlobalValue::InternalLinkage); in runOnModule()
197 I->setVisibility(GlobalValue::DefaultVisibility); in runOnModule()
198 I->setLinkage(GlobalValue::InternalLinkage); in runOnModule()
210 I->setVisibility(GlobalValue::DefaultVisibility); in runOnModule()
211 I->setLinkage(GlobalValue::InternalLinkage); in runOnModule()
HDGlobalDCE.cpp49 SmallPtrSet<GlobalValue*, 32> AliveGlobals;
51 std::unordered_multimap<Comdat *, GlobalValue *> ComdatMembers;
55 void GlobalIsNeeded(GlobalValue *GV);
58 bool RemoveUnusedGlobalValue(GlobalValue &GV);
200 void GlobalDCE::GlobalIsNeeded(GlobalValue *G) { in GlobalIsNeeded()
237 if (GlobalValue *GV = dyn_cast<GlobalValue>(*U)) in GlobalIsNeeded()
245 if (GlobalValue *GV = dyn_cast<GlobalValue>(C)) in MarkUsedGlobalsAsNeeded()
264 bool GlobalDCE::RemoveUnusedGlobalValue(GlobalValue &GV) { in RemoveUnusedGlobalValue()
/NextBSD/contrib/llvm/include/llvm/CodeGen/
HDTargetLoweringObjectFileImpl.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,
134 MCSection *getExplicitSectionGlobal(const GlobalValue *GV, SectionKind Kind,
[all …]
/NextBSD/contrib/llvm/include/llvm/Target/
HDTargetLoweringObjectFile.h34 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,
111 getExplicitSectionGlobal(const GlobalValue *GV, SectionKind Kind,
115 virtual const MCSection *getSpecialCasedSectionGlobals(const GlobalValue *GV, in getSpecialCasedSectionGlobals()
124 getTTypeGlobalReference(const GlobalValue *GV, unsigned Encoding,
130 MCSymbol *getSymbolWithGlobalValueBase(const GlobalValue *GV,
135 virtual MCSymbol *getCFIPersonalitySymbol(const GlobalValue *GV,
[all …]
/NextBSD/contrib/llvm/lib/Analysis/IPA/
HDGlobalsModRef.cpp53 std::map<const GlobalValue *, unsigned> GlobalInfo;
58 unsigned getInfoForGlobal(const GlobalValue *GV) const { in getInfoForGlobal()
60 std::map<const GlobalValue *, unsigned>::const_iterator I = in getInfoForGlobal()
78 std::set<const GlobalValue *> NonAddressTakenGlobals;
82 std::set<const GlobalValue *> IndirectGlobals;
86 std::map<const Value *, const GlobalValue *> AllocsForIndirectGlobals;
188 GlobalValue *OkayStoreDest = nullptr);
189 bool AnalyzeIndirectGlobalMemory(GlobalValue *GV);
255 GlobalValue *OkayStoreDest) { in AnalyzeUsesOfPointer()
303 bool GlobalsModRef::AnalyzeIndirectGlobalMemory(GlobalValue *GV) { in AnalyzeIndirectGlobalMemory()
[all …]
/NextBSD/contrib/llvm/lib/Target/SystemZ/
HDSystemZConstantPoolValue.h18 class GlobalValue; variable
34 const GlobalValue *GV;
38 SystemZConstantPoolValue(const GlobalValue *GV,
43 Create(const GlobalValue *GV, SystemZCP::SystemZCPModifier Modifier);
53 const GlobalValue *getGlobalValue() const { return GV; } in getGlobalValue()
/NextBSD/contrib/llvm/tools/clang/lib/CodeGen/
HDCGCXX.cpp121 llvm::GlobalValue::LinkageTypes Linkage = getFunctionLinkage(AliasDecl); in TryEmitDefinitionAsAlias()
129 llvm::GlobalValue::isWeakForLinker(Linkage)) in TryEmitDefinitionAsAlias()
132 llvm::GlobalValue::LinkageTypes TargetLinkage = in TryEmitDefinitionAsAlias()
137 llvm::GlobalValue *Entry = GetGlobalValue(MangledName); in TryEmitDefinitionAsAlias()
150 auto *Ref = cast<llvm::GlobalValue>(GetAddrOfGlobal(TargetDecl)); in TryEmitDefinitionAsAlias()
157 if (llvm::GlobalValue::isDiscardableIfUnused(Linkage) && in TryEmitDefinitionAsAlias()
158 (TargetLinkage != llvm::GlobalValue::AvailableExternallyLinkage || in TryEmitDefinitionAsAlias()
181 if (llvm::GlobalValue::isWeakForLinker(TargetLinkage)) in TryEmitDefinitionAsAlias()
229 llvm::GlobalValue *CodeGenModule::getAddrOfCXXStructor( in getAddrOfCXXStructor()
240 if (llvm::GlobalValue *Existing = GetGlobalValue(Name)) in getAddrOfCXXStructor()
HDCodeGenModule.h42 class GlobalValue; variable
319 llvm::SmallPtrSet<llvm::GlobalValue*, 10> WeakRefReferences;
330 DeferredGlobal(llvm::GlobalValue *GV, GlobalDecl GD) : GV(GV), GD(GD) {} in DeferredGlobal()
331 llvm::TrackingVH<llvm::GlobalValue> GV;
335 void addDeferredDeclToEmit(llvm::GlobalValue *GV, GlobalDecl GD) { in addDeferredDeclToEmit()
389 llvm::GlobalValue *> StaticExternCMap;
564 llvm::GlobalValue::LinkageTypes Linkage);
671 void setGlobalVisibility(llvm::GlobalValue *GV, const NamedDecl *D) const;
675 void setTLSMode(llvm::GlobalValue *GV, const VarDecl &D) const;
677 static llvm::GlobalValue::VisibilityTypes GetLLVMVisibility(Visibility V) { in GetLLVMVisibility()
[all …]
HDCodeGenModule.cpp215 llvm::GlobalValue *Entry = GetGlobalValue(MangledName); in applyReplacements()
270 llvm::GlobalValue *Entry = GetGlobalValue(MangledName); in checkAliases()
272 const llvm::GlobalValue *GV = getAliasedGlobal(*Alias); in checkAliases()
282 llvm::GlobalValue *AliaseeGV; in checkAliases()
284 AliaseeGV = cast<llvm::GlobalValue>(CE->getOperand(0)); in checkAliases()
286 AliaseeGV = cast<llvm::GlobalValue>(Aliasee); in checkAliases()
315 llvm::GlobalValue *Entry = GetGlobalValue(MangledName); in checkAliases()
509 void CodeGenModule::setGlobalVisibility(llvm::GlobalValue *GV, in setGlobalVisibility()
513 GV->setVisibility(llvm::GlobalValue::DefaultVisibility); in setGlobalVisibility()
546 void CodeGenModule::setTLSMode(llvm::GlobalValue *GV, const VarDecl &D) const { in setTLSMode()
[all …]
/NextBSD/contrib/llvm/include/llvm/IR/
HDGVMaterializer.h26 class GlobalValue; variable
39 virtual bool isDematerializable(const GlobalValue *GV) const = 0;
43 virtual std::error_code materialize(GlobalValue *GV) = 0;
50 virtual void dematerialize(GlobalValue *) {} in dematerialize() argument
HDMangler.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,
HDGlobalValue.h35 class GlobalValue : public Constant {
36 GlobalValue(const GlobalValue &) = delete;
68 GlobalValue(PointerType *Ty, ValueTy VTy, Use *Ops, unsigned NumOps, in GlobalValue() function
124 ~GlobalValue() override { in ~GlobalValue()
136 return const_cast<GlobalValue *>(this)->getComdat(); in getComdat()
301 virtual void copyAttributesFrom(const GlobalValue *Src);
/NextBSD/contrib/llvm/lib/Linker/
HDLinkModules.cpp371 std::vector<GlobalValue *> &LazilyLinkGlobalValues;
375 std::vector<GlobalValue *> &LazilyLinkGlobalValues) in ValueMaterializerTy()
420 std::vector<GlobalValue *> LazilyLinkGlobalValues;
442 bool shouldLinkFromSource(bool &LinkFromSrc, const GlobalValue &Dest,
443 const GlobalValue &Src);
469 GlobalValue *getLinkedToGlobal(const GlobalValue *SrcGV) { in getLinkedToGlobal()
476 GlobalValue *DGV = DstM->getNamedValue(SrcGV->getName()); in getLinkedToGlobal()
497 bool linkGlobalValueProto(GlobalValue *GV);
505 bool linkGlobalValueBody(GlobalValue &Src);
515 static void forceRenaming(GlobalValue *GV, StringRef Name) { in forceRenaming()
[all …]
/NextBSD/contrib/llvm/lib/Target/Mips/
HDMipsTargetObjectFile.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,
HDMipsMachineFunction.h38 explicit MipsCallEntry(const GlobalValue *V);
47 const GlobalValue *Val;
95 MachinePointerInfo callPtrInfo(const GlobalValue *Val);
148 ValueMap<const GlobalValue *, std::unique_ptr<const MipsCallEntry>>
/NextBSD/contrib/llvm/lib/Target/XCore/
HDXCoreAsmPrinter.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()
/NextBSD/contrib/llvm/lib/CodeGen/
HDTargetLoweringObjectFileImpl.cpp50 const GlobalValue *GV, Mangler &Mang, const TargetMachine &TM, in getCFIPersonalitySymbol()
87 const GlobalValue *GV, unsigned Encoding, Mangler &Mang, in getTTypeGlobalReference()
191 static const Comdat *getELFComdat(const GlobalValue *GV) { in getELFComdat()
204 const GlobalValue *GV, SectionKind Kind, Mangler &Mang, in getExplicitSectionGlobal()
248 selectELFSectionForGlobal(MCContext &Ctx, const GlobalValue *GV, in selectELFSectionForGlobal()
311 const GlobalValue *GV, SectionKind Kind, Mangler &Mang, in SelectSectionForGlobal()
519 static void checkMachOComdat(const GlobalValue *GV) { in checkMachOComdat()
529 const GlobalValue *GV, SectionKind Kind, Mangler &Mang, in getExplicitSectionGlobal()
571 const GlobalValue *GV, SectionKind Kind, Mangler &Mang, in SelectSectionForGlobal()
655 const GlobalValue *GV, unsigned Encoding, Mangler &Mang, in getTTypeGlobalReference()
[all …]
/NextBSD/contrib/llvm/include/llvm/ExecutionEngine/Orc/
HDLazyEmittingLayer.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;
/NextBSD/contrib/llvm/lib/Target/NVPTX/
HDNVPTXUtilities.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()
/NextBSD/contrib/llvm/lib/Object/
HDIRObjectFile.cpp117 static GlobalValue *getGV(DataRefImpl &Symb) { in getGV()
121 return reinterpret_cast<GlobalValue*>(Symb.p & ~uintptr_t(3)); in getGV()
127 const GlobalValue *GV = &*I; in skipEmpty()
134 const GlobalValue *GV = &*I; in skipEmpty()
141 const GlobalValue *GV = &*I; in skipEmpty()
153 const GlobalValue *GV = getGV(Symb); in moveSymbolNext()
191 const GlobalValue *GV = getGV(Symb); in printSymbolName()
211 const GlobalValue *GV = getGV(Symb); in getSymbolFlags()
241 GlobalValue *IRObjectFile::getSymbolGV(DataRefImpl Symb) { return getGV(Symb); } in getSymbolGV()
/NextBSD/contrib/llvm/lib/ExecutionEngine/Orc/
HDIndirectionUtils.cpp33 auto IP = new GlobalVariable(M, &PT, false, GlobalValue::ExternalLinkage, in createImplPointer()
35 GlobalValue::NotThreadLocal, 0, true); in createImplPointer()
36 IP->setVisibility(GlobalValue::HiddenVisibility); in createImplPointer()
90 static void raiseVisibilityOnValue(GlobalValue &V, GlobalRenamer &R) { in raiseVisibilityOnValue()
94 V.setLinkage(GlobalValue::ExternalLinkage); in raiseVisibilityOnValue()
95 V.setVisibility(GlobalValue::HiddenVisibility); in raiseVisibilityOnValue()
/NextBSD/contrib/llvm/lib/Target/Hexagon/
HDHexagonTargetObjectFile.h27 bool IsGlobalInSmallSection(const GlobalValue *GV,
30 bool IsGlobalInSmallSection(const GlobalValue *GV,
34 MCSection *SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind,
/NextBSD/contrib/llvm/include/llvm/ExecutionEngine/
HDExecutionEngine.h44 class GlobalValue; variable
156 std::string getMangledName(const GlobalValue *GV);
292 void addGlobalMapping(const GlobalValue *GV, void *Addr);
307 uint64_t updateGlobalMapping(const GlobalValue *GV, void *Addr);
318 void *getPointerToGlobalIfAvailable(const GlobalValue *GV);
325 void *getPointerToGlobal(const GlobalValue *GV);
370 const GlobalValue *getGlobalValueAtAddress(void *Addr);
388 return getPointerToGlobal((const GlobalValue *)GV); in getOrEmitGlobalVariable()

1234567891011