Home
last modified time | relevance | path

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

123

/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/
DTargetLoweringObjectFile.cpp150 const auto *GVar = cast<GlobalVariable>(GO); in getKindForGlobal() local
153 if (GVar->isThreadLocal()) { in getKindForGlobal()
154 if (isSuitableForBSS(GVar) && !TM.Options.NoZerosInBSS) in getKindForGlobal()
160 if (GVar->hasCommonLinkage()) in getKindForGlobal()
165 if (isSuitableForBSS(GVar) && !TM.Options.NoZerosInBSS) { in getKindForGlobal()
166 if (GVar->hasLocalLinkage()) in getKindForGlobal()
168 else if (GVar->hasExternalLinkage()) in getKindForGlobal()
175 if (GVar->isConstant()) { in getKindForGlobal()
179 const Constant *C = GVar->getInitializer(); in getKindForGlobal()
184 if (!GVar->hasGlobalUnnamedAddr()) in getKindForGlobal()
[all …]
/external/swiftshader/third_party/LLVM/lib/Target/
DTargetLoweringObjectFile.cpp130 const GlobalVariable *GVar = dyn_cast<GlobalVariable>(GV); in getKindForGlobal() local
131 if (GVar == 0) in getKindForGlobal()
135 if (GVar->isThreadLocal()) { in getKindForGlobal()
136 if (isSuitableForBSS(GVar)) in getKindForGlobal()
142 if (GVar->hasCommonLinkage()) in getKindForGlobal()
146 if (isSuitableForBSS(GVar)) { in getKindForGlobal()
147 if (GVar->hasLocalLinkage()) in getKindForGlobal()
149 else if (GVar->hasExternalLinkage()) in getKindForGlobal()
154 const Constant *C = GVar->getInitializer(); in getKindForGlobal()
158 if (GVar->isConstant()) { in getKindForGlobal()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/NVPTX/
DNVPTXAsmPrinter.cpp971 const GlobalVariable *GVar = cast<GlobalVariable>(V); in emitLinkageDirective() local
972 if (GVar) { in emitLinkageDirective()
973 if (GVar->hasInitializer()) in emitLinkageDirective()
997 void NVPTXAsmPrinter::printModuleLevelGV(const GlobalVariable *GVar, in printModuleLevelGV() argument
1001 if (GVar->hasSection()) { in printModuleLevelGV()
1002 if (GVar->getSection() == "llvm.metadata") in printModuleLevelGV()
1007 if (GVar->getName().startswith("llvm.") || in printModuleLevelGV()
1008 GVar->getName().startswith("nvvm.")) in printModuleLevelGV()
1014 PointerType *PTy = GVar->getType(); in printModuleLevelGV()
1015 Type *ETy = GVar->getValueType(); in printModuleLevelGV()
[all …]
DNVPTXAsmPrinter.h133 void addSymbol(const Value *GVar, const Value *GVarBeforeStripping) { in addSymbol() argument
135 Symbols.push_back(GVar); in addSymbol()
162 if (const GlobalValue *GVar = dyn_cast<GlobalValue>(v)) { in print() local
163 MCSymbol *Name = AP.getSymbol(GVar); in print()
220 void printModuleLevelGV(const GlobalVariable *GVar, raw_ostream &O,
267 void emitPTXGlobalVariable(const GlobalVariable *GVar, raw_ostream &O);
/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/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/swiftshader/third_party/llvm-7.0/llvm/lib/Target/Hexagon/
DHexagonTargetObjectFile.cpp205 const GlobalVariable *GVar = dyn_cast<GlobalVariable>(GO); in isGlobalInSmallSection() local
206 if (!GVar) { in isGlobalInSmallSection()
214 if (GVar->hasSection()) { in isGlobalInSmallSection()
215 bool IsSmall = isSmallDataSection(GVar->getSection()); in isGlobalInSmallSection()
217 << ", has section: " << GVar->getSection() << '\n'); in isGlobalInSmallSection()
221 if (GVar->isConstant()) { in isGlobalInSmallSection()
226 bool IsLocal = GVar->hasLocalLinkage(); in isGlobalInSmallSection()
232 Type *GType = GVar->getType(); in isGlobalInSmallSection()
252 unsigned Size = GVar->getParent()->getDataLayout().getTypeAllocSize(GType); in isGlobalInSmallSection()
388 const GlobalVariable *GVar = dyn_cast<GlobalVariable>(GO); in selectSmallSectionForGlobal() local
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/PowerPC/
DPPCTargetObjectFile.cpp42 const auto *GVar = dyn_cast<GlobalVariable>(GO); in SelectSectionForGlobal() local
44 if (GVar && GVar->isConstant() && GVar->getInitializer()->needsRelocation()) in SelectSectionForGlobal()
/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/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/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-7.0/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-7.0/llvm/lib/Transforms/IPO/
DThinLTOBitcodeWriter.cpp272 if (auto *GVar = dyn_cast_or_null<GlobalVariable>(GV->getBaseObject())) in splitAndWriteThinLTOBitcode() local
273 return HasTypeMetadata(GVar); in splitAndWriteThinLTOBitcode()
296 if (auto *GVar = dyn_cast_or_null<GlobalVariable>(GV->getBaseObject())) in splitAndWriteThinLTOBitcode() local
297 if (HasTypeMetadata(GVar)) in splitAndWriteThinLTOBitcode()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Object/
DModuleSymbolTable.cpp195 if (const GlobalVariable *GVar = dyn_cast<GlobalVariable>(GV)) { in getSymbolFlags() local
196 if (GVar->isConstant()) in getSymbolFlags()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Linker/
DLinkModules.cpp66 const GlobalVariable *&GVar);
132 const GlobalVariable *&GVar) { in getComdatLeader() argument
142 GVar = dyn_cast_or_null<GlobalVariable>(GVal); in getComdatLeader()
143 if (!GVar) in getComdatLeader()
/external/llvm/lib/Linker/
DLinkModules.cpp68 const GlobalVariable *&GVar);
148 const GlobalVariable *&GVar) { in getComdatLeader() argument
158 GVar = dyn_cast_or_null<GlobalVariable>(GVal); in getComdatLeader()
159 if (!GVar) in getComdatLeader()
/external/llvm/lib/Analysis/
DGlobalsModRef.cpp699 auto *GVar = dyn_cast<GlobalVariable>(GV); in isNonEscapingGlobalNoAlias() local
701 if (GVar && InputGVar && in isNonEscapingGlobalNoAlias()
702 !GVar->isDeclaration() && !InputGVar->isDeclaration() && in isNonEscapingGlobalNoAlias()
703 !GVar->isInterposable() && !InputGVar->isInterposable()) { in isNonEscapingGlobalNoAlias()
704 Type *GVType = GVar->getInitializer()->getType(); in isNonEscapingGlobalNoAlias()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/
DGlobalsModRef.cpp732 auto *GVar = dyn_cast<GlobalVariable>(GV); in isNonEscapingGlobalNoAlias() local
734 if (GVar && InputGVar && in isNonEscapingGlobalNoAlias()
735 !GVar->isDeclaration() && !InputGVar->isDeclaration() && in isNonEscapingGlobalNoAlias()
736 !GVar->isInterposable() && !InputGVar->isInterposable()) { in isNonEscapingGlobalNoAlias()
737 Type *GVType = GVar->getInitializer()->getType(); in isNonEscapingGlobalNoAlias()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/ARM/
DARMConstantPoolValue.cpp154 ARMConstantPoolConstant::Create(const GlobalVariable *GVar, in Create() argument
156 return new ARMConstantPoolConstant(GVar, Initializer); in Create()
/external/llvm/lib/IR/
DValue.cpp598 if (auto *GVar = dyn_cast<GlobalVariable>(GO)) { in getPointerAlignment() local
599 Type *ObjectType = GVar->getValueType(); in getPointerAlignment()
604 if (GVar->isStrongDefinitionForLinker()) in getPointerAlignment()
605 Align = DL.getPreferredAlignment(GVar); in getPointerAlignment()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/IR/
DValue.cpp666 if (auto *GVar = dyn_cast<GlobalVariable>(GO)) { in getPointerAlignment() local
667 Type *ObjectType = GVar->getValueType(); in getPointerAlignment()
672 if (GVar->isStrongDefinitionForLinker()) in getPointerAlignment()
673 Align = DL.getPreferredAlignment(GVar); in getPointerAlignment()
/external/swiftshader/third_party/LLVM/lib/Target/XCore/
DXCoreISelLowering.cpp232 const GlobalVariable *GVar = dyn_cast<GlobalVariable>(GV); in getGlobalAddressWrapper() local
233 if (!GVar) { in getGlobalAddressWrapper()
236 GVar = dyn_cast_or_null<GlobalVariable>(GA->resolveAliasedGlobal()); in getGlobalAddressWrapper()
238 bool isConst = GVar && GVar->isConstant(); in getGlobalAddressWrapper()
271 const GlobalVariable *GVar = dyn_cast<GlobalVariable>(GV); in LowerGlobalTLSAddress() local
272 if (!GVar) { in LowerGlobalTLSAddress()
275 GVar = dyn_cast_or_null<GlobalVariable>(GA->resolveAliasedGlobal()); in LowerGlobalTLSAddress()
277 if (! GVar) { in LowerGlobalTLSAddress()
284 errs() << "Size of thread local object " << GVar->getName() in LowerGlobalTLSAddress()

123