Home
last modified time | relevance | path

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

12

/llvm-project-15.0.7/llvm/lib/Target/NVPTX/
H A DNVPTXAsmPrinter.cpp942 if (GVar) { in emitLinkageDirective()
971 if (GVar->hasSection()) { in printModuleLevelGV()
992 } else if (GVar->hasLinkOnceLinkage() || GVar->hasWeakLinkage() || in printModuleLevelGV()
998 if (isTexture(*GVar)) { in printModuleLevelGV()
1003 if (isSurface(*GVar)) { in printModuleLevelGV()
1017 if (isSampler(*GVar)) { in printModuleLevelGV()
1085 if (GVar->use_empty()) in printModuleLevelGV()
1096 temp.push_back(GVar); in printModuleLevelGV()
1105 if (isManaged(*GVar)) { in printModuleLevelGV()
1390 if (isManaged(*GVar)) { in emitPTXGlobalVariable()
[all …]
H A DNVPTXAsmPrinter.h138 void addSymbol(const Value *GVar, const Value *GVarBeforeStripping) { in addSymbol() argument
140 Symbols.push_back(GVar); in addSymbol()
174 void printModuleLevelGV(const GlobalVariable *GVar, raw_ostream &O,
215 void emitPTXGlobalVariable(const GlobalVariable *GVar, raw_ostream &O,
/llvm-project-15.0.7/llvm/lib/Target/
H A DTargetLoweringObjectFile.cpp214 const auto *GVar = cast<GlobalVariable>(GO); in getKindForGlobal() local
217 if (GVar->isThreadLocal()) { in getKindForGlobal()
221 if (GVar->hasLocalLinkage()) { in getKindForGlobal()
230 if (GVar->hasCommonLinkage()) in getKindForGlobal()
236 if (GVar->hasLocalLinkage()) in getKindForGlobal()
238 else if (GVar->hasExternalLinkage()) in getKindForGlobal()
245 if (GVar->hasSection()) in getKindForGlobal()
252 if (GVar->isConstant()) { in getKindForGlobal()
256 const Constant *C = GVar->getInitializer(); in getKindForGlobal()
261 if (!GVar->hasGlobalUnnamedAddr()) in getKindForGlobal()
[all …]
/llvm-project-15.0.7/llvm/lib/Target/PowerPC/
H A DPPCTargetObjectFile.cpp41 const auto *GVar = dyn_cast<GlobalVariable>(GO); in SelectSectionForGlobal() local
43 if (GVar && GVar->isConstant() && in SelectSectionForGlobal()
44 GVar->getInitializer()->needsDynamicRelocation()) in SelectSectionForGlobal()
/llvm-project-15.0.7/llvm/lib/Target/Hexagon/
H A DHexagonTargetObjectFile.cpp207 const GlobalVariable *GVar = dyn_cast<GlobalVariable>(GO); in isGlobalInSmallSection() local
208 if (!GVar) { in isGlobalInSmallSection()
216 if (GVar->hasSection()) { in isGlobalInSmallSection()
217 bool IsSmall = isSmallDataSection(GVar->getSection()); in isGlobalInSmallSection()
219 << ", has section: " << GVar->getSection() << '\n'); in isGlobalInSmallSection()
229 if (GVar->isConstant()) { in isGlobalInSmallSection()
234 bool IsLocal = GVar->hasLocalLinkage(); in isGlobalInSmallSection()
240 Type *GType = GVar->getValueType(); in isGlobalInSmallSection()
257 unsigned Size = GVar->getParent()->getDataLayout().getTypeAllocSize(GType); in isGlobalInSmallSection()
398 const GlobalVariable *GVar = dyn_cast<GlobalVariable>(GO); in selectSmallSectionForGlobal() local
[all …]
/llvm-project-15.0.7/llvm/lib/Target/BPF/
H A DBTFDebug.cpp1237 StringRef AccessPattern = GVar->getName(); in generatePatchImmReloc()
1265 auto *GVar = dyn_cast<GlobalVariable>(GVal); in processGlobalValue() local
1266 if (!GVar) { in processGlobalValue()
1281 generatePatchImmReloc(ORSym, RootId, GVar, in processGlobalValue()
1472 auto *GVar = dyn_cast<GlobalVariable>(GVal); in InstLower() local
1473 if (GVar) { in InstLower()
1479 Imm = PatchImms[GVar].first; in InstLower()
1480 Reloc = PatchImms[GVar].second; in InstLower()
1503 auto *GVar = dyn_cast<GlobalVariable>(GVal); in InstLower() local
1504 if (GVar && GVar->hasAttribute(BPFCoreSharedInfo::AmaAttr)) { in InstLower()
[all …]
H A DBPFMISimplifyPatchable.cpp299 auto *GVar = dyn_cast<GlobalVariable>(GVal); in removeLD() local
300 if (!GVar) in removeLD()
305 if (GVar->hasAttribute(BPFCoreSharedInfo::AmaAttr)) in removeLD()
307 else if (!GVar->hasAttribute(BPFCoreSharedInfo::TypeIdAttr)) in removeLD()
/llvm-project-15.0.7/llvm/lib/Target/SPIRV/
H A DSPIRVGlobalRegistry.cpp303 const GlobalVariable *GVar = nullptr; in buildGlobalVariable() local
305 GVar = cast<const GlobalVariable>(GV); in buildGlobalVariable()
310 GVar = M->getGlobalVariable(Name); in buildGlobalVariable()
311 if (GVar == nullptr) { in buildGlobalVariable()
313 GVar = new GlobalVariable(*M, const_cast<Type *>(Ty), false, in buildGlobalVariable()
317 GV = GVar; in buildGlobalVariable()
319 Register Reg = DT.find(GVar, &MIRBuilder.getMF()); in buildGlobalVariable()
344 DT.add(GVar, &MIRBuilder.getMF(), Reg); in buildGlobalVariable()
356 if (GVar && GVar->hasName()) in buildGlobalVariable()
357 buildOpName(Reg, GVar->getName(), MIRBuilder); in buildGlobalVariable()
[all …]
/llvm-project-15.0.7/llvm/test/Linker/
H A 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]
/llvm-project-15.0.7/llvm/lib/Object/
H A DModuleSymbolTable.cpp200 if (const GlobalVariable *GVar = dyn_cast<GlobalVariable>(GV)) { in getSymbolFlags() local
201 if (GVar->isConstant()) in getSymbolFlags()
H A DIRSymtab.cpp286 auto *GVar = dyn_cast<GlobalVariable>(GV); in addSymbol() local
287 if (!GVar) in addSymbol()
292 Uncommon().CommonAlign = GVar->getAlignment(); in addSymbol()
/llvm-project-15.0.7/llvm/lib/Linker/
H A 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()
H A DIRMover.cpp1140 if (auto *GVar = dyn_cast<GlobalVariable>(&Src)) { in linkGlobalValueBody() local
1141 linkGlobalVariable(cast<GlobalVariable>(Dst), *GVar); in linkGlobalValueBody()
/llvm-project-15.0.7/llvm/lib/Target/AMDGPU/
H A DAMDGPUPrintfRuntimeBinding.cpp182 GlobalVariable *GVar = dyn_cast<GlobalVariable>(ConstExpr->getOperand(0)); in lowerPrintfForGpu() local
185 if (GVar && GVar->hasInitializer()) { in lowerPrintfForGpu()
186 auto *Init = GVar->getInitializer(); in lowerPrintfForGpu()
/llvm-project-15.0.7/llvm/lib/Transforms/IPO/
H A DThinLTOBitcodeWriter.cpp335 if (auto *GVar = in splitAndWriteThinLTOBitcode() local
337 return HasTypeMetadata(GVar); in splitAndWriteThinLTOBitcode()
365 if (auto *GVar = dyn_cast_or_null<GlobalVariable>(GV->getAliaseeObject())) in splitAndWriteThinLTOBitcode() local
366 if (HasTypeMetadata(GVar)) in splitAndWriteThinLTOBitcode()
H A DGlobalOpt.cpp1688 auto *GVar = dyn_cast<GlobalVariable>(&GV); in processGlobal() local
1689 if (!GVar) in processGlobal()
1692 if (GVar->isConstant() || !GVar->hasInitializer()) in processGlobal()
1695 return processInternalGlobal(GVar, GS, GetTTI, GetTLI, LookupDomTree) || in processGlobal()
H A DWholeProgramDevirt.cpp846 auto *GVar = dyn_cast<GlobalVarSummary>(S.get()); in updateVCallVisibilityInIndex() local
847 if (!GVar || in updateVCallVisibilityInIndex()
848 GVar->getVCallVisibility() != GlobalObject::VCallVisibilityPublic) in updateVCallVisibilityInIndex()
850 GVar->setVCallVisibility(GlobalObject::VCallVisibilityLinkageUnit); in updateVCallVisibilityInIndex()
/llvm-project-15.0.7/llvm/lib/Analysis/
H A 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()
/llvm-project-15.0.7/llvm/lib/Target/ARM/
H A DARMConstantPoolValue.cpp154 ARMConstantPoolConstant::Create(const GlobalVariable *GVar, in Create() argument
156 return new ARMConstantPoolConstant(GVar, Initializer); in Create()
H A DARMFastISel.cpp536 const GlobalVariable *GVar = dyn_cast<GlobalVariable>(GV); in ARMMaterializeGV() local
537 bool IsThreadLocal = GVar && GVar->isThreadLocal(); in ARMMaterializeGV()
/llvm-project-15.0.7/llvm/lib/IR/
H A DValue.cpp930 if (auto *GVar = dyn_cast<GlobalVariable>(GO)) { in getPointerAlignment() local
931 Type *ObjectType = GVar->getValueType(); in getPointerAlignment()
936 if (GVar->isStrongDefinitionForLinker()) in getPointerAlignment()
937 return DL.getPreferredAlign(GVar); in getPointerAlignment()
/llvm-project-15.0.7/llvm/lib/CodeGen/
H A DTargetLoweringObjectFileImpl.cpp2248 if (const GlobalVariable *GVar = dyn_cast<GlobalVariable>(GV)) in getTargetSymbol() local
2249 if (GVar->hasAttribute("toc-data")) in getTargetSymbol()
2251 SectionForGlobal(GVar, SectionKind::getData(), TM)) in getTargetSymbol()
2281 if (const GlobalVariable *GVar = dyn_cast<GlobalVariable>(GO)) in getExplicitSectionGlobal() local
2282 if (GVar->hasAttribute("toc-data")) in getExplicitSectionGlobal()
2325 if (const GlobalVariable *GVar = dyn_cast<GlobalVariable>(GO)) in SelectSectionForGlobal() local
2326 if (GVar->hasAttribute("toc-data")) { in SelectSectionForGlobal()
/llvm-project-15.0.7/llvm/lib/ExecutionEngine/
H A DExecutionEngine.cpp574 if (GlobalVariable *GVar = in getPointerToGlobal() local
576 emitGlobalVariable(GVar); in getPointerToGlobal()
/llvm-project-15.0.7/llvm/lib/Target/Mips/
H A DMipsFastISel.cpp412 const GlobalVariable *GVar = dyn_cast<GlobalVariable>(GV); in materializeGV() local
413 bool IsThreadLocal = GVar && GVar->isThreadLocal(); in materializeGV()
/llvm-project-15.0.7/llvm/lib/Target/XCore/
H A DXCoreISelLowering.cpp255 const auto *GVar = dyn_cast<GlobalVariable>(GV); in getGlobalAddressWrapper() local
257 (GVar && GVar->isConstant() && GV->hasLocalLinkage())) in getGlobalAddressWrapper()

12