Home
last modified time | relevance | path

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

12

/freebsd-14.2/contrib/llvm-project/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 …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/NVPTX/
H A DNVPTXAsmPrinter.cpp984 if (GVar) { in emitLinkageDirective()
1013 if (GVar->hasSection()) { in printModuleLevelGV()
1034 } else if (GVar->hasLinkOnceLinkage() || GVar->hasWeakLinkage() || in printModuleLevelGV()
1040 if (isTexture(*GVar)) { in printModuleLevelGV()
1045 if (isSurface(*GVar)) { in printModuleLevelGV()
1059 if (isSampler(*GVar)) { in printModuleLevelGV()
1127 if (GVar->use_empty()) in printModuleLevelGV()
1138 temp.push_back(GVar); in printModuleLevelGV()
1147 if (isManaged(*GVar)) { in printModuleLevelGV()
1438 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,
213 void emitPTXGlobalVariable(const GlobalVariable *GVar, raw_ostream &O,
/freebsd-14.2/contrib/llvm-project/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()
/freebsd-14.2/contrib/llvm-project/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()
399 const GlobalVariable *GVar = dyn_cast<GlobalVariable>(GO); in selectSmallSectionForGlobal() local
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/BPF/
H A DBTFDebug.cpp1263 StringRef AccessPattern = GVar->getName(); in generatePatchImmReloc()
1291 auto *GVar = dyn_cast<GlobalVariable>(GVal); in processGlobalValue() local
1292 if (!GVar) { in processGlobalValue()
1307 generatePatchImmReloc(ORSym, RootId, GVar, in processGlobalValue()
1508 auto *GVar = dyn_cast<GlobalVariable>(GVal); in InstLower() local
1509 if (GVar) { in InstLower()
1515 Imm = PatchImms[GVar].first; in InstLower()
1516 Reloc = PatchImms[GVar].second; in InstLower()
1538 auto *GVar = dyn_cast<GlobalVariable>(GVal); in InstLower() local
1539 if (GVar && GVar->hasAttribute(BPFCoreSharedInfo::AmaAttr)) { in InstLower()
[all …]
H A DBPFMISimplifyPatchable.cpp344 auto *GVar = dyn_cast<GlobalVariable>(GVal); in removeLD() local
345 if (!GVar) in removeLD()
350 if (GVar->hasAttribute(BPFCoreSharedInfo::AmaAttr)) in removeLD()
352 else if (!GVar->hasAttribute(BPFCoreSharedInfo::TypeIdAttr)) in removeLD()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/SPIRV/
H A DSPIRVGlobalRegistry.cpp469 const GlobalVariable *GVar = nullptr; in buildGlobalVariable() local
471 GVar = cast<const GlobalVariable>(GV); in buildGlobalVariable()
476 GVar = M->getGlobalVariable(Name); in buildGlobalVariable()
477 if (GVar == nullptr) { in buildGlobalVariable()
479 GVar = new GlobalVariable(*M, const_cast<Type *>(Ty), false, in buildGlobalVariable()
483 GV = GVar; in buildGlobalVariable()
485 Register Reg = DT.find(GVar, &MIRBuilder.getMF()); in buildGlobalVariable()
510 DT.add(GVar, &MIRBuilder.getMF(), Reg); in buildGlobalVariable()
522 if (GVar && GVar->hasName()) in buildGlobalVariable()
523 buildOpName(Reg, GVar->getName(), MIRBuilder); in buildGlobalVariable()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/Object/
H A DIRSymtab.cpp293 auto *GVar = dyn_cast<GlobalVariable>(GV); in addSymbol() local
294 if (!GVar) in addSymbol()
299 Uncommon().CommonAlign = GVar->getAlign() ? GVar->getAlign()->value() : 0; in addSymbol()
H A DModuleSymbolTable.cpp213 if (const GlobalVariable *GVar = dyn_cast<GlobalVariable>(GV)) { in getSymbolFlags() local
214 if (GVar->isConstant()) in getSymbolFlags()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DThinLTOBitcodeWriter.cpp360 if (auto *GVar = in splitAndWriteThinLTOBitcode() local
362 return HasTypeMetadata(GVar); in splitAndWriteThinLTOBitcode()
390 if (auto *GVar = dyn_cast_or_null<GlobalVariable>(GV->getAliaseeObject())) in splitAndWriteThinLTOBitcode() local
391 if (HasTypeMetadata(GVar)) in splitAndWriteThinLTOBitcode()
H A DGlobalOpt.cpp1639 auto *GVar = dyn_cast<GlobalVariable>(&GV); in processGlobal() local
1640 if (!GVar) in processGlobal()
1643 if (GVar->isConstant() || !GVar->hasInitializer()) in processGlobal()
1646 return processInternalGlobal(GVar, GS, GetTTI, GetTLI, LookupDomTree) || in processGlobal()
H A DWholeProgramDevirt.cpp906 auto *GVar = dyn_cast<GlobalVarSummary>(S.get()); in updateVCallVisibilityInIndex() local
907 if (!GVar || in updateVCallVisibilityInIndex()
908 GVar->getVCallVisibility() != GlobalObject::VCallVisibilityPublic) in updateVCallVisibilityInIndex()
916 GVar->setVCallVisibility(GlobalObject::VCallVisibilityLinkageUnit); in updateVCallVisibilityInIndex()
/freebsd-14.2/contrib/llvm-project/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.cpp1162 if (auto *GVar = dyn_cast<GlobalVariable>(&Src)) { in linkGlobalValueBody() local
1163 linkGlobalVariable(cast<GlobalVariable>(Dst), *GVar); in linkGlobalValueBody()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Analysis/
H A DGlobalsModRef.cpp731 auto *GVar = dyn_cast<GlobalVariable>(GV); in isNonEscapingGlobalNoAlias() local
733 if (GVar && InputGVar && in isNonEscapingGlobalNoAlias()
734 !GVar->isDeclaration() && !InputGVar->isDeclaration() && in isNonEscapingGlobalNoAlias()
735 !GVar->isInterposable() && !InputGVar->isInterposable()) { in isNonEscapingGlobalNoAlias()
736 Type *GVType = GVar->getInitializer()->getType(); in isNonEscapingGlobalNoAlias()
/freebsd-14.2/contrib/llvm-project/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()
/freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/
H A DTargetLoweringObjectFileImpl.cpp2343 if (const GlobalVariable *GVar = dyn_cast<GlobalVariable>(GV)) in getTargetSymbol() local
2344 if (GVar->hasAttribute("toc-data")) in getTargetSymbol()
2346 SectionForGlobal(GVar, SectionKind::getData(), TM)) in getTargetSymbol()
2372 if (const GlobalVariable *GVar = dyn_cast<GlobalVariable>(GO)) in getExplicitSectionGlobal() local
2373 if (GVar->hasAttribute("toc-data")) in getExplicitSectionGlobal()
2410 if (const GlobalVariable *GVar = dyn_cast<GlobalVariable>(GO)) in getSectionForExternalReference() local
2411 if (GVar->hasAttribute("toc-data")) in getSectionForExternalReference()
2423 if (const GlobalVariable *GVar = dyn_cast<GlobalVariable>(GO)) in SelectSectionForGlobal() local
2424 if (GVar->hasAttribute("toc-data")) { in SelectSectionForGlobal()
/freebsd-14.2/contrib/llvm-project/llvm/lib/IR/
H A DValue.cpp941 if (auto *GVar = dyn_cast<GlobalVariable>(GO)) { in getPointerAlignment() local
942 Type *ObjectType = GVar->getValueType(); in getPointerAlignment()
947 if (GVar->isStrongDefinitionForLinker()) in getPointerAlignment()
948 return DL.getPreferredAlign(GVar); in getPointerAlignment()
H A DConstantFold.cpp1074 if (const auto *GVar = dyn_cast<GlobalVariable>(GV)) { in areGlobalsPotentiallyEqual() local
1075 Type *Ty = GVar->getValueType(); in areGlobalsPotentiallyEqual()
H A DVerifier.cpp721 const GlobalVariable *GVar = dyn_cast<GlobalVariable>(&GV); in visitGlobalValue() local
722 Check(GVar && GVar->getValueType()->isArrayTy(), in visitGlobalValue()
723 "Only global arrays can have appending linkage!", GVar); in visitGlobalValue()
/freebsd-14.2/contrib/llvm-project/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()
/freebsd-14.2/contrib/llvm-project/llvm/lib/ExecutionEngine/
H A DExecutionEngine.cpp574 if (GlobalVariable *GVar = in getPointerToGlobal() local
576 emitGlobalVariable(GVar); in getPointerToGlobal()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/XCore/
H A DXCoreISelLowering.cpp251 const auto *GVar = dyn_cast<GlobalVariable>(GV); in getGlobalAddressWrapper() local
253 (GVar && GVar->isConstant() && GV->hasLocalLinkage())) in getGlobalAddressWrapper()

12