Home
last modified time | relevance | path

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

12

/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/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/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/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/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/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/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/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/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()
DIRMover.cpp988 if (auto *GVar = dyn_cast<GlobalVariable>(&Src)) { in linkGlobalValueBody() local
989 linkGlobalInit(cast<GlobalVariable>(Dst), *GVar); in linkGlobalValueBody()
/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/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/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()
/external/swiftshader/third_party/LLVM/lib/CodeGen/
DELFWriter.cpp361 const GlobalVariable *GVar = dyn_cast<GlobalVariable>(GV); in EmitGlobal() local
364 if (EmitSpecialLLVMGlobal(GVar)) in EmitGlobal()
376 unsigned Align = TD->getPreferredAlignment(GVar); in EmitGlobal()
377 unsigned Size = TD->getTypeAllocSize(GVar->getInitializer()->getType()); in EmitGlobal()
412 EmitGlobalConstant(GVar->getInitializer(), ES); in EmitGlobal()
/external/llvm/lib/Object/
DIRObjectFile.cpp235 if (const GlobalVariable *GVar = dyn_cast<GlobalVariable>(GV)) { in getSymbolFlags() local
236 if (GVar->isConstant()) in getSymbolFlags()
/external/swiftshader/third_party/LLVM/lib/Target/CppBackend/
DCPPBackend.cpp1493 if (GlobalVariable *GVar = dyn_cast<GlobalVariable>(GV)) in printFunctionUses() local
1494 if (GVar->hasInitializer()) in printFunctionUses()
1495 consts.insert(GVar->getInitializer()); in printFunctionUses()
1505 if (GlobalVariable *GVar = dyn_cast<GlobalVariable>(GV)) in printFunctionUses() local
1506 if (GVar->hasInitializer()) in printFunctionUses()
1507 consts.insert(GVar->getInitializer()); in printFunctionUses()
/external/swiftshader/third_party/LLVM/lib/Target/X86/
DX86FastISel.cpp476 if (const GlobalVariable *GVar = dyn_cast<GlobalVariable>(GV)) in X86SelectAddress() local
477 if (GVar->isThreadLocal()) in X86SelectAddress()
483 if (const GlobalVariable *GVar = in X86SelectAddress() local
485 if (GVar->isThreadLocal()) in X86SelectAddress()
631 if (const GlobalVariable *GVar = dyn_cast<GlobalVariable>(GV)) in X86SelectCallAddress() local
632 if (GVar->isThreadLocal()) in X86SelectCallAddress()
/external/swiftshader/third_party/LLVM/lib/VMCore/
DVerifier.cpp403 GlobalVariable *GVar = dyn_cast<GlobalVariable>(&GV); in visitGlobalValue() local
404 Assert1(GVar && GVar->getType()->getElementType()->isArrayTy(), in visitGlobalValue()
405 "Only global arrays can have appending linkage!", GVar); in visitGlobalValue()
/external/llvm/lib/Transforms/IPO/
DGlobalOpt.cpp1968 auto *GVar = dyn_cast<GlobalVariable>(&GV); in processGlobal() local
1969 if (!GVar) in processGlobal()
1972 if (GVar->isConstant() || !GVar->hasInitializer()) in processGlobal()
1975 return processInternalGlobal(GVar, GS, TLI, LookupDomTree) || Changed; in processGlobal()
/external/swiftshader/third_party/LLVM/lib/ExecutionEngine/
DExecutionEngine.cpp512 if (GlobalVariable *GVar = in getPointerToGlobal() local
514 EmitGlobalVariable(GVar); in getPointerToGlobal()
/external/llvm/lib/Target/Mips/
DMipsFastISel.cpp370 const GlobalVariable *GVar = dyn_cast<GlobalVariable>(GV); in materializeGV() local
371 bool IsThreadLocal = GVar && GVar->isThreadLocal(); in materializeGV()
/external/llvm/lib/ExecutionEngine/
DExecutionEngine.cpp581 if (GlobalVariable *GVar = in getPointerToGlobal() local
583 EmitGlobalVariable(GVar); in getPointerToGlobal()
/external/llvm/lib/Target/XCore/
DXCoreISelLowering.cpp260 const auto *GVar = dyn_cast<GlobalVariable>(GV); in getGlobalAddressWrapper() local
262 (GVar && GVar->isConstant() && GV->hasLocalLinkage())) in getGlobalAddressWrapper()
/external/swiftshader/third_party/LLVM/lib/CodeGen/SelectionDAG/
DSelectionDAG.cpp1053 const GlobalVariable *GVar = dyn_cast<GlobalVariable>(GV); in getGlobalAddress() local
1054 if (!GVar) { in getGlobalAddress()
1057 GVar = dyn_cast_or_null<GlobalVariable>(GA->resolveAliasedGlobal(false)); in getGlobalAddress()
1061 if (GVar && GVar->isThreadLocal()) in getGlobalAddress()
6534 if (const GlobalVariable *GVar = dyn_cast<GlobalVariable>(GV)) { in InferPtrAlignment() local
6535 if (GVar->hasInitializer()) { in InferPtrAlignment()
6537 Align = TD->getPreferredAlignment(GVar); in InferPtrAlignment()

12