Home
last modified time | relevance | path

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

12345678910>>...19

/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-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-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/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/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/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/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-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/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/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/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/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/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/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Utils/
DCtorUtils.cpp29 void removeGlobalCtors(GlobalVariable *GCL, const BitVector &CtorsToRemove) { in removeGlobalCtors()
49 GlobalVariable *NGV = in removeGlobalCtors()
50 new GlobalVariable(CA->getType(), GCL->isConstant(), GCL->getLinkage(), in removeGlobalCtors()
67 std::vector<Function *> parseGlobalCtors(GlobalVariable *GV) { in parseGlobalCtors()
82 GlobalVariable *findGlobalCtors(Module &M) { in findGlobalCtors()
83 GlobalVariable *GV = M.getGlobalVariable("llvm.global_ctors"); in findGlobalCtors()
121 GlobalVariable *GlobalCtors = findGlobalCtors(M); in optimizeGlobalCtorsList()
/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()
/external/llvm/lib/Transforms/Utils/
DCtorUtils.cpp30 void removeGlobalCtors(GlobalVariable *GCL, const BitVector &CtorsToRemove) { in removeGlobalCtors()
50 GlobalVariable *NGV = in removeGlobalCtors()
51 new GlobalVariable(CA->getType(), GCL->isConstant(), GCL->getLinkage(), in removeGlobalCtors()
68 std::vector<Function *> parseGlobalCtors(GlobalVariable *GV) { in parseGlobalCtors()
83 GlobalVariable *findGlobalCtors(Module &M) { in findGlobalCtors()
84 GlobalVariable *GV = M.getGlobalVariable("llvm.global_ctors"); in findGlobalCtors()
122 GlobalVariable *GlobalCtors = findGlobalCtors(M); in optimizeGlobalCtorsList()
/external/clang/lib/CodeGen/
DCGVTables.h90 llvm::GlobalVariable *
93 llvm::GlobalVariable::LinkageTypes Linkage,
98 llvm::GlobalVariable *GetAddrOfVTT(const CXXRecordDecl *RD);
101 void EmitVTTDefinition(llvm::GlobalVariable *VTT,
102 llvm::GlobalVariable::LinkageTypes Linkage,
DSanitizerMetadata.h21 class GlobalVariable; variable
40 void reportGlobalToASan(llvm::GlobalVariable *GV, const VarDecl &D,
42 void reportGlobalToASan(llvm::GlobalVariable *GV, SourceLocation Loc,
45 void disableSanitizerForGlobal(llvm::GlobalVariable *GV);
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/NVPTX/
DNVPTXGenericToNVVM.cpp56 typedef ValueMap<GlobalVariable *, GlobalVariable *> GVMapTy;
80 GlobalVariable *GV = &*I++; in runOnModule()
84 GlobalVariable *NewGV = new GlobalVariable( in runOnModule()
134 GlobalVariable *GV = I->first; in runOnModule()
135 GlobalVariable *NewGV = I->second; in runOnModule()
167 if (isa<GlobalVariable>(C)) { in remapConstant()
173 GVMapTy::iterator I = GVMap.find(cast<GlobalVariable>(C)); in remapConstant()
175 GlobalVariable *GV = I->second; in remapConstant()

12345678910>>...19