Home
last modified time | relevance | path

Searched refs:GVar (Results 1 – 25 of 78) sorted by relevance

1234

/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/
DTargetLoweringObjectFile.cpp153 const auto *GVar = cast<GlobalVariable>(GO); in getKindForGlobal() local
156 if (GVar->isThreadLocal()) { in getKindForGlobal()
157 if (isSuitableForBSS(GVar) && !TM.Options.NoZerosInBSS) in getKindForGlobal()
163 if (GVar->hasCommonLinkage()) in getKindForGlobal()
168 if (isSuitableForBSS(GVar) && !TM.Options.NoZerosInBSS) { in getKindForGlobal()
169 if (GVar->hasLocalLinkage()) in getKindForGlobal()
171 else if (GVar->hasExternalLinkage()) in getKindForGlobal()
178 if (GVar->isConstant()) { in getKindForGlobal()
182 const Constant *C = GVar->getInitializer(); in getKindForGlobal()
187 if (!GVar->hasGlobalUnnamedAddr()) in getKindForGlobal()
[all …]
/external/llvm-project/llvm/lib/Target/
DTargetLoweringObjectFile.cpp168 const auto *GVar = cast<GlobalVariable>(GO); in getKindForGlobal() local
171 if (GVar->isThreadLocal()) { in getKindForGlobal()
172 if (isSuitableForBSS(GVar) && !TM.Options.NoZerosInBSS) in getKindForGlobal()
178 if (GVar->hasCommonLinkage()) in getKindForGlobal()
183 if (isSuitableForBSS(GVar) && !TM.Options.NoZerosInBSS) { in getKindForGlobal()
184 if (GVar->hasLocalLinkage()) in getKindForGlobal()
186 else if (GVar->hasExternalLinkage()) in getKindForGlobal()
193 if (GVar->isConstant()) { in getKindForGlobal()
197 const Constant *C = GVar->getInitializer(); in getKindForGlobal()
202 if (!GVar->hasGlobalUnnamedAddr()) in getKindForGlobal()
[all …]
/external/llvm/lib/Target/
DTargetLoweringObjectFile.cpp140 const GlobalVariable *GVar = dyn_cast<GlobalVariable>(GV); in getKindForGlobal() local
141 if (!GVar) in getKindForGlobal()
145 if (GVar->isThreadLocal()) { in getKindForGlobal()
146 if (isSuitableForBSS(GVar, TM.Options.NoZerosInBSS)) in getKindForGlobal()
152 if (GVar->hasCommonLinkage()) in getKindForGlobal()
156 if (isSuitableForBSS(GVar, TM.Options.NoZerosInBSS)) { in getKindForGlobal()
157 if (GVar->hasLocalLinkage()) in getKindForGlobal()
159 else if (GVar->hasExternalLinkage()) in getKindForGlobal()
164 const Constant *C = GVar->getInitializer(); in getKindForGlobal()
168 if (GVar->isConstant()) { in getKindForGlobal()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/NVPTX/
DNVPTXAsmPrinter.cpp969 const GlobalVariable *GVar = cast<GlobalVariable>(V); in emitLinkageDirective() local
970 if (GVar) { in emitLinkageDirective()
971 if (GVar->hasInitializer()) in emitLinkageDirective()
995 void NVPTXAsmPrinter::printModuleLevelGV(const GlobalVariable *GVar, in printModuleLevelGV() argument
999 if (GVar->hasSection()) { in printModuleLevelGV()
1000 if (GVar->getSection() == "llvm.metadata") in printModuleLevelGV()
1005 if (GVar->getName().startswith("llvm.") || in printModuleLevelGV()
1006 GVar->getName().startswith("nvvm.")) in printModuleLevelGV()
1012 PointerType *PTy = GVar->getType(); in printModuleLevelGV()
1013 Type *ETy = GVar->getValueType(); in printModuleLevelGV()
[all …]
DNVPTXAsmPrinter.h132 void addSymbol(const Value *GVar, const Value *GVarBeforeStripping) { in addSymbol() argument
134 Symbols.push_back(GVar); in addSymbol()
161 if (const GlobalValue *GVar = dyn_cast<GlobalValue>(v)) { in print() local
162 MCSymbol *Name = AP.getSymbol(GVar); in print()
217 void printModuleLevelGV(const GlobalVariable *GVar, raw_ostream &O,
258 void emitPTXGlobalVariable(const GlobalVariable *GVar, raw_ostream &O);
/external/llvm-project/llvm/lib/Target/NVPTX/
DNVPTXAsmPrinter.cpp960 const GlobalVariable *GVar = cast<GlobalVariable>(V); in emitLinkageDirective() local
961 if (GVar) { in emitLinkageDirective()
962 if (GVar->hasInitializer()) in emitLinkageDirective()
986 void NVPTXAsmPrinter::printModuleLevelGV(const GlobalVariable *GVar, in printModuleLevelGV() argument
990 if (GVar->hasSection()) { in printModuleLevelGV()
991 if (GVar->getSection() == "llvm.metadata") in printModuleLevelGV()
996 if (GVar->getName().startswith("llvm.") || in printModuleLevelGV()
997 GVar->getName().startswith("nvvm.")) in printModuleLevelGV()
1003 PointerType *PTy = GVar->getType(); in printModuleLevelGV()
1004 Type *ETy = GVar->getValueType(); in printModuleLevelGV()
[all …]
DNVPTXAsmPrinter.h132 void addSymbol(const Value *GVar, const Value *GVarBeforeStripping) { in addSymbol() argument
134 Symbols.push_back(GVar); in addSymbol()
161 if (const GlobalValue *GVar = dyn_cast<GlobalValue>(v)) { in print() local
162 MCSymbol *Name = AP.getSymbol(GVar); in print()
218 void printModuleLevelGV(const GlobalVariable *GVar, raw_ostream &O,
259 void emitPTXGlobalVariable(const GlobalVariable *GVar, raw_ostream &O);
/external/llvm/lib/Target/NVPTX/
DNVPTXAsmPrinter.cpp1012 const GlobalVariable *GVar = cast<GlobalVariable>(V); in emitLinkageDirective() local
1013 if (GVar) { in emitLinkageDirective()
1014 if (GVar->hasInitializer()) in emitLinkageDirective()
1038 void NVPTXAsmPrinter::printModuleLevelGV(const GlobalVariable *GVar, in printModuleLevelGV() argument
1043 if (GVar->hasSection()) { in printModuleLevelGV()
1044 if (GVar->getSection() == "llvm.metadata") in printModuleLevelGV()
1049 if (GVar->getName().startswith("llvm.") || in printModuleLevelGV()
1050 GVar->getName().startswith("nvvm.")) in printModuleLevelGV()
1056 PointerType *PTy = GVar->getType(); in printModuleLevelGV()
1057 Type *ETy = GVar->getValueType(); in printModuleLevelGV()
[all …]
DNVPTXAsmPrinter.h131 void addSymbol(const Value *GVar, const Value *GVarBeforeStripping) { in addSymbol() argument
133 Symbols.push_back(GVar); in addSymbol()
159 if (const GlobalValue *GVar = dyn_cast<GlobalValue>(v)) { in print() local
160 MCSymbol *Name = AP.getSymbol(GVar); in print()
219 void printModuleLevelGV(const GlobalVariable *GVar, raw_ostream &O,
276 void emitPTXGlobalVariable(const GlobalVariable *GVar, raw_ostream &O);
/external/llvm/lib/Target/Hexagon/
DHexagonTargetObjectFile.cpp180 const GlobalVariable *GVar = dyn_cast<GlobalVariable>(GV); in isGlobalInSmallSection() local
181 if (!GVar) { in isGlobalInSmallSection()
189 if (GVar->hasSection()) { in isGlobalInSmallSection()
190 bool IsSmall = isSmallDataSection(GVar->getSection()); in isGlobalInSmallSection()
192 << GVar->getSection() << '\n'); in isGlobalInSmallSection()
196 if (GVar->isConstant()) { in isGlobalInSmallSection()
201 bool IsLocal = GVar->hasLocalLinkage(); in isGlobalInSmallSection()
207 Type *GType = GVar->getType(); in isGlobalInSmallSection()
227 unsigned Size = GVar->getParent()->getDataLayout().getTypeAllocSize(GType); in isGlobalInSmallSection()
363 const GlobalVariable *GVar = dyn_cast<GlobalVariable>(GV); in selectSmallSectionForGlobal() local
[all …]
/external/llvm-project/llvm/lib/Target/PowerPC/
DPPCTargetObjectFile.cpp41 const auto *GVar = dyn_cast<GlobalVariable>(GO); in SelectSectionForGlobal() local
43 if (GVar && GVar->isConstant() && GVar->getInitializer()->needsRelocation()) in SelectSectionForGlobal()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/PowerPC/
DPPCTargetObjectFile.cpp41 const auto *GVar = dyn_cast<GlobalVariable>(GO); in SelectSectionForGlobal() local
43 if (GVar && GVar->isConstant() && GVar->getInitializer()->needsRelocation()) in SelectSectionForGlobal()
/external/llvm-project/llvm/lib/Target/Hexagon/
DHexagonTargetObjectFile.cpp208 const GlobalVariable *GVar = dyn_cast<GlobalVariable>(GO); in isGlobalInSmallSection() local
209 if (!GVar) { in isGlobalInSmallSection()
217 if (GVar->hasSection()) { in isGlobalInSmallSection()
218 bool IsSmall = isSmallDataSection(GVar->getSection()); in isGlobalInSmallSection()
220 << ", has section: " << GVar->getSection() << '\n'); in isGlobalInSmallSection()
230 if (GVar->isConstant()) { in isGlobalInSmallSection()
235 bool IsLocal = GVar->hasLocalLinkage(); in isGlobalInSmallSection()
241 Type *GType = GVar->getValueType(); in isGlobalInSmallSection()
258 unsigned Size = GVar->getParent()->getDataLayout().getTypeAllocSize(GType); in isGlobalInSmallSection()
397 const GlobalVariable *GVar = dyn_cast<GlobalVariable>(GO); in selectSmallSectionForGlobal() local
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Hexagon/
DHexagonTargetObjectFile.cpp208 const GlobalVariable *GVar = dyn_cast<GlobalVariable>(GO); in isGlobalInSmallSection() local
209 if (!GVar) { in isGlobalInSmallSection()
217 if (GVar->hasSection()) { in isGlobalInSmallSection()
218 bool IsSmall = isSmallDataSection(GVar->getSection()); in isGlobalInSmallSection()
220 << ", has section: " << GVar->getSection() << '\n'); in isGlobalInSmallSection()
230 if (GVar->isConstant()) { in isGlobalInSmallSection()
235 bool IsLocal = GVar->hasLocalLinkage(); in isGlobalInSmallSection()
241 Type *GType = GVar->getValueType(); in isGlobalInSmallSection()
258 unsigned Size = GVar->getParent()->getDataLayout().getTypeAllocSize(GType); in isGlobalInSmallSection()
395 const GlobalVariable *GVar = dyn_cast<GlobalVariable>(GO); in selectSmallSectionForGlobal() local
[all …]
/external/llvm/lib/Target/PowerPC/
DPPCTargetObjectFile.cpp43 const GlobalVariable *GVar = dyn_cast<GlobalVariable>(GV); in SelectSectionForGlobal() local
45 if (GVar && GVar->isConstant() && GVar->getInitializer()->needsRelocation()) in SelectSectionForGlobal()
/external/llvm/lib/Transforms/Utils/
DFunctionImportUtils.cpp66 auto *GVar = dyn_cast<GlobalVariable>(SGV); in doPromoteLocalToGlobal() local
67 if (GVar && GVar->isConstant() && GVar->hasGlobalUnnamedAddr()) in doPromoteLocalToGlobal()
70 if (GVar && GVar->hasSection()) in doPromoteLocalToGlobal()
/external/llvm-project/llvm/lib/Target/BPF/
DBTFDebug.cpp979 const GlobalVariable *GVar, bool IsAma) { in generatePatchImmReloc() argument
984 StringRef AccessPattern = GVar->getName(); in generatePatchImmReloc()
997 PatchImms[GVar] = std::make_pair(std::stoll(std::string(PatchImmStr)), in generatePatchImmReloc()
1003 PatchImms[GVar] = std::make_pair(RootId, FieldReloc.RelocKind); in generatePatchImmReloc()
1012 auto *GVar = dyn_cast<GlobalVariable>(GVal); in processReloc() local
1013 if (!GVar) in processReloc()
1016 if (!GVar->hasAttribute(BPFCoreSharedInfo::AmaAttr) && in processReloc()
1017 !GVar->hasAttribute(BPFCoreSharedInfo::TypeIdAttr)) in processReloc()
1023 MDNode *MDN = GVar->getMetadata(LLVMContext::MD_preserve_access_index); in processReloc()
1025 generatePatchImmReloc(ORSym, RootId, GVar, in processReloc()
[all …]
DBPFMISimplifyPatchable.cpp285 auto *GVar = dyn_cast<GlobalVariable>(GVal); in removeLD() local
286 if (!GVar) in removeLD()
291 if (GVar->hasAttribute(BPFCoreSharedInfo::AmaAttr)) in removeLD()
293 else if (!GVar->hasAttribute(BPFCoreSharedInfo::TypeIdAttr)) in removeLD()
/external/llvm/test/Linker/
D2003-11-18-TypeResolution.ll8 ; RUN: echo "%%T1 = type opaque @GVar = external global %%T1*" | llvm-as > %t.out1.bc
13 @GVar = global i32* null ; <i32**> [#uses=0]
/external/llvm-project/llvm/test/Linker/
D2003-11-18-TypeResolution.ll8 ; RUN: echo "%%T1 = type opaque @GVar = external global %%T1*" | llvm-as > %t.out1.bc
13 @GVar = global i32* null ; <i32**> [#uses=0]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/BPF/
DBTFDebug.cpp967 auto *GVar = dyn_cast<GlobalVariable>(GVal); in processReloc() local
968 if (GVar && GVar->hasAttribute(BPFCoreSharedInfo::AmaAttr)) { in processReloc()
972 MDNode *MDN = GVar->getMetadata(LLVMContext::MD_preserve_access_index); in processReloc()
974 generateFieldReloc(ORSym, Ty, GVar->getName()); in processReloc()
1140 auto *GVar = dyn_cast<GlobalVariable>(GVal); in InstLower() local
1141 if (GVar && GVar->hasAttribute(BPFCoreSharedInfo::AmaAttr)) { in InstLower()
1143 uint32_t Imm = PatchImms[GVar->getName().str()]; in InstLower()
1156 auto *GVar = dyn_cast<GlobalVariable>(GVal); in InstLower() local
1157 if (GVar && GVar->hasAttribute(BPFCoreSharedInfo::AmaAttr)) { in InstLower()
1158 uint32_t Imm = PatchImms[GVar->getName().str()]; in InstLower()
DBPFMISimplifyPatchable.cpp267 auto *GVar = dyn_cast<GlobalVariable>(GVal); in removeLD() local
268 if (GVar) { in removeLD()
271 if (GVar->hasAttribute(BPFCoreSharedInfo::AmaAttr)) { in removeLD()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Object/
DModuleSymbolTable.cpp195 if (const GlobalVariable *GVar = dyn_cast<GlobalVariable>(GV)) { in getSymbolFlags() local
196 if (GVar->isConstant()) in getSymbolFlags()
/external/llvm-project/llvm/lib/Object/
DModuleSymbolTable.cpp201 if (const GlobalVariable *GVar = dyn_cast<GlobalVariable>(GV)) { in getSymbolFlags() local
202 if (GVar->isConstant()) in getSymbolFlags()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/IPO/
DThinLTOBitcodeWriter.cpp282 if (auto *GVar = dyn_cast_or_null<GlobalVariable>(GV->getBaseObject())) in splitAndWriteThinLTOBitcode() local
283 return HasTypeMetadata(GVar); in splitAndWriteThinLTOBitcode()
306 if (auto *GVar = dyn_cast_or_null<GlobalVariable>(GV->getBaseObject())) in splitAndWriteThinLTOBitcode() local
307 if (HasTypeMetadata(GVar)) in splitAndWriteThinLTOBitcode()

1234