Home
last modified time | relevance | path

Searched refs:GlobalVariable (Results 1 – 25 of 137) sorted by relevance

123456

/external/llvm/include/llvm/
DGlobalVariable.h35 class GlobalVariable : public GlobalValue, public ilist_node<GlobalVariable> {
36 friend class SymbolTableListTraits<GlobalVariable, Module>;
38 void operator=(const GlobalVariable &); // Do not implement
39 GlobalVariable(const GlobalVariable &); // Do not implement
53 GlobalVariable(Type *Ty, bool isConstant, LinkageTypes Linkage,
58 GlobalVariable(Module &M, Type *Ty, bool isConstant,
61 GlobalVariable *InsertBefore = 0, bool ThreadLocal = false,
64 ~GlobalVariable() { in ~GlobalVariable()
160 static inline bool classof(const GlobalVariable *) { return true; } in classof() argument
167 struct OperandTraits<GlobalVariable> :
[all …]
DModule.h53 template<> struct ilist_traits<GlobalVariable>
54 : public SymbolTableListTraits<GlobalVariable, Module> {
56 GlobalVariable *createSentinel() const {
57 return static_cast<GlobalVariable*>(&Sentinel);
59 static void destroySentinel(GlobalVariable*) {}
61 GlobalVariable *provideInitialHead() const { return createSentinel(); }
62 GlobalVariable *ensureHead(GlobalVariable*) const { return createSentinel(); }
63 static void noteHead(GlobalVariable*, GlobalVariable*) {}
65 mutable ilist_node<GlobalVariable> Sentinel;
117 typedef iplist<GlobalVariable> GlobalListType;
[all …]
DAutoUpgrade.h19 class GlobalVariable; variable
41 bool UpgradeGlobalVariable(GlobalVariable *GV);
/external/llvm/lib/VMCore/
DGlobals.cpp67 if (const GlobalVariable *GV = dyn_cast<GlobalVariable>(this)) in isDeclaration()
83 GlobalVariable::GlobalVariable(Type *Ty, bool constant, LinkageTypes Link, in GlobalVariable() function in GlobalVariable
88 OperandTraits<GlobalVariable>::op_begin(this), in GlobalVariable()
100 GlobalVariable::GlobalVariable(Module &M, Type *Ty, bool constant, in GlobalVariable() function in GlobalVariable
103 GlobalVariable *Before, bool ThreadLocal, in GlobalVariable()
107 OperandTraits<GlobalVariable>::op_begin(this), in GlobalVariable()
124 void GlobalVariable::setParent(Module *parent) { in setParent()
132 void GlobalVariable::removeFromParent() { in removeFromParent()
136 void GlobalVariable::eraseFromParent() { in eraseFromParent()
140 void GlobalVariable::replaceUsesOfWithOnConstant(Value *From, Value *To, in replaceUsesOfWithOnConstant()
[all …]
DIntrinsicInst.cpp44 } else if (GlobalVariable *GV = dyn_cast<GlobalVariable>(C)) { in StripCast()
49 return dyn_cast<GlobalVariable>(C); in StripCast()
DModule.cpp38 template class llvm::SymbolTableListTraits<GlobalVariable, Module>;
146 Function *New = Function::Create(Ty, GlobalVariable::ExternalLinkage, Name); in getOrInsertFunction()
179 Function *New = Function::Create(Ty, GlobalVariable::ExternalLinkage, Name); in getOrInsertTargetIntrinsic()
255 GlobalVariable *Module::getGlobalVariable(StringRef Name, in getGlobalVariable()
257 if (GlobalVariable *Result = in getGlobalVariable()
258 dyn_cast_or_null<GlobalVariable>(getNamedValue(Name))) in getGlobalVariable()
272 GlobalVariable *GV = dyn_cast_or_null<GlobalVariable>(getNamedValue(Name)); in getOrInsertGlobal()
275 GlobalVariable *New = in getOrInsertGlobal()
276 new GlobalVariable(*this, Ty, false, GlobalVariable::ExternalLinkage, in getOrInsertGlobal()
/external/llvm/lib/Transforms/IPO/
DConstantMerge.cpp47 bool hasKnownAlignment(GlobalVariable *GV) const;
51 unsigned getAlignment(GlobalVariable *GV) const;
66 static void FindUsedValues(GlobalVariable *LLVMUsed, in FindUsedValues()
79 static bool IsBetterCannonical(const GlobalVariable &A, in IsBetterCannonical()
80 const GlobalVariable &B) { in IsBetterCannonical()
90 bool ConstantMerge::hasKnownAlignment(GlobalVariable *GV) const { in hasKnownAlignment()
94 unsigned ConstantMerge::getAlignment(GlobalVariable *GV) const { in getAlignment()
111 DenseMap<PointerIntPair<Constant*, 1, bool>, GlobalVariable*> CMap; in runOnModule()
114 SmallVector<std::pair<GlobalVariable*, GlobalVariable*>, 32> Replacements; in runOnModule()
127 GlobalVariable *GV = GVI++; in runOnModule()
[all …]
DGlobalOpt.cpp75 GlobalVariable *FindGlobalCtors(Module &M);
79 bool OptimizeGlobalCtorsList(GlobalVariable *&GCL);
80 bool ProcessGlobal(GlobalVariable *GV,Module::global_iterator &GVI);
81 bool ProcessInternalGlobal(GlobalVariable *GV,Module::global_iterator &GVI,
234 if (const GlobalVariable *GV = dyn_cast<GlobalVariable>( in AnalyzeGlobal()
494 static GlobalVariable *SRAGlobal(GlobalVariable *GV, const TargetData &TD) { in SRAGlobal()
503 std::vector<GlobalVariable*> NewGlobals; in SRAGlobal()
517 GlobalVariable *NGV = new GlobalVariable(STy->getElementType(i), false, in SRAGlobal()
518 GlobalVariable::InternalLinkage, in SRAGlobal()
550 GlobalVariable *NGV = new GlobalVariable(STy->getElementType(), false, in SRAGlobal()
[all …]
DStripSymbols.cpp148 if (GlobalVariable *GV = dyn_cast<GlobalVariable>(C)) { in RemoveDeadConstant()
193 static void findUsedValues(GlobalVariable *LLVMUsed, in findUsedValues()
325 if (GlobalVariable *GV = dyn_cast<GlobalVariable>(C)) { in runOnModule()
366 GlobalVariable *GV = DIGlobalVariable(*I).getGlobal(); in runOnModule()
/external/clang/lib/CodeGen/
DCGVTables.h37 llvm::DenseMap<const CXXRecordDecl *, llvm::GlobalVariable *> VTables;
103 llvm::GlobalVariable *GetAddrOfVTable(const CXXRecordDecl *RD);
106 void EmitVTableDefinition(llvm::GlobalVariable *VTable,
107 llvm::GlobalVariable::LinkageTypes Linkage,
112 llvm::GlobalVariable *
115 llvm::GlobalVariable::LinkageTypes Linkage,
120 llvm::GlobalVariable *GetAddrOfVTT(const CXXRecordDecl *RD);
123 void EmitVTTDefinition(llvm::GlobalVariable *VTT,
124 llvm::GlobalVariable::LinkageTypes Linkage,
135 void GenerateClassData(llvm::GlobalVariable::LinkageTypes Linkage,
DCGRTTI.cpp33 llvm::GlobalVariable *
34 GetAddrOfTypeName(QualType Ty, llvm::GlobalVariable::LinkageTypes Linkage);
113 llvm::GlobalVariable *
115 llvm::GlobalVariable::LinkageTypes Linkage) { in GetAddrOfTypeName()
128 llvm::GlobalVariable *GV = in GetAddrOfTypeName()
145 llvm::GlobalVariable *GV = CGM.getModule().getNamedGlobal(Name); in GetAddrOfExternalRTTIDescriptor()
149 GV = new llvm::GlobalVariable(CGM.getModule(), CGM.Int8PtrTy, in GetAddrOfExternalRTTIDescriptor()
308 static llvm::GlobalVariable::LinkageTypes
517 maybeUpdateRTTILinkage(CodeGenModule &CGM, llvm::GlobalVariable *GV, in maybeUpdateRTTILinkage()
524 llvm::GlobalVariable::LinkageTypes Linkage = getTypeInfoLinkage(CGM, Ty); in maybeUpdateRTTILinkage()
[all …]
DCodeGenModule.cpp270 if (GV->getLinkage() != llvm::GlobalVariable::LinkOnceODRLinkage || in setTypeVisibility()
271 GV->getVisibility() != llvm::GlobalVariable::DefaultVisibility) in setTypeVisibility()
406 new llvm::GlobalVariable(TheModule, AT, false, in EmitCtorList()
637 llvm::GlobalVariable *GV = in EmitLLVMUsed()
638 new llvm::GlobalVariable(getModule(), ATy, false, in EmitLLVMUsed()
694 llvm::GlobalValue *gv = new llvm::GlobalVariable(getModule(), in EmitGlobalAnnotations()
707 llvm::GlobalValue *gv = new llvm::GlobalVariable(getModule(), s->getType(), in EmitAnnotationString()
1169 llvm::GlobalVariable *GV = in GetOrCreateLLVMGlobal()
1170 new llvm::GlobalVariable(getModule(), Ty->getElementType(), false, in GetOrCreateLLVMGlobal()
1203 llvm::GlobalVariable *
[all …]
DCGObjCMac.cpp776 llvm::DenseMap<IdentifierInfo*, llvm::GlobalVariable*> ClassNames;
779 llvm::DenseMap<Selector, llvm::GlobalVariable*> MethodVarNames;
786 llvm::StringMap<llvm::GlobalVariable*> MethodVarTypes;
793 llvm::DenseMap<IdentifierInfo*, llvm::GlobalVariable*> PropertyNames;
796 llvm::DenseMap<IdentifierInfo*, llvm::GlobalVariable*> ClassReferences;
799 llvm::DenseMap<Selector, llvm::GlobalVariable*> SelectorReferences;
804 llvm::DenseMap<IdentifierInfo*, llvm::GlobalVariable*> Protocols;
918 llvm::GlobalVariable *CreateMetadataVar(Twine Name,
1166 virtual llvm::GlobalVariable *GetClassGlobal(const std::string &Name) { in GetClassGlobal()
1174 llvm::GlobalVariable* ObjCEmptyCacheVar;
[all …]
DCGVTT.cpp24 llvm::GlobalVariable::LinkageTypes Linkage, in GetAddrOfVTTVTable()
41 CodeGenVTables::EmitVTTDefinition(llvm::GlobalVariable *VTT, in EmitVTTDefinition()
42 llvm::GlobalVariable::LinkageTypes Linkage, in EmitVTTDefinition()
99 llvm::GlobalVariable *CodeGenVTables::GetAddrOfVTT(const CXXRecordDecl *RD) { in GetAddrOfVTT()
116 llvm::GlobalVariable *GV = in GetAddrOfVTT()
DCGVTables.cpp135 if ((Fn->getLinkage() != llvm::GlobalVariable::LinkOnceODRLinkage && in setThunkVisibility()
136 Fn->getLinkage() != llvm::GlobalVariable::WeakODRLinkage) || in setThunkVisibility()
137 Fn->getVisibility() != llvm::GlobalVariable::DefaultVisibility) in setThunkVisibility()
614 llvm::GlobalVariable *CodeGenVTables::GetAddrOfVTable(const CXXRecordDecl *RD) { in GetAddrOfVTable()
615 llvm::GlobalVariable *&VTable = VTables[RD]; in GetAddrOfVTable()
641 CodeGenVTables::EmitVTableDefinition(llvm::GlobalVariable *VTable, in EmitVTableDefinition()
642 llvm::GlobalVariable::LinkageTypes Linkage, in EmitVTableDefinition()
662 llvm::GlobalVariable *
666 llvm::GlobalVariable::LinkageTypes Linkage, in GenerateConstructionVTable()
689 llvm::GlobalVariable *VTable = in GenerateConstructionVTable()
[all …]
/external/llvm/unittests/ExecutionEngine/
DExecutionEngineTest.cpp34 GlobalVariable *NewExtGlobal(Type *T, const Twine &Name) { in NewExtGlobal()
35 return new GlobalVariable(*M, T, false, // Not constant. in NewExtGlobal()
45 GlobalVariable *G1 = in TEST_F()
58 GlobalVariable *G2 = in TEST_F()
71 GlobalVariable *G1 = in TEST_F()
82 GlobalVariable *G2 = in TEST_F()
99 GlobalVariable *G1 = in TEST_F()
110 GlobalVariable *G2 = in TEST_F()
119 GlobalVariable *G1 = in TEST_F()
/external/llvm/lib/Transforms/Scalar/
DGlobalMerge.cpp78 bool doMerge(SmallVectorImpl<GlobalVariable*> &Globals,
105 bool operator()(const GlobalVariable *GV1, const GlobalVariable *GV2) { in operator ()()
120 bool GlobalMerge::doMerge(SmallVectorImpl<GlobalVariable*> &Globals, in doMerge()
151 GlobalVariable *MergedGV = new GlobalVariable(M, MergedTy, isConst, in doMerge()
172 SmallVector<GlobalVariable*, 16> Globals, ConstGlobals, BSSGlobals; in doInitialization()
/external/llvm/lib/Transforms/Instrumentation/
DGCOVProfiling.cpp80 GlobalVariable *getEdgeStateValue();
84 GlobalVariable *buildEdgeLookupTable(Function *F,
85 GlobalVariable *Counter,
91 void insertCounterWriteout(SmallVector<std::pair<GlobalVariable *,
427 SmallVector<std::pair<GlobalVariable *, MDNode *>, 8> CountersBySP; in emitProfileArcs()
445 GlobalVariable *Counters = in emitProfileArcs()
446 new GlobalVariable(*M, CounterTy, false, in emitProfileArcs()
492 GlobalVariable *EdgeTable = in emitProfileArcs()
495 GlobalVariable *EdgeState = getEdgeStateValue(); in emitProfileArcs()
524 GlobalVariable *GCOVProfiler::buildEdgeLookupTable( in buildEdgeLookupTable()
[all …]
DAddressSanitizer.cpp202 static GlobalVariable *createPrivateGlobalForString(Module &M, StringRef Str) { in createPrivateGlobalForString()
204 return new GlobalVariable(M, StrConst->getType(), true, in createPrivateGlobalForString()
302 if (ClOpt && ClOptGlobals && isa<GlobalVariable>(Addr)) { in instrumentMop()
380 SmallVector<GlobalVariable *, 16> GlobalsToChange; in insertGlobalRedzones()
391 if (G->getLinkage() != GlobalVariable::ExternalLinkage && in insertGlobalRedzones()
392 G->getLinkage() != GlobalVariable::PrivateLinkage && in insertGlobalRedzones()
393 G->getLinkage() != GlobalVariable::InternalLinkage) in insertGlobalRedzones()
456 GlobalVariable *G = GlobalsToChange[i]; in insertGlobalRedzones()
473 GlobalVariable *Name = createPrivateGlobalForString(M, DescriptionOfGlobal); in insertGlobalRedzones()
476 GlobalVariable *NewGlobal = new GlobalVariable( in insertGlobalRedzones()
[all …]
/external/llvm/include/llvm/CodeGen/
DMachineModuleInfo.h53 class GlobalVariable; variable
135 std::vector<const GlobalVariable *> TypeInfos;
305 ArrayRef<const GlobalVariable *> TyInfo);
310 ArrayRef<const GlobalVariable *> TyInfo);
318 unsigned getTypeIDFor(const GlobalVariable *TI);
379 const std::vector<const GlobalVariable *> &getTypeInfos() const { in getTypeInfos()
DAnalysis.h27 class GlobalVariable; variable
61 GlobalVariable *ExtractTypeInfo(Value *V);
/external/llvm/lib/Transforms/Utils/
DCloneModule.cpp51 GlobalVariable *GV = new GlobalVariable(*New, in CloneModule()
55 (GlobalVariable*) 0, in CloneModule()
86 GlobalVariable *GV = cast<GlobalVariable>(VMap[I]); in CloneModule()
/external/llvm/tools/lto/
DLTOModule.cpp174 if (GlobalVariable *gvn = dyn_cast<GlobalVariable>(op)) { in objcClassNameFromExpression()
188 void LTOModule::addObjCClass(GlobalVariable *clgv) { in addObjCClass()
225 void LTOModule::addObjCCategory(GlobalVariable *clgv) { in addObjCCategory()
250 void LTOModule::addObjCClassRef(GlobalVariable *clgv) { in addObjCClassRef()
296 if (GlobalVariable *gv = dyn_cast<GlobalVariable>(v)) { in addDefinedDataSymbol()
303 if (GlobalVariable *gv = dyn_cast<GlobalVariable>(v)) { in addDefinedDataSymbol()
310 if (GlobalVariable *gv = dyn_cast<GlobalVariable>(v)) { in addDefinedDataSymbol()
341 GlobalVariable *gv = dyn_cast<GlobalVariable>(def); in addDefinedSymbol()
DLTOModule.h160 void addObjCClass(llvm::GlobalVariable *clgv);
163 void addObjCCategory(llvm::GlobalVariable *clgv);
166 void addObjCClassRef(llvm::GlobalVariable *clgv);
/external/llvm/lib/Linker/
DLinkModules.cpp362 GlobalVariable *NewGV; // New aggregate global in dest module.
430 bool linkAppendingVarProto(GlobalVariable *DstGV, GlobalVariable *SrcGV);
431 bool linkGlobalProto(GlobalVariable *SrcGV);
649 bool ModuleLinker::linkAppendingVarProto(GlobalVariable *DstGV, in linkAppendingVarProto()
650 GlobalVariable *SrcGV) { in linkAppendingVarProto()
683 GlobalVariable *NG = in linkAppendingVarProto()
684 new GlobalVariable(*DstGV->getParent(), NewType, SrcGV->isConstant(), in linkAppendingVarProto()
713 bool ModuleLinker::linkGlobalProto(GlobalVariable *SGV) { in linkGlobalProto()
720 return linkAppendingVarProto(cast<GlobalVariable>(DGV), SGV); in linkGlobalProto()
735 if (GlobalVariable *DGVar = dyn_cast<GlobalVariable>(DGV)) in linkGlobalProto()
[all …]

123456