Home
last modified time | relevance | path

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

12345678910>>...31

/external/llvm-project/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 Align getAlign(GlobalVariable *GV) { in getAlign()
93 isUnmergeableGlobal(GlobalVariable *GV, in isUnmergeableGlobal()
103 static CanMerge makeMergeable(GlobalVariable *Old, GlobalVariable *New) { in makeMergeable()
114 static void replace(Module &M, GlobalVariable *Old, GlobalVariable *New) { in replace()
[all …]
/external/swiftshader/third_party/llvm-10.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()
95 isUnmergeableGlobal(GlobalVariable *GV, in isUnmergeableGlobal()
105 static CanMerge makeMergeable(GlobalVariable *Old, GlobalVariable *New) { in makeMergeable()
116 static void replace(Module &M, GlobalVariable *Old, GlobalVariable *New) { in replace()
[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-10.0/llvm/include/llvm/IR/
DGlobalVariable.h41 class GlobalVariable : public GlobalObject, public ilist_node<GlobalVariable> {
42 friend class SymbolTableListTraits<GlobalVariable>;
54 GlobalVariable(Type *Ty, bool isConstant, LinkageTypes Linkage,
60 GlobalVariable(Module &M, Type *Ty, bool isConstant,
62 const Twine &Name = "", GlobalVariable *InsertBefore = nullptr,
65 GlobalVariable(const GlobalVariable &) = delete;
66 GlobalVariable &operator=(const GlobalVariable &) = delete;
68 ~GlobalVariable() { in ~GlobalVariable()
165 void copyAttributesFrom(const GlobalVariable *Src);
257 struct OperandTraits<GlobalVariable> :
[all …]
/external/llvm-project/llvm/include/llvm/IR/
DGlobalVariable.h40 class GlobalVariable : public GlobalObject, public ilist_node<GlobalVariable> {
41 friend class SymbolTableListTraits<GlobalVariable>;
53 GlobalVariable(Type *Ty, bool isConstant, LinkageTypes Linkage,
59 GlobalVariable(Module &M, Type *Ty, bool isConstant, LinkageTypes Linkage,
61 GlobalVariable *InsertBefore = nullptr,
65 GlobalVariable(const GlobalVariable &) = delete;
66 GlobalVariable &operator=(const GlobalVariable &) = delete;
68 ~GlobalVariable() { in ~GlobalVariable()
165 void copyAttributesFrom(const GlobalVariable *Src);
257 struct OperandTraits<GlobalVariable> :
[all …]
/external/llvm-project/llvm/unittests/IR/
DModuleTest.cpp24 bool sortByName(const GlobalVariable &L, const GlobalVariable &R) { in sortByName()
28 bool sortByNameReverse(const GlobalVariable &L, const GlobalVariable &R) { in sortByNameReverse()
38 (void)new GlobalVariable(M, T, false, L, nullptr, "A"); in TEST()
39 (void)new GlobalVariable(M, T, false, L, nullptr, "F"); in TEST()
40 (void)new GlobalVariable(M, T, false, L, nullptr, "G"); in TEST()
41 (void)new GlobalVariable(M, T, false, L, nullptr, "E"); in TEST()
42 (void)new GlobalVariable(M, T, false, L, nullptr, "B"); in TEST()
43 (void)new GlobalVariable(M, T, false, L, nullptr, "H"); in TEST()
44 (void)new GlobalVariable(M, T, false, L, nullptr, "C"); in TEST()
45 (void)new GlobalVariable(M, T, false, L, nullptr, "D"); in TEST()
DValueTest.cpp52 GlobalVariable *Dummy0 in TEST()
53 = new GlobalVariable(*M, in TEST()
60 GlobalVariable::NotThreadLocal, in TEST()
74 GlobalVariable *DummyCast0 in TEST()
75 = new GlobalVariable(*M, in TEST()
82 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()
140 GlobalVariable *G0 = M->getGlobalVariable("g0"); in TEST()
[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/llvm-project/llvm/include/llvm/Transforms/Instrumentation/
DInstrProfiling.h52 GlobalVariable *RegionCounters = nullptr;
53 GlobalVariable *DataVar = nullptr;
59 DenseMap<GlobalVariable *, PerFunctionProfileData> ProfileDataMap;
61 std::vector<GlobalVariable *> ReferencedNames;
62 GlobalVariable *NamesVar;
96 void lowerCoverageData(GlobalVariable *CoverageNamesVar);
102 GlobalVariable *getOrCreateRegionCounters(InstrProfIncrementInst *Inc);
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Transforms/Instrumentation/
DInstrProfiling.h52 GlobalVariable *RegionCounters = nullptr;
53 GlobalVariable *DataVar = nullptr;
59 DenseMap<GlobalVariable *, PerFunctionProfileData> ProfileDataMap;
61 std::vector<GlobalVariable *> ReferencedNames;
62 GlobalVariable *NamesVar;
98 void lowerCoverageData(GlobalVariable *CoverageNamesVar);
104 GlobalVariable *getOrCreateRegionCounters(InstrProfIncrementInst *Inc);
/external/swiftshader/third_party/llvm-10.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()
/external/llvm-project/llvm/lib/CodeGen/
DLowerEmuTLS.cpp41 bool addEmuTlsVar(Module &M, const GlobalVariable *GV);
43 const GlobalVariable *from, in copyLinkageVisibility()
44 GlobalVariable *to) { in copyLinkageVisibility()
76 SmallVector<const GlobalVariable*, 8> TlsVars; in runOnModule()
86 bool LowerEmuTLS::addEmuTlsVar(Module &M, const GlobalVariable *GV) { in addEmuTlsVar()
91 GlobalVariable *EmuTlsVar = M.getNamedGlobal(EmuTlsVarName); in addEmuTlsVar()
122 EmuTlsVar = cast<GlobalVariable>( in addEmuTlsVar()
134 GlobalVariable *EmuTlsTmplVar = nullptr; in addEmuTlsVar()
137 EmuTlsTmplVar = dyn_cast_or_null<GlobalVariable>( in addEmuTlsVar()
/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/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-project/llvm/unittests/ExecutionEngine/
DExecutionEngineTest.cpp40 GlobalVariable *NewExtGlobal(Type *T, const Twine &Name) { in NewExtGlobal()
41 return new GlobalVariable(*M, T, false, // Not constant. in NewExtGlobal()
52 GlobalVariable *G1 = NewExtGlobal(Type::getInt32Ty(Context), "Global1"); in TEST_F()
65 GlobalVariable *G2 = NewExtGlobal(Type::getInt32Ty(Context), "Global1"); in TEST_F()
77 GlobalVariable *G1 = NewExtGlobal(Type::getInt32Ty(Context), "Global1"); in TEST_F()
87 GlobalVariable *G2 = NewExtGlobal(Type::getInt32Ty(Context), "Global2"); in TEST_F()
103 GlobalVariable *G1 = NewExtGlobal(Type::getInt32Ty(Context), "Global1"); in TEST_F()
113 GlobalVariable *G2 = NewExtGlobal(Type::getInt32Ty(Context), "Global2"); in TEST_F()
121 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/llvm-project/clang/tools/clang-offload-wrapper/
DClangOffloadWrapper.cpp174 GlobalVariable *createBinDesc(ArrayRef<ArrayRef<char>> Bufs) { in createBinDesc()
176 auto *EntriesB = new GlobalVariable( in createBinDesc()
180 auto *EntriesE = new GlobalVariable( in createBinDesc()
192 auto *DummyEntry = new GlobalVariable( in createBinDesc()
193 M, DummyInit->getType(), true, GlobalVariable::ExternalLinkage, in createBinDesc()
206 auto *Image = new GlobalVariable(M, Data->getType(), /*isConstant*/ true, in createBinDesc()
207 GlobalVariable::InternalLinkage, Data, in createBinDesc()
228 new GlobalVariable(M, ImagesData->getType(), /*isConstant*/ true, in createBinDesc()
242 return new GlobalVariable(M, DescInit->getType(), /*isConstant*/ true, in createBinDesc()
247 void createRegisterFunction(GlobalVariable *BinDesc) { in createRegisterFunction()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/IR/
DGlobals.cpp233 if (const GlobalVariable *GV = dyn_cast<GlobalVariable>(this)) in isDeclaration()
325 if (auto *Var = dyn_cast<GlobalVariable>(this)) in canBeOmittedFromSymbolTable()
336 GlobalVariable::GlobalVariable(Type *Ty, bool constant, LinkageTypes Link, in GlobalVariable() function in GlobalVariable
341 OperandTraits<GlobalVariable>::op_begin(this), in GlobalVariable()
355 GlobalVariable::GlobalVariable(Module &M, Type *Ty, bool constant, in GlobalVariable() function in GlobalVariable
357 const Twine &Name, GlobalVariable *Before, in GlobalVariable()
361 OperandTraits<GlobalVariable>::op_begin(this), in GlobalVariable()
380 void GlobalVariable::removeFromParent() { in removeFromParent()
384 void GlobalVariable::eraseFromParent() { in eraseFromParent()
388 void GlobalVariable::setInitializer(Constant *InitVal) { in setInitializer()
[all …]
/external/llvm-project/llvm/lib/IR/
DGlobals.cpp230 if (const GlobalVariable *GV = dyn_cast<GlobalVariable>(this)) in isDeclaration()
322 if (auto *Var = dyn_cast<GlobalVariable>(this)) in canBeOmittedFromSymbolTable()
333 GlobalVariable::GlobalVariable(Type *Ty, bool constant, LinkageTypes Link, in GlobalVariable() function in GlobalVariable
338 OperandTraits<GlobalVariable>::op_begin(this), in GlobalVariable()
352 GlobalVariable::GlobalVariable(Module &M, Type *Ty, bool constant, in GlobalVariable() function in GlobalVariable
354 const Twine &Name, GlobalVariable *Before, in GlobalVariable()
359 OperandTraits<GlobalVariable>::op_begin(this), in GlobalVariable()
381 void GlobalVariable::removeFromParent() { in removeFromParent()
385 void GlobalVariable::eraseFromParent() { in eraseFromParent()
389 void GlobalVariable::setInitializer(Constant *InitVal) { in setInitializer()
[all …]
/external/llvm-project/llvm/lib/Transforms/Utils/
DCtorUtils.cpp27 static void removeGlobalCtors(GlobalVariable *GCL, const BitVector &CtorsToRemove) { in removeGlobalCtors()
47 GlobalVariable *NGV = in removeGlobalCtors()
48 new GlobalVariable(CA->getType(), GCL->isConstant(), GCL->getLinkage(), in removeGlobalCtors()
65 static std::vector<Function *> parseGlobalCtors(GlobalVariable *GV) { in parseGlobalCtors()
80 static GlobalVariable *findGlobalCtors(Module &M) { in findGlobalCtors()
81 GlobalVariable *GV = M.getGlobalVariable("llvm.global_ctors"); in findGlobalCtors()
118 GlobalVariable *GlobalCtors = findGlobalCtors(M); in optimizeGlobalCtorsList()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/
DCtorUtils.cpp27 static void removeGlobalCtors(GlobalVariable *GCL, const BitVector &CtorsToRemove) { in removeGlobalCtors()
47 GlobalVariable *NGV = in removeGlobalCtors()
48 new GlobalVariable(CA->getType(), GCL->isConstant(), GCL->getLinkage(), in removeGlobalCtors()
65 static std::vector<Function *> parseGlobalCtors(GlobalVariable *GV) { in parseGlobalCtors()
80 static GlobalVariable *findGlobalCtors(Module &M) { in findGlobalCtors()
81 GlobalVariable *GV = M.getGlobalVariable("llvm.global_ctors"); in findGlobalCtors()
118 GlobalVariable *GlobalCtors = findGlobalCtors(M); in optimizeGlobalCtorsList()

12345678910>>...31