Home
last modified time | relevance | path

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

123456789

/external/llvm/lib/VMCore/
DGlobals.cpp29 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/CodeGen/
DTargetLoweringObjectFileImpl.h31 class GlobalValue; variable
51 getExplicitSectionGlobal(const GlobalValue *GV, SectionKind Kind,
55 SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind,
62 getExprForDwarfGlobalReference(const GlobalValue *GV, Mangler *Mang,
68 getCFIPersonalitySymbol(const GlobalValue *GV, Mangler *Mang,
91 SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind,
95 getExplicitSectionGlobal(const GlobalValue *GV, SectionKind Kind,
103 virtual bool shouldEmitUsedDirectiveFor(const GlobalValue *GV,
109 getExprForDwarfGlobalReference(const GlobalValue *GV, Mangler *Mang,
115 getCFIPersonalitySymbol(const GlobalValue *GV, Mangler *Mang,
[all …]
/external/llvm/include/llvm/Target/
DTargetLoweringObjectFile.h31 class GlobalValue; variable
65 virtual bool shouldEmitUsedDirectiveFor(const GlobalValue *GV, in shouldEmitUsedDirectiveFor()
76 static SectionKind getKindForGlobal(const GlobalValue *GV,
82 const MCSection *SectionForGlobal(const GlobalValue *GV,
89 const MCSection *SectionForGlobal(const GlobalValue *GV, in SectionForGlobal()
99 getExplicitSectionGlobal(const GlobalValue *GV, SectionKind Kind,
105 getSpecialCasedSectionGlobals(const GlobalValue *GV, Mangler *Mang, in getSpecialCasedSectionGlobals()
114 getExprForDwarfGlobalReference(const GlobalValue *GV, Mangler *Mang,
120 getCFIPersonalitySymbol(const GlobalValue *GV, Mangler *Mang,
141 SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind,
DMangler.h21 class GlobalValue; variable
43 DenseMap<const GlobalValue*, unsigned> AnonGlobalIDs;
55 MCSymbol *getSymbol(const GlobalValue *GV);
61 void getNameWithPrefix(SmallVectorImpl<char> &OutName, const GlobalValue *GV,
/external/llvm/lib/Transforms/IPO/
DExtractGV.cpp27 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()
DGlobalDCE.cpp44 SmallPtrSet<GlobalValue*, 32> AliveGlobals;
48 void GlobalIsNeeded(GlobalValue *GV);
51 bool RemoveUnusedGlobalValue(GlobalValue &GV);
160 void GlobalDCE::GlobalIsNeeded(GlobalValue *G) { in GlobalIsNeeded()
183 if (GlobalValue *GV = dyn_cast<GlobalValue>(*U)) in GlobalIsNeeded()
191 if (GlobalValue *GV = dyn_cast<GlobalValue>(C)) in MarkUsedGlobalsAsNeeded()
207 bool GlobalDCE::RemoveUnusedGlobalValue(GlobalValue &GV) { in RemoveUnusedGlobalValue()
/external/llvm/include/llvm/
DGVMaterializer.h26 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
DGlobalValue.h28 class GlobalValue : public Constant {
29 GlobalValue(const GlobalValue &); // do not implement
59 GlobalValue(Type *ty, ValueTy vty, Use *Ops, unsigned NumOps, in GlobalValue() function
75 ~GlobalValue() { in ~GlobalValue()
239 virtual void copyAttributesFrom(const GlobalValue *Src);
290 static inline bool classof(const GlobalValue *) { return true; } in classof() argument
DGlobalAlias.h29 class GlobalAlias : public GlobalValue, public ilist_node<GlobalAlias> {
69 const GlobalValue *getAliasedGlobal() const;
76 const GlobalValue *resolveAliasedGlobal(bool stopOnWeak = true) const;
/external/clang/lib/CodeGen/
DCGCXX.cpp109 llvm::GlobalValue::LinkageTypes Linkage in TryEmitDefinitionAsAlias()
114 case llvm::GlobalValue::ExternalLinkage: in TryEmitDefinitionAsAlias()
115 case llvm::GlobalValue::ExternalWeakLinkage: in TryEmitDefinitionAsAlias()
119 case llvm::GlobalValue::InternalLinkage: in TryEmitDefinitionAsAlias()
120 case llvm::GlobalValue::PrivateLinkage: in TryEmitDefinitionAsAlias()
121 case llvm::GlobalValue::LinkerPrivateLinkage: in TryEmitDefinitionAsAlias()
125 case llvm::GlobalValue::LinkOnceAnyLinkage: in TryEmitDefinitionAsAlias()
126 case llvm::GlobalValue::LinkOnceODRLinkage: in TryEmitDefinitionAsAlias()
134 llvm::GlobalValue::LinkageTypes TargetLinkage in TryEmitDefinitionAsAlias()
137 if (llvm::GlobalValue::isWeakForLinker(TargetLinkage)) in TryEmitDefinitionAsAlias()
[all …]
DCodeGenModule.h37 class GlobalValue; variable
244 llvm::SmallPtrSet<llvm::GlobalValue*, 10> WeakRefReferences;
475 void setGlobalVisibility(llvm::GlobalValue *GV, const NamedDecl *D) const;
493 void setTypeVisibility(llvm::GlobalValue *GV, const CXXRecordDecl *D,
496 static llvm::GlobalValue::VisibilityTypes GetLLVMVisibility(Visibility V) { in GetLLVMVisibility()
498 case DefaultVisibility: return llvm::GlobalValue::DefaultVisibility; in GetLLVMVisibility()
499 case HiddenVisibility: return llvm::GlobalValue::HiddenVisibility; in GetLLVMVisibility()
500 case ProtectedVisibility: return llvm::GlobalValue::ProtectedVisibility; in GetLLVMVisibility()
524 llvm::GlobalValue::LinkageTypes Linkage);
663 llvm::GlobalValue *GetAddrOfCXXConstructor(const CXXConstructorDecl *ctor,
[all …]
/external/llvm/include/llvm/ExecutionEngine/
DExecutionEngine.h39 class GlobalValue; variable
53 struct AddressMapConfig : public ValueMapConfig<const GlobalValue*> {
56 static void onDelete(ExecutionEngineState *EES, const GlobalValue *Old);
57 static void onRAUW(ExecutionEngineState *, const GlobalValue *,
58 const GlobalValue *);
61 typedef ValueMap<const GlobalValue *, void *, AddressMapConfig>
75 std::map<void *, AssertingVH<const GlobalValue> > GlobalAddressReverseMap;
84 std::map<void*, AssertingVH<const GlobalValue> > &
92 void *RemoveMapping(const MutexGuard &, const GlobalValue *ToUnmap);
278 void addGlobalMapping(const GlobalValue *GV, void *Addr);
[all …]
/external/llvm/lib/Linker/
DLinkModules.cpp397 bool getLinkageResult(GlobalValue *Dest, const GlobalValue *Src,
398 GlobalValue::LinkageTypes &LT,
399 GlobalValue::VisibilityTypes &Vis,
404 GlobalValue *getLinkedToGlobal(GlobalValue *SrcGV) { in getLinkedToGlobal()
411 GlobalValue *DGV = DstM->getNamedValue(SrcGV->getName()); in getLinkedToGlobal()
449 static void forceRenaming(GlobalValue *GV, StringRef Name) { in forceRenaming()
458 if (GlobalValue *ConflictGV = M->getNamedValue(Name)) { in forceRenaming()
469 static void copyGVAttributes(GlobalValue *DestGV, const GlobalValue *SrcGV) { in copyGVAttributes()
478 static bool isLessConstraining(GlobalValue::VisibilityTypes a, in isLessConstraining()
479 GlobalValue::VisibilityTypes b) { in isLessConstraining()
[all …]
/external/llvm/lib/Analysis/IPA/
DGlobalsModRef.cpp52 std::map<const GlobalValue*, unsigned> GlobalInfo;
57 unsigned getInfoForGlobal(const GlobalValue *GV) const { in getInfoForGlobal()
59 std::map<const GlobalValue*, unsigned>::const_iterator I = in getInfoForGlobal()
77 std::set<const GlobalValue*> NonAddressTakenGlobals;
81 std::set<const GlobalValue*> IndirectGlobals;
85 std::map<const Value*, const GlobalValue*> AllocsForIndirectGlobals;
183 GlobalValue *OkayStoreDest = 0);
184 bool AnalyzeIndirectGlobalMemory(GlobalValue *GV);
248 GlobalValue *OkayStoreDest) { in AnalyzeUsesOfPointer()
304 bool GlobalsModRef::AnalyzeIndirectGlobalMemory(GlobalValue *GV) { in AnalyzeIndirectGlobalMemory()
[all …]
/external/llvm/lib/Target/XCore/
DXCoreAsmPrinter.cpp128 case GlobalValue::AppendingLinkage: in EmitGlobalVariable()
130 case GlobalValue::LinkOnceAnyLinkage: in EmitGlobalVariable()
131 case GlobalValue::LinkOnceODRLinkage: in EmitGlobalVariable()
132 case GlobalValue::WeakAnyLinkage: in EmitGlobalVariable()
133 case GlobalValue::WeakODRLinkage: in EmitGlobalVariable()
134 case GlobalValue::ExternalLinkage: in EmitGlobalVariable()
142 case GlobalValue::InternalLinkage: in EmitGlobalVariable()
143 case GlobalValue::PrivateLinkage: in EmitGlobalVariable()
145 case GlobalValue::DLLImportLinkage: in EmitGlobalVariable()
147 case GlobalValue::DLLExportLinkage: in EmitGlobalVariable()
/external/llvm/lib/Transforms/Instrumentation/
DProfilingUtils.h23 class GlobalValue; variable
28 GlobalValue *Arr = 0,
31 GlobalValue *CounterArray,
/external/llvm/lib/Target/Hexagon/
DHexagonTargetObjectFile.h26 bool IsGlobalInSmallSection(const GlobalValue *GV,
29 bool IsGlobalInSmallSection(const GlobalValue *GV,
32 const MCSection* SelectSectionForGlobal(const GlobalValue *GV,
/external/llvm/lib/Target/Mips/
DMipsTargetObjectFile.h27 bool IsGlobalInSmallSection(const GlobalValue *GV,
29 bool IsGlobalInSmallSection(const GlobalValue *GV,
32 const MCSection *SelectSectionForGlobal(const GlobalValue *GV,
/external/llvm/lib/Target/MBlaze/
DMBlazeTargetObjectFile.h26 bool IsGlobalInSmallSection(const GlobalValue *GV,
30 bool IsGlobalInSmallSection(const GlobalValue *GV,
33 const MCSection *SelectSectionForGlobal(const GlobalValue *GV,
/external/llvm/tools/lto/
DLTOModule.h30 class GlobalValue; variable
47 llvm::GlobalValue *symbol;
141 void addPotentialUndefinedSymbol(llvm::GlobalValue *dcl, bool isFunc);
144 void addDefinedSymbol(llvm::GlobalValue *def, bool isFunction);
150 void addDefinedDataSymbol(llvm::GlobalValue *v);
DLTOCodeGenerator.cpp258 applyRestriction(GlobalValue &GV, in applyRestriction()
260 SmallPtrSet<GlobalValue*, 8> &asmUsed, in applyRestriction() argument
274 SmallPtrSet<GlobalValue*, 8> &UsedValues) { in findUsedValues() argument
281 if (GlobalValue *GV = in findUsedValues()
282 dyn_cast<GlobalValue>(Inits->getOperand(i)->stripPointerCasts())) in findUsedValues()
298 SmallPtrSet<GlobalValue*, 8> asmUsed; in applyScopeRestrictions()
318 for (SmallPtrSet<GlobalValue*, 16>::const_iterator i = asmUsed.begin(), in applyScopeRestrictions()
320 GlobalValue *GV = *i; in applyScopeRestrictions()
328 llvm::GlobalValue::AppendingLinkage, in applyScopeRestrictions()
/external/llvm/lib/AsmParser/
DLLParser.cpp127 std::vector<std::pair<ValID, GlobalValue*> > &Refs, in ResolveForwardRefBlockAddresses()
574 if (Linkage != GlobalValue::ExternalLinkage && in ParseAlias()
575 Linkage != GlobalValue::WeakAnyLinkage && in ParseAlias()
576 Linkage != GlobalValue::WeakODRLinkage && in ParseAlias()
577 Linkage != GlobalValue::InternalLinkage && in ParseAlias()
578 Linkage != GlobalValue::PrivateLinkage && in ParseAlias()
579 Linkage != GlobalValue::LinkerPrivateLinkage && in ParseAlias()
580 Linkage != GlobalValue::LinkerPrivateWeakLinkage) in ParseAlias()
602 (GlobalValue::LinkageTypes)Linkage, Name, in ParseAlias()
604 GA->setVisibility((GlobalValue::VisibilityTypes)Visibility); in ParseAlias()
[all …]
/external/llvm/tools/llvm-extract/
Dllvm-extract.cpp98 SetVector<GlobalValue *> GVs; in main()
102 GlobalValue *GV = M->getNamedGlobal(ExtractGlobals[i]); in main()
136 GlobalValue *GV = M->getFunction(ExtractFuncs[i]); in main()
171 GlobalValue *GV = GVs[i]; in main()
182 SmallPtrSet<GlobalValue *, 8> GVSet(GVs.begin(), GVs.end()); in main()
211 std::vector<GlobalValue*> Gvs(GVs.begin(), GVs.end()); in main()
/external/llvm/tools/llvm-diff/
DDifferenceEngine.h27 class GlobalValue; variable
84 bool equivalentAsOperands(GlobalValue *L, GlobalValue *R);
/external/llvm/unittests/VMCore/
DVerifierTest.cpp28 OwningPtr<Function> F(Function::Create(FTy, GlobalValue::ExternalLinkage)); in TEST()
53 GlobalValue::ExternalLinkage, in TEST()
56 GlobalValue::ExternalLinkage, in TEST()

123456789