Home
last modified time | relevance | path

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

12

/freebsd/contrib/llvm-project/llvm/lib/Target/NVPTX/
H A DNVPTXAsmPrinter.cpp978 const GlobalVariable *GVar = cast<GlobalVariable>(V); in emitLinkageDirective() local
979 if (GVar) { in emitLinkageDirective()
980 if (GVar->hasInitializer()) in emitLinkageDirective()
1004 void NVPTXAsmPrinter::printModuleLevelGV(const GlobalVariable *GVar, in printModuleLevelGV() argument
1008 if (GVar->hasSection()) { in printModuleLevelGV()
1009 if (GVar->getSection() == "llvm.metadata") in printModuleLevelGV()
1014 if (GVar->getName().starts_with("llvm.") || in printModuleLevelGV()
1015 GVar->getName().starts_with("nvvm.")) in printModuleLevelGV()
1021 Type *ETy = GVar->getValueType(); in printModuleLevelGV()
1023 if (GVar->hasExternalLinkage()) { in printModuleLevelGV()
[all …]
H A DNVPTXAsmPrinter.h139 void addSymbol(const Value *GVar, const Value *GVarBeforeStripping) { in addSymbol() argument
141 Symbols.push_back(GVar); in addSymbol()
175 void printModuleLevelGV(const GlobalVariable *GVar, raw_ostream &O,
214 void emitPTXGlobalVariable(const GlobalVariable *GVar, raw_ostream &O,
/freebsd/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()
218 if (isSuitableForBSS(GVar) && !TM.Options.NoZerosInBSS) { in getKindForGlobal()
221 if (GVar->hasLocalLinkage()) { in getKindForGlobal()
230 if (GVar->hasCommonLinkage()) in getKindForGlobal()
235 if (isSuitableForBSS(GVar) && !TM.Options.NoZerosInBSS) { in getKindForGlobal()
236 if (GVar->hasLocalLinkage()) in getKindForGlobal()
238 else if (GVar->hasExternalLinkage()) in getKindForGlobal()
245 if (GVar->hasSection()) in getKindForGlobal()
246 if (MDNode *MD = GVar->getMetadata(LLVMContext::MD_exclude)) in getKindForGlobal()
[all …]
/freebsd/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->getDataLayout().getTypeAllocSize(GType); in isGlobalInSmallSection()
399 const GlobalVariable *GVar = dyn_cast<GlobalVariable>(GO); in selectSmallSectionForGlobal() local
[all …]
/freebsd/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()
H A DPPCSubtarget.cpp189 if (const GlobalVariable *GVar = dyn_cast<GlobalVariable>(GV)) in isGVIndirectSymbol() local
191 return !GVar->hasAttribute("toc-data"); in isGVIndirectSymbol()
/freebsd/contrib/llvm-project/llvm/lib/Target/BPF/
H A DBTFDebug.cpp1258 const GlobalVariable *GVar, bool IsAma) { in generatePatchImmReloc() argument
1263 StringRef AccessPattern = GVar->getName(); in generatePatchImmReloc()
1276 PatchImms[GVar] = std::make_pair(std::stoll(std::string(PatchImmStr)), in generatePatchImmReloc()
1282 PatchImms[GVar] = std::make_pair(RootId, FieldReloc.RelocKind); in generatePatchImmReloc()
1291 auto *GVar = dyn_cast<GlobalVariable>(GVal); in processGlobalValue() local
1292 if (!GVar) { in processGlobalValue()
1298 if (!GVar->hasAttribute(BPFCoreSharedInfo::AmaAttr) && in processGlobalValue()
1299 !GVar->hasAttribute(BPFCoreSharedInfo::TypeIdAttr)) in processGlobalValue()
1305 MDNode *MDN = GVar->getMetadata(LLVMContext::MD_preserve_access_index); in processGlobalValue()
1307 generatePatchImmReloc(ORSym, RootId, GVar, in processGlobalValue()
[all …]
H A DBPFMISimplifyPatchable.cpp345 auto *GVar = dyn_cast<GlobalVariable>(GVal); in removeLD() local
346 if (!GVar) in removeLD()
351 if (GVar->hasAttribute(BPFCoreSharedInfo::AmaAttr)) in removeLD()
353 else if (!GVar->hasAttribute(BPFCoreSharedInfo::TypeIdAttr)) in removeLD()
/freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/
H A DSPIRVGlobalRegistry.cpp608 const GlobalVariable *GVar = nullptr; in buildGlobalVariable() local
610 GVar = cast<const GlobalVariable>(GV); in buildGlobalVariable()
615 GVar = M->getGlobalVariable(Name); in buildGlobalVariable()
616 if (GVar == nullptr) { in buildGlobalVariable()
619 GVar = new GlobalVariable(*M, const_cast<Type *>(Ty), false, in buildGlobalVariable()
623 GV = GVar; in buildGlobalVariable()
625 Register Reg = DT.find(GVar, &MIRBuilder.getMF()); in buildGlobalVariable()
650 DT.add(GVar, &MIRBuilder.getMF(), Reg); in buildGlobalVariable()
670 if (GVar && GVar->hasName()) in buildGlobalVariable()
671 buildOpName(Reg, GVar->getName(), MIRBuilder); in buildGlobalVariable()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Object/
H A DIRSymtab.cpp299 auto *GVar = dyn_cast<GlobalVariable>(GV); in addSymbol() local
300 if (!GVar) in addSymbol()
305 Uncommon().CommonAlign = GVar->getAlign() ? GVar->getAlign()->value() : 0; in addSymbol()
H A DModuleSymbolTable.cpp227 if (const GlobalVariable *GVar = dyn_cast<GlobalVariable>(GV)) { in getSymbolFlags() local
228 if (GVar->isConstant()) in getSymbolFlags()
/freebsd/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.cpp1651 auto *GVar = dyn_cast<GlobalVariable>(&GV); in processGlobal() local
1652 if (!GVar) in processGlobal()
1655 if (GVar->isConstant() || !GVar->hasInitializer()) in processGlobal()
1658 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/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.cpp1164 if (auto *GVar = dyn_cast<GlobalVariable>(&Src)) { in linkGlobalValueBody() local
1165 linkGlobalVariable(cast<GlobalVariable>(Dst), *GVar); in linkGlobalValueBody()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DGlobalsModRef.cpp739 auto *GVar = dyn_cast<GlobalVariable>(GV); in isNonEscapingGlobalNoAlias() local
741 if (GVar && InputGVar && in isNonEscapingGlobalNoAlias()
742 !GVar->isDeclaration() && !InputGVar->isDeclaration() && in isNonEscapingGlobalNoAlias()
743 !GVar->isInterposable() && !InputGVar->isInterposable()) { in isNonEscapingGlobalNoAlias()
744 Type *GVType = GVar->getInitializer()->getType(); in isNonEscapingGlobalNoAlias()
/freebsd/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()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DTargetLoweringObjectFileImpl.cpp2348 if (const GlobalVariable *GVar = dyn_cast<GlobalVariable>(GV)) in getTargetSymbol() local
2349 if (GVar->hasAttribute("toc-data")) in getTargetSymbol()
2351 SectionForGlobal(GVar, SectionKind::getData(), TM)) in getTargetSymbol()
2377 if (const GlobalVariable *GVar = dyn_cast<GlobalVariable>(GO)) in getExplicitSectionGlobal() local
2378 if (GVar->hasAttribute("toc-data")) in getExplicitSectionGlobal()
2424 if (const GlobalVariable *GVar = dyn_cast<GlobalVariable>(GO)) in getSectionForExternalReference() local
2425 if (GVar->hasAttribute("toc-data")) in getSectionForExternalReference()
2437 if (const GlobalVariable *GVar = dyn_cast<GlobalVariable>(GO)) in SelectSectionForGlobal() local
2438 if (GVar->hasAttribute("toc-data")) { in SelectSectionForGlobal()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DValue.cpp942 if (auto *GVar = dyn_cast<GlobalVariable>(GO)) { in getPointerAlignment() local
943 Type *ObjectType = GVar->getValueType(); in getPointerAlignment()
948 if (GVar->isStrongDefinitionForLinker()) in getPointerAlignment()
949 return DL.getPreferredAlign(GVar); in getPointerAlignment()
H A DConstantFold.cpp991 if (const auto *GVar = dyn_cast<GlobalVariable>(GV)) { in areGlobalsPotentiallyEqual() local
992 Type *Ty = GVar->getValueType(); in areGlobalsPotentiallyEqual()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/Targets/
H A DPPC.cpp274 auto *GVar = cast<llvm::GlobalVariable>(GV); in setTargetAttributes() local
320 GVar->addAttribute("toc-data"); in setTargetAttributes()
/freebsd/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/contrib/llvm-project/llvm/lib/ExecutionEngine/
H A DExecutionEngine.cpp574 if (GlobalVariable *GVar = in getPointerToGlobal() local
576 emitGlobalVariable(GVar); in getPointerToGlobal()
/freebsd/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