Home
last modified time | relevance | path

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

12345678910>>...24

/external/swiftshader/third_party/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.h54 template<> struct ilist_traits<GlobalVariable>
55 : public SymbolTableListTraits<GlobalVariable, Module> {
57 GlobalVariable *createSentinel() const {
58 return static_cast<GlobalVariable*>(&Sentinel);
60 static void destroySentinel(GlobalVariable*) {}
62 GlobalVariable *provideInitialHead() const { return createSentinel(); }
63 GlobalVariable *ensureHead(GlobalVariable*) const { return createSentinel(); }
64 static void noteHead(GlobalVariable*, GlobalVariable*) {}
66 mutable ilist_node<GlobalVariable> Sentinel;
118 typedef iplist<GlobalVariable> GlobalListType;
[all …]
/external/llvm/include/llvm/IR/
DGlobalVariable.h34 class GlobalVariable : public GlobalObject, public ilist_node<GlobalVariable> {
35 friend class SymbolTableListTraits<GlobalVariable>;
37 void operator=(const GlobalVariable &) = delete;
38 GlobalVariable(const GlobalVariable &) = delete;
55 GlobalVariable(Type *Ty, bool isConstant, LinkageTypes Linkage,
61 GlobalVariable(Module &M, Type *Ty, bool isConstant,
63 const Twine &Name = "", GlobalVariable *InsertBefore = nullptr,
67 ~GlobalVariable() override { in ~GlobalVariable()
175 struct OperandTraits<GlobalVariable> :
176 public OptionalOperandTraits<GlobalVariable> {
[all …]
/external/swiftshader/third_party/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 …]
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/IR/
DGlobalVariable.h42 class GlobalVariable : public GlobalObject, public ilist_node<GlobalVariable> {
43 friend class SymbolTableListTraits<GlobalVariable>;
55 GlobalVariable(Type *Ty, bool isConstant, LinkageTypes Linkage,
61 GlobalVariable(Module &M, Type *Ty, bool isConstant,
63 const Twine &Name = "", GlobalVariable *InsertBefore = nullptr,
66 GlobalVariable(const GlobalVariable &) = delete;
67 GlobalVariable &operator=(const GlobalVariable &) = delete;
69 ~GlobalVariable() { in ~GlobalVariable()
166 void copyAttributesFrom(const GlobalVariable *Src);
257 struct OperandTraits<GlobalVariable> :
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/IR/
DModuleTest.cpp21 bool sortByName(const GlobalVariable &L, const GlobalVariable &R) { in sortByName()
25 bool sortByNameReverse(const GlobalVariable &L, const GlobalVariable &R) { in sortByNameReverse()
35 (void)new GlobalVariable(M, T, false, L, nullptr, "A"); in TEST()
36 (void)new GlobalVariable(M, T, false, L, nullptr, "F"); in TEST()
37 (void)new GlobalVariable(M, T, false, L, nullptr, "G"); in TEST()
38 (void)new GlobalVariable(M, T, false, L, nullptr, "E"); in TEST()
39 (void)new GlobalVariable(M, T, false, L, nullptr, "B"); in TEST()
40 (void)new GlobalVariable(M, T, false, L, nullptr, "H"); in TEST()
41 (void)new GlobalVariable(M, T, false, L, nullptr, "C"); in TEST()
42 (void)new GlobalVariable(M, T, false, L, nullptr, "D"); in TEST()
DValueTest.cpp53 GlobalVariable *Dummy0 in TEST()
54 = new GlobalVariable(*M, in TEST()
61 GlobalVariable::NotThreadLocal, in TEST()
75 GlobalVariable *DummyCast0 in TEST()
76 = new GlobalVariable(*M, in TEST()
83 GlobalVariable::NotThreadLocal, in TEST()
98 GlobalVariable *Var = in TEST()
99 new GlobalVariable(*M, Int32Ty, true, GlobalValue::ExternalLinkage, in TEST()
101 GlobalVariable::NotThreadLocal, 1); in TEST()
141 GlobalVariable *G0 = M->getGlobalVariable("g0"); in TEST()
[all …]
/external/swiftshader/third_party/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 …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/IPO/
DConstantMerge.cpp46 static void FindUsedValues(GlobalVariable *LLVMUsed, in FindUsedValues()
59 static bool IsBetterCanonical(const GlobalVariable &A, in IsBetterCanonical()
60 const GlobalVariable &B) { in IsBetterCanonical()
70 static bool hasMetadataOtherThanDebugLoc(const GlobalVariable *GV) { in hasMetadataOtherThanDebugLoc()
79 static void copyDebugLocMetadata(const GlobalVariable *From, in copyDebugLocMetadata()
80 GlobalVariable *To) { in copyDebugLocMetadata()
87 static unsigned getAlignment(GlobalVariable *GV) { in getAlignment()
101 DenseMap<Constant *, GlobalVariable *> CMap; in mergeConstants()
104 SmallVector<std::pair<GlobalVariable*, GlobalVariable*>, 32> Replacements; in mergeConstants()
116 GlobalVariable *GV = &*GVI++; in mergeConstants()
[all …]
/external/llvm/lib/Transforms/IPO/
DConstantMerge.cpp39 static void FindUsedValues(GlobalVariable *LLVMUsed, in FindUsedValues()
52 static bool IsBetterCanonical(const GlobalVariable &A, in IsBetterCanonical()
53 const GlobalVariable &B) { in IsBetterCanonical()
63 static unsigned getAlignment(GlobalVariable *GV) { in getAlignment()
77 DenseMap<Constant *, GlobalVariable *> CMap; in mergeConstants()
80 SmallVector<std::pair<GlobalVariable*, GlobalVariable*>, 32> Replacements; in mergeConstants()
93 GlobalVariable *GV = &*GVI++; in mergeConstants()
119 GlobalVariable *&Slot = CMap[Init]; in mergeConstants()
134 GlobalVariable *GV = &*GVI++; in mergeConstants()
150 GlobalVariable *Slot = CMap[Init]; in mergeConstants()
/external/llvm/lib/IR/
DGlobals.cpp163 if (const GlobalVariable *GV = dyn_cast<GlobalVariable>(this)) in isDeclaration()
220 GlobalVariable::GlobalVariable(Type *Ty, bool constant, LinkageTypes Link, in GlobalVariable() function in GlobalVariable
225 OperandTraits<GlobalVariable>::op_begin(this), in GlobalVariable()
237 GlobalVariable::GlobalVariable(Module &M, Type *Ty, bool constant, in GlobalVariable() function in GlobalVariable
239 const Twine &Name, GlobalVariable *Before, in GlobalVariable()
243 OperandTraits<GlobalVariable>::op_begin(this), in GlobalVariable()
260 void GlobalVariable::setParent(Module *parent) { in setParent()
264 void GlobalVariable::removeFromParent() { in removeFromParent()
268 void GlobalVariable::eraseFromParent() { in eraseFromParent()
272 void GlobalVariable::setInitializer(Constant *InitVal) { in setInitializer()
[all …]
/external/llvm/include/llvm/Transforms/
DInstrProfiling.h40 GlobalVariable *RegionCounters;
41 GlobalVariable *DataVar;
46 DenseMap<GlobalVariable *, PerFunctionProfileData> ProfileDataMap;
48 std::vector<GlobalVariable *> ReferencedNames;
49 GlobalVariable *NamesVar;
76 void lowerCoverageData(GlobalVariable *CoverageNamesVar);
82 GlobalVariable *getOrCreateRegionCounters(InstrProfIncrementInst *Inc);
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Transforms/Instrumentation/
DInstrProfiling.h51 GlobalVariable *RegionCounters = nullptr;
52 GlobalVariable *DataVar = nullptr;
58 DenseMap<GlobalVariable *, PerFunctionProfileData> ProfileDataMap;
60 std::vector<GlobalVariable *> ReferencedNames;
61 GlobalVariable *NamesVar;
94 void lowerCoverageData(GlobalVariable *CoverageNamesVar);
100 GlobalVariable *getOrCreateRegionCounters(InstrProfIncrementInst *Inc);
/external/swiftshader/third_party/LLVM/unittests/ExecutionEngine/
DExecutionEngineTest.cpp33 GlobalVariable *NewExtGlobal(Type *T, const Twine &Name) { in NewExtGlobal()
34 return new GlobalVariable(*M, T, false, // Not constant. in NewExtGlobal()
43 GlobalVariable *G1 = in TEST_F()
56 GlobalVariable *G2 = in TEST_F()
69 GlobalVariable *G1 = in TEST_F()
80 GlobalVariable *G2 = in TEST_F()
97 GlobalVariable *G1 = in TEST_F()
108 GlobalVariable *G2 = in TEST_F()
117 GlobalVariable *G1 = in TEST_F()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/IR/
DGlobals.cpp203 if (const GlobalVariable *GV = dyn_cast<GlobalVariable>(this)) in isDeclaration()
295 if (auto *Var = dyn_cast<GlobalVariable>(this)) in canBeOmittedFromSymbolTable()
306 GlobalVariable::GlobalVariable(Type *Ty, bool constant, LinkageTypes Link, in GlobalVariable() function in GlobalVariable
311 OperandTraits<GlobalVariable>::op_begin(this), in GlobalVariable()
325 GlobalVariable::GlobalVariable(Module &M, Type *Ty, bool constant, in GlobalVariable() function in GlobalVariable
327 const Twine &Name, GlobalVariable *Before, in GlobalVariable()
331 OperandTraits<GlobalVariable>::op_begin(this), in GlobalVariable()
350 void GlobalVariable::removeFromParent() { in removeFromParent()
354 void GlobalVariable::eraseFromParent() { in eraseFromParent()
358 void GlobalVariable::setInitializer(Constant *InitVal) { in setInitializer()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/
DLowerEmuTLS.cpp40 bool addEmuTlsVar(Module &M, const GlobalVariable *GV);
42 const GlobalVariable *from, in copyLinkageVisibility()
43 GlobalVariable *to) { in copyLinkageVisibility()
75 SmallVector<const GlobalVariable*, 8> TlsVars; in runOnModule()
85 bool LowerEmuTLS::addEmuTlsVar(Module &M, const GlobalVariable *GV) { in addEmuTlsVar()
90 GlobalVariable *EmuTlsVar = M.getNamedGlobal(EmuTlsVarName); in addEmuTlsVar()
121 EmuTlsVar = cast<GlobalVariable>( in addEmuTlsVar()
138 GlobalVariable *EmuTlsTmplVar = nullptr; in addEmuTlsVar()
141 EmuTlsTmplVar = dyn_cast_or_null<GlobalVariable>( in addEmuTlsVar()
DGlobalMerge.cpp159 bool doMerge(SmallVectorImpl<GlobalVariable*> &Globals,
164 bool doMerge(const SmallVectorImpl<GlobalVariable *> &Globals,
171 bool isMustKeepGlobalVariable(const GlobalVariable *GV) const { in isMustKeepGlobalVariable()
183 SmallPtrSet<const GlobalVariable *, 16> MustKeepGlobalVariables;
219 bool GlobalMerge::doMerge(SmallVectorImpl<GlobalVariable*> &Globals, in doMerge()
224 [&DL](const GlobalVariable *GV1, const GlobalVariable *GV2) { in doMerge()
296 GlobalVariable *GV = Globals[GI]; in doMerge()
437 bool GlobalMerge::doMerge(const SmallVectorImpl<GlobalVariable *> &Globals, in doMerge()
514 auto *MergedGV = new GlobalVariable( in doMerge()
516 GlobalVariable::NotThreadLocal, AddrSpace); in doMerge()
[all …]
/external/llvm/lib/CodeGen/
DLowerEmuTLS.cpp41 bool addEmuTlsVar(Module &M, const GlobalVariable *GV);
43 const GlobalVariable *from, in copyLinkageVisibility()
44 GlobalVariable *to) { in copyLinkageVisibility()
73 SmallVector<const GlobalVariable*, 8> TlsVars; in runOnModule()
83 bool LowerEmuTLS::addEmuTlsVar(Module &M, const GlobalVariable *GV) { in addEmuTlsVar()
88 GlobalVariable *EmuTlsVar = M.getNamedGlobal(EmuTlsVarName); in addEmuTlsVar()
119 EmuTlsVar = cast<GlobalVariable>( in addEmuTlsVar()
136 GlobalVariable *EmuTlsTmplVar = nullptr; in addEmuTlsVar()
139 EmuTlsTmplVar = dyn_cast_or_null<GlobalVariable>( in addEmuTlsVar()
DGlobalMerge.cpp140 bool doMerge(SmallVectorImpl<GlobalVariable*> &Globals,
144 bool doMerge(const SmallVectorImpl<GlobalVariable *> &Globals,
151 bool isMustKeepGlobalVariable(const GlobalVariable *GV) const { in isMustKeepGlobalVariable()
163 SmallPtrSet<const GlobalVariable *, 16> MustKeepGlobalVariables;
202 bool GlobalMerge::doMerge(SmallVectorImpl<GlobalVariable*> &Globals, in doMerge()
207 [&DL](const GlobalVariable *GV1, const GlobalVariable *GV2) { in doMerge()
278 GlobalVariable *GV = Globals[GI]; in doMerge()
419 bool GlobalMerge::doMerge(const SmallVectorImpl<GlobalVariable *> &Globals, in doMerge()
450 GlobalVariable *MergedGV = new GlobalVariable( in doMerge()
452 "_MergedGlobals", nullptr, GlobalVariable::NotThreadLocal, AddrSpace); in doMerge()
[all …]
/external/llvm/lib/Transforms/Instrumentation/
DInstrProfiling.cpp150 if (GlobalVariable *CoverageNamesVar = in run()
183 GlobalVariable *Name = Ind->getName(); in computeNumValueSiteCounts()
197 GlobalVariable *Name = Ind->getName(); in lowerValueProfileInst()
202 GlobalVariable *DataVar = It->second.DataVar; in lowerValueProfileInst()
218 GlobalVariable *Counters = getOrCreateRegionCounters(Inc); in lowerIncrement()
229 void InstrProfiling::lowerCoverageData(GlobalVariable *CoverageNamesVar) { in lowerCoverageData()
236 assert(isa<GlobalVariable>(V) && "Missing reference to function name"); in lowerCoverageData()
237 GlobalVariable *Name = cast<GlobalVariable>(V); in lowerCoverageData()
327 GlobalVariable *
329 GlobalVariable *NamePtr = Inc->getName(); in getOrCreateRegionCounters()
[all …]
DEfficiencySanitizer.cpp137 static GlobalVariable *createPrivateGlobalForString(Module &M, StringRef Str, in createPrivateGlobalForString()
142 GlobalVariable *GV = in createPrivateGlobalForString()
143 new GlobalVariable(M, StrConst->getType(), true, in createPrivateGlobalForString()
170 GlobalVariable *&TypeNames, GlobalVariable *&Offsets, GlobalVariable *&Size);
171 GlobalVariable *createCacheFragInfoGV(Module &M, const DataLayout &DL,
221 std::map<Type *, GlobalVariable *> StructTyMap;
326 GlobalVariable *&TypeName, GlobalVariable *&Offset, in createCacheFragAuxGV()
327 GlobalVariable *&Size) { in createCacheFragAuxGV()
332 TypeName = new GlobalVariable(M, TypeNameArrayTy, true, in createCacheFragAuxGV()
333 GlobalVariable::InternalLinkage, nullptr); in createCacheFragAuxGV()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/ExecutionEngine/
DExecutionEngineTest.cpp41 GlobalVariable *NewExtGlobal(Type *T, const Twine &Name) { in NewExtGlobal()
42 return new GlobalVariable(*M, T, false, // Not constant. in NewExtGlobal()
53 GlobalVariable *G1 = NewExtGlobal(Type::getInt32Ty(Context), "Global1"); in TEST_F()
66 GlobalVariable *G2 = NewExtGlobal(Type::getInt32Ty(Context), "Global1"); in TEST_F()
78 GlobalVariable *G1 = NewExtGlobal(Type::getInt32Ty(Context), "Global1"); in TEST_F()
88 GlobalVariable *G2 = NewExtGlobal(Type::getInt32Ty(Context), "Global2"); in TEST_F()
104 GlobalVariable *G1 = NewExtGlobal(Type::getInt32Ty(Context), "Global1"); in TEST_F()
114 GlobalVariable *G2 = NewExtGlobal(Type::getInt32Ty(Context), "Global2"); in TEST_F()
122 GlobalVariable *G1 = NewExtGlobal(Type::getInt32Ty(Context), "Global1"); in TEST_F()
/external/llvm/unittests/ExecutionEngine/
DExecutionEngineTest.cpp41 GlobalVariable *NewExtGlobal(Type *T, const Twine &Name) { in NewExtGlobal()
42 return new GlobalVariable(*M, T, false, // Not constant. in NewExtGlobal()
53 GlobalVariable *G1 = NewExtGlobal(Type::getInt32Ty(Context), "Global1"); in TEST_F()
66 GlobalVariable *G2 = NewExtGlobal(Type::getInt32Ty(Context), "Global1"); in TEST_F()
78 GlobalVariable *G1 = NewExtGlobal(Type::getInt32Ty(Context), "Global1"); in TEST_F()
88 GlobalVariable *G2 = NewExtGlobal(Type::getInt32Ty(Context), "Global2"); in TEST_F()
104 GlobalVariable *G1 = NewExtGlobal(Type::getInt32Ty(Context), "Global1"); in TEST_F()
114 GlobalVariable *G2 = NewExtGlobal(Type::getInt32Ty(Context), "Global2"); in TEST_F()
122 GlobalVariable *G1 = NewExtGlobal(Type::getInt32Ty(Context), "Global1"); in TEST_F()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Instrumentation/
DEfficiencySanitizer.cpp148 static GlobalVariable *createPrivateGlobalForString(Module &M, StringRef Str, in createPrivateGlobalForString()
153 GlobalVariable *GV = in createPrivateGlobalForString()
154 new GlobalVariable(M, StrConst->getType(), true, in createPrivateGlobalForString()
181 GlobalVariable *&TypeNames, GlobalVariable *&Offsets, GlobalVariable *&Size);
182 GlobalVariable *createCacheFragInfoGV(Module &M, const DataLayout &DL,
232 std::map<Type *, GlobalVariable *> StructTyMap;
338 GlobalVariable *&TypeName, GlobalVariable *&Offset, in createCacheFragAuxGV()
339 GlobalVariable *&Size) { in createCacheFragAuxGV()
344 TypeName = new GlobalVariable(M, TypeNameArrayTy, true, in createCacheFragAuxGV()
345 GlobalVariable::InternalLinkage, nullptr); in createCacheFragAuxGV()
[all …]
/external/llvm/unittests/IR/
DValueTest.cpp53 GlobalVariable *Dummy0 in TEST()
54 = new GlobalVariable(*M, in TEST()
61 GlobalVariable::NotThreadLocal, in TEST()
75 GlobalVariable *DummyCast0 in TEST()
76 = new GlobalVariable(*M, in TEST()
83 GlobalVariable::NotThreadLocal, in TEST()
98 GlobalVariable *Var = in TEST()
99 new GlobalVariable(*M, Int32Ty, true, GlobalValue::ExternalLinkage, in TEST()
101 GlobalVariable::NotThreadLocal, 1); in TEST()

12345678910>>...24