Home
last modified time | relevance | path

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

1234567891011

/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()
130 Declaration = Function::Create(FTy, GlobalValue::ExternalLinkage, in runOnModule()
[all …]
DInternalize.cpp108 static bool shouldInternalize(const GlobalValue &GV, in shouldInternalize()
139 SmallPtrSet<GlobalValue *, 8> Used; in runOnModule()
151 for (SmallPtrSet<GlobalValue *, 8>::iterator I = Used.begin(), E = Used.end(); in runOnModule()
153 GlobalValue *V = *I; in runOnModule()
162 I->setVisibility(GlobalValue::DefaultVisibility); in runOnModule()
163 I->setLinkage(GlobalValue::InternalLinkage); in runOnModule()
199 I->setVisibility(GlobalValue::DefaultVisibility); in runOnModule()
200 I->setLinkage(GlobalValue::InternalLinkage); in runOnModule()
212 I->setVisibility(GlobalValue::DefaultVisibility); in runOnModule()
213 I->setLinkage(GlobalValue::InternalLinkage); in runOnModule()
DGlobalDCE.cpp47 SmallPtrSet<GlobalValue*, 32> AliveGlobals;
52 void GlobalIsNeeded(GlobalValue *GV);
55 bool RemoveUnusedGlobalValue(GlobalValue &GV);
80 typedef std::multimap<const Comdat *, GlobalValue *> ComdatGVPairsTy; in runOnModule()
204 void GlobalDCE::GlobalIsNeeded(GlobalValue *G) { in GlobalIsNeeded()
230 if (GlobalValue *GV = dyn_cast<GlobalValue>(*U)) in GlobalIsNeeded()
238 if (GlobalValue *GV = dyn_cast<GlobalValue>(C)) in MarkUsedGlobalsAsNeeded()
257 bool GlobalDCE::RemoveUnusedGlobalValue(GlobalValue &GV) { in RemoveUnusedGlobalValue()
/external/llvm/lib/IR/
DGlobals.cpp31 bool GlobalValue::isMaterializable() const { in isMaterializable()
34 bool GlobalValue::isDematerializable() const { in isDematerializable()
37 bool GlobalValue::Materialize(std::string *ErrInfo) { in Materialize()
40 void GlobalValue::Dematerialize() { in Dematerialize()
44 const DataLayout *GlobalValue::getDataLayout() const { in getDataLayout()
50 void GlobalValue::destroyConstant() { in destroyConstant()
56 void GlobalValue::copyAttributesFrom(const GlobalValue *Src) { in copyAttributesFrom()
62 unsigned GlobalValue::getAlignment() const { in getAlignment()
84 void GlobalObject::copyAttributesFrom(const GlobalValue *Src) { in copyAttributesFrom()
86 GlobalValue::copyAttributesFrom(GV); in copyAttributesFrom()
[all …]
/external/llvm/include/llvm/CodeGen/
DTargetLoweringObjectFileImpl.h31 class GlobalValue; variable
48 const MCSection *getExplicitSectionGlobal(const GlobalValue *GV,
52 const MCSection *SelectSectionForGlobal(const GlobalValue *GV,
59 getTTypeGlobalReference(const GlobalValue *GV, unsigned Encoding,
65 MCSymbol *getCFIPersonalitySymbol(const GlobalValue *GV, Mangler &Mang,
94 SelectSectionForGlobal(const GlobalValue *GV,
99 getExplicitSectionGlobal(const GlobalValue *GV,
107 getTTypeGlobalReference(const GlobalValue *GV, unsigned Encoding,
113 MCSymbol *getCFIPersonalitySymbol(const GlobalValue *GV, Mangler &Mang,
125 getExplicitSectionGlobal(const GlobalValue *GV,
[all …]
/external/llvm/include/llvm/Target/
DTargetLoweringObjectFile.h33 class GlobalValue; variable
77 static SectionKind getKindForGlobal(const GlobalValue *GV,
83 const MCSection *SectionForGlobal(const GlobalValue *GV,
90 const MCSection *SectionForGlobal(const GlobalValue *GV, in SectionForGlobal()
100 getExplicitSectionGlobal(const GlobalValue *GV, SectionKind Kind,
104 virtual const MCSection *getSpecialCasedSectionGlobals(const GlobalValue *GV, in getSpecialCasedSectionGlobals()
113 getTTypeGlobalReference(const GlobalValue *GV, unsigned Encoding,
119 MCSymbol *getSymbolWithGlobalValueBase(const GlobalValue *GV,
124 virtual MCSymbol *getCFIPersonalitySymbol(const GlobalValue *GV,
161 SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind,
/external/llvm/include/llvm/IR/
DGVMaterializer.h25 class GlobalValue; variable
37 virtual bool isMaterializable(const GlobalValue *GV) const = 0;
41 virtual bool isDematerializable(const GlobalValue *GV) const = 0;
45 virtual std::error_code Materialize(GlobalValue *GV) = 0;
52 virtual void Dematerialize(GlobalValue *) {} in Dematerialize() argument
DMangler.h23 class GlobalValue; variable
42 mutable DenseMap<const GlobalValue*, unsigned> AnonGlobalIDs;
54 void getNameWithPrefix(raw_ostream &OS, const GlobalValue *GV,
56 void getNameWithPrefix(SmallVectorImpl<char> &OutName, const GlobalValue *GV,
DGlobalValue.h30 class GlobalValue : public Constant {
31 GlobalValue(const GlobalValue &) LLVM_DELETED_FUNCTION;
63 GlobalValue(Type *Ty, ValueTy VTy, Use *Ops, unsigned NumOps, in GlobalValue() function
105 ~GlobalValue() { in ~GlobalValue()
117 return const_cast<GlobalValue *>(this)->getComdat(); in getComdat()
282 virtual void copyAttributesFrom(const GlobalValue *Src);
DGlobalObject.h26 class GlobalObject : public GlobalValue {
32 : GlobalValue(Ty, VTy, Ops, NumOps, Linkage, Name), ObjComdat(nullptr) { in GlobalObject()
53 void copyAttributesFrom(const GlobalValue *Src) override;
DGlobalAlias.h29 class GlobalAlias : public GlobalValue, public ilist_node<GlobalAlias> {
59 GlobalValue *Aliasee);
63 GlobalValue *Aliasee);
66 static GlobalAlias *create(const Twine &Name, GlobalValue *Aliasee);
/external/llvm/lib/Target/SystemZ/
DSystemZConstantPoolValue.h18 class GlobalValue; variable
30 const GlobalValue *GV;
34 SystemZConstantPoolValue(const GlobalValue *GV,
39 Create(const GlobalValue *GV, SystemZCP::SystemZCPModifier Modifier);
49 const GlobalValue *getGlobalValue() const { return GV; } in getGlobalValue()
/external/llvm/include/llvm/ExecutionEngine/
DExecutionEngine.h40 class GlobalValue; variable
60 struct AddressMapConfig : public ValueMapConfig<const GlobalValue*> {
63 static void onDelete(ExecutionEngineState *EES, const GlobalValue *Old);
64 static void onRAUW(ExecutionEngineState *, const GlobalValue *,
65 const GlobalValue *);
68 typedef ValueMap<const GlobalValue *, void *, AddressMapConfig>
82 std::map<void *, AssertingVH<const GlobalValue> > GlobalAddressReverseMap;
91 std::map<void*, AssertingVH<const GlobalValue> > &
99 void *RemoveMapping(const GlobalValue *ToUnmap);
335 void addGlobalMapping(const GlobalValue *GV, void *Addr);
[all …]
/external/llvm/lib/Analysis/IPA/
DGlobalsModRef.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);
253 GlobalValue *OkayStoreDest) { in AnalyzeUsesOfPointer()
300 bool GlobalsModRef::AnalyzeIndirectGlobalMemory(GlobalValue *GV) { in AnalyzeIndirectGlobalMemory()
[all …]
/external/llvm/lib/Object/
DIRObjectFile.cpp122 static const GlobalValue *getGV(DataRefImpl &Symb) { in getGV()
126 return reinterpret_cast<GlobalValue*>(Symb.p & ~uintptr_t(3)); in getGV()
132 const GlobalValue *GV = &*I; in skipEmpty()
139 const GlobalValue *GV = &*I; in skipEmpty()
146 const GlobalValue *GV = &*I; in skipEmpty()
158 const GlobalValue *GV = getGV(Symb); in moveSymbolNext()
194 const GlobalValue *GV = getGV(Symb); in printSymbolName()
210 static bool isDeclaration(const GlobalValue &V) { in isDeclaration()
221 const GlobalValue *GV = getGV(Symb); in getSymbolFlags()
251 const GlobalValue *IRObjectFile::getSymbolGV(DataRefImpl Symb) const { in getSymbolGV()
[all …]
/external/clang/lib/CodeGen/
DCGCXX.cpp120 llvm::GlobalValue::LinkageTypes Linkage = getFunctionLinkage(AliasDecl); in TryEmitDefinitionAsAlias()
126 llvm::GlobalValue::LinkageTypes TargetLinkage = in TryEmitDefinitionAsAlias()
131 llvm::GlobalValue *Entry = GetGlobalValue(MangledName); in TryEmitDefinitionAsAlias()
144 auto *Ref = cast<llvm::GlobalValue>(GetAddrOfGlobal(TargetDecl)); in TryEmitDefinitionAsAlias()
151 if (llvm::GlobalValue::isDiscardableIfUnused(Linkage) && in TryEmitDefinitionAsAlias()
152 (TargetLinkage != llvm::GlobalValue::AvailableExternallyLinkage || in TryEmitDefinitionAsAlias()
175 if (llvm::GlobalValue::isWeakForLinker(TargetLinkage)) in TryEmitDefinitionAsAlias()
228 llvm::GlobalValue *
236 if (llvm::GlobalValue *existing = GetGlobalValue(name)) in GetAddrOfCXXConstructor()
285 llvm::GlobalValue *
[all …]
DCodeGenModule.h41 class GlobalValue; variable
308 llvm::SmallPtrSet<llvm::GlobalValue*, 10> WeakRefReferences;
319 DeferredGlobal(llvm::GlobalValue *GV, GlobalDecl GD) : GV(GV), GD(GD) {} in DeferredGlobal()
320 llvm::AssertingVH<llvm::GlobalValue> GV;
324 void addDeferredDeclToEmit(llvm::GlobalValue *GV, GlobalDecl GD) { in addDeferredDeclToEmit()
380 llvm::GlobalValue *> StaticExternCMap;
635 void setGlobalVisibility(llvm::GlobalValue *GV, const NamedDecl *D) const;
641 static llvm::GlobalValue::VisibilityTypes GetLLVMVisibility(Visibility V) { in GetLLVMVisibility()
643 case DefaultVisibility: return llvm::GlobalValue::DefaultVisibility; in GetLLVMVisibility()
644 case HiddenVisibility: return llvm::GlobalValue::HiddenVisibility; in GetLLVMVisibility()
[all …]
DCodeGenModule.cpp199 llvm::GlobalValue *Entry = GetGlobalValue(MangledName); in applyReplacements()
256 llvm::GlobalValue *Entry = GetGlobalValue(MangledName); in checkAliases()
258 const llvm::GlobalValue *GV = getAliasedGlobal(*Alias); in checkAliases()
268 llvm::GlobalValue *AliaseeGV; in checkAliases()
270 AliaseeGV = cast<llvm::GlobalValue>(CE->getOperand(0)); in checkAliases()
272 AliaseeGV = cast<llvm::GlobalValue>(Aliasee); in checkAliases()
303 llvm::GlobalValue *Entry = GetGlobalValue(MangledName); in checkAliases()
476 void CodeGenModule::setGlobalVisibility(llvm::GlobalValue *GV, in setGlobalVisibility()
480 GV->setVisibility(llvm::GlobalValue::DefaultVisibility); in setGlobalVisibility()
578 llvm::GlobalValue *CodeGenModule::GetGlobalValue(StringRef Name) { in GetGlobalValue()
[all …]
/external/llvm/lib/Linker/
DLinkModules.cpp444 bool getLinkageResult(GlobalValue *Dest, const GlobalValue *Src,
445 GlobalValue::LinkageTypes &LT,
446 GlobalValue::VisibilityTypes &Vis,
451 GlobalValue *getLinkedToGlobal(GlobalValue *SrcGV) { in getLinkedToGlobal()
458 GlobalValue *DGV = DstM->getNamedValue(SrcGV->getName()); in getLinkedToGlobal()
489 static void forceRenaming(GlobalValue *GV, StringRef Name) { in forceRenaming()
498 if (GlobalValue *ConflictGV = M->getNamedValue(Name)) { in forceRenaming()
509 static void copyGVAttributes(GlobalValue *DestGV, const GlobalValue *SrcGV) { in copyGVAttributes()
524 static bool isLessConstraining(GlobalValue::VisibilityTypes a, in isLessConstraining()
525 GlobalValue::VisibilityTypes b) { in isLessConstraining()
[all …]
/external/llvm/lib/Target/XCore/
DXCoreAsmPrinter.cpp132 case GlobalValue::AppendingLinkage: in EmitGlobalVariable()
134 case GlobalValue::LinkOnceAnyLinkage: in EmitGlobalVariable()
135 case GlobalValue::LinkOnceODRLinkage: in EmitGlobalVariable()
136 case GlobalValue::WeakAnyLinkage: in EmitGlobalVariable()
137 case GlobalValue::WeakODRLinkage: in EmitGlobalVariable()
138 case GlobalValue::ExternalLinkage: in EmitGlobalVariable()
139 case GlobalValue::CommonLinkage: in EmitGlobalVariable()
148 case GlobalValue::InternalLinkage: in EmitGlobalVariable()
149 case GlobalValue::PrivateLinkage: in EmitGlobalVariable()
/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,
DMipsMachineFunction.h38 explicit MipsCallEntry(const GlobalValue *V);
47 const GlobalValue *Val;
94 MachinePointerInfo callPtrInfo(const GlobalValue *Val);
141 ValueMap<const GlobalValue *, const MipsCallEntry *> GlobalCallEntries;
/external/llvm/lib/Target/Hexagon/
DHexagonTargetObjectFile.h26 bool IsGlobalInSmallSection(const GlobalValue *GV,
29 bool IsGlobalInSmallSection(const GlobalValue *GV,
33 const MCSection *SelectSectionForGlobal(const GlobalValue *GV,
/external/llvm/lib/CodeGen/
DTargetLoweringObjectFileImpl.cpp48 const GlobalValue *GV, Mangler &Mang, const TargetMachine &TM, in getCFIPersonalitySymbol()
87 const GlobalValue *GV, unsigned Encoding, Mangler &Mang, in getTTypeGlobalReference()
195 static const Comdat *getELFComdat(const GlobalValue *GV) { in getELFComdat()
208 const GlobalValue *GV, SectionKind Kind, Mangler &Mang, in getExplicitSectionGlobal()
246 SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind, in SelectSectionForGlobal()
505 static void checkMachOComdat(const GlobalValue *GV) { in checkMachOComdat()
515 const GlobalValue *GV, SectionKind Kind, Mangler &Mang, in getExplicitSectionGlobal()
592 SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind, in SelectSectionForGlobal()
673 const GlobalValue *GV, unsigned Encoding, Mangler &Mang, in getTTypeGlobalReference()
705 const GlobalValue *GV, Mangler &Mang, const TargetMachine &TM, in getCFIPersonalitySymbol()
[all …]
/external/llvm/lib/Transforms/Utils/
DModuleUtils.cpp69 GlobalValue::AppendingLinkage, NewInit, Array); in appendToGlobalArray()
81 llvm::collectUsedGlobalVariables(Module &M, SmallPtrSet<GlobalValue *, 8> &Set, in collectUsedGlobalVariables() argument
91 GlobalValue *G = cast<GlobalValue>(Op->stripPointerCastsNoFollowAliases()); in collectUsedGlobalVariables()

1234567891011