Home
last modified time | relevance | path

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

12

/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/NVPTX/
H A DNVPTXAsmPrinter.cpp961 if (GVar) { in emitLinkageDirective()
990 if (GVar->hasSection()) { in printModuleLevelGV()
1011 } else if (GVar->hasLinkOnceLinkage() || GVar->hasWeakLinkage() || in printModuleLevelGV()
1017 if (isTexture(*GVar)) { in printModuleLevelGV()
1022 if (isSurface(*GVar)) { in printModuleLevelGV()
1027 if (GVar->isDeclaration()) { in printModuleLevelGV()
1036 if (isSampler(*GVar)) { in printModuleLevelGV()
1104 if (GVar->use_empty()) in printModuleLevelGV()
1115 temp.push_back(GVar); in printModuleLevelGV()
1124 if (isManaged(*GVar)) { in printModuleLevelGV()
[all …]
H A DNVPTXAsmPrinter.h132 void addSymbol(const Value *GVar, const Value *GVarBeforeStripping) { in addSymbol() argument
134 Symbols.push_back(GVar); in addSymbol()
161 if (const GlobalValue *GVar = dyn_cast<GlobalValue>(v)) { in print() local
162 MCSymbol *Name = AP.getSymbol(GVar); in print()
218 void printModuleLevelGV(const GlobalVariable *GVar, raw_ostream &O,
259 void emitPTXGlobalVariable(const GlobalVariable *GVar, raw_ostream &O);
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/
H A DTargetLoweringObjectFile.cpp216 const auto *GVar = cast<GlobalVariable>(GO); in getKindForGlobal() local
219 if (GVar->isThreadLocal()) { in getKindForGlobal()
223 if (GVar->hasLocalLinkage()) { in getKindForGlobal()
232 if (GVar->hasCommonLinkage()) in getKindForGlobal()
238 if (GVar->hasLocalLinkage()) in getKindForGlobal()
240 else if (GVar->hasExternalLinkage()) in getKindForGlobal()
247 if (GVar->isConstant()) { in getKindForGlobal()
251 const Constant *C = GVar->getInitializer(); in getKindForGlobal()
256 if (!GVar->hasGlobalUnnamedAddr()) in getKindForGlobal()
322 if (auto *GVar = dyn_cast<GlobalVariable>(GO)) { in SectionForGlobal() local
[all …]
/freebsd-13.1/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-13.1/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonTargetObjectFile.cpp208 const GlobalVariable *GVar = dyn_cast<GlobalVariable>(GO); in isGlobalInSmallSection() local
209 if (!GVar) { in isGlobalInSmallSection()
217 if (GVar->hasSection()) { in isGlobalInSmallSection()
218 bool IsSmall = isSmallDataSection(GVar->getSection()); in isGlobalInSmallSection()
220 << ", has section: " << GVar->getSection() << '\n'); in isGlobalInSmallSection()
230 if (GVar->isConstant()) { in isGlobalInSmallSection()
235 bool IsLocal = GVar->hasLocalLinkage(); in isGlobalInSmallSection()
241 Type *GType = GVar->getValueType(); in isGlobalInSmallSection()
258 unsigned Size = GVar->getParent()->getDataLayout().getTypeAllocSize(GType); in isGlobalInSmallSection()
398 const GlobalVariable *GVar = dyn_cast<GlobalVariable>(GO); in selectSmallSectionForGlobal() local
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/BPF/
H A DBTFDebug.cpp1009 StringRef AccessPattern = GVar->getName(); in generatePatchImmReloc()
1037 auto *GVar = dyn_cast<GlobalVariable>(GVal); in processGlobalValue() local
1038 if (!GVar) { in processGlobalValue()
1053 generatePatchImmReloc(ORSym, RootId, GVar, in processGlobalValue()
1240 auto *GVar = dyn_cast<GlobalVariable>(GVal); in InstLower() local
1241 if (GVar) { in InstLower()
1247 Imm = PatchImms[GVar].first; in InstLower()
1248 Reloc = PatchImms[GVar].second; in InstLower()
1271 auto *GVar = dyn_cast<GlobalVariable>(GVal); in InstLower() local
1272 if (GVar && GVar->hasAttribute(BPFCoreSharedInfo::AmaAttr)) { in InstLower()
[all …]
H A DBPFMISimplifyPatchable.cpp285 auto *GVar = dyn_cast<GlobalVariable>(GVal); in removeLD() local
286 if (!GVar) in removeLD()
291 if (GVar->hasAttribute(BPFCoreSharedInfo::AmaAttr)) in removeLD()
293 else if (!GVar->hasAttribute(BPFCoreSharedInfo::TypeIdAttr)) in removeLD()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Object/
H A DModuleSymbolTable.cpp203 if (const GlobalVariable *GVar = dyn_cast<GlobalVariable>(GV)) { in getSymbolFlags() local
204 if (GVar->isConstant()) in getSymbolFlags()
H A DIRSymtab.cpp277 auto *GVar = dyn_cast<GlobalVariable>(GV); in addSymbol() local
278 if (!GVar) in addSymbol()
283 Uncommon().CommonAlign = GVar->getAlignment(); in addSymbol()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Linker/
H A DLinkModules.cpp65 const GlobalVariable *&GVar);
131 const GlobalVariable *&GVar) { in getComdatLeader() argument
141 GVar = dyn_cast_or_null<GlobalVariable>(GVal); in getComdatLeader()
142 if (!GVar) in getComdatLeader()
H A DIRMover.cpp1120 if (auto *GVar = dyn_cast<GlobalVariable>(&Src)) { in linkGlobalValueBody() local
1121 linkGlobalVariable(cast<GlobalVariable>(Dst), *GVar); in linkGlobalValueBody()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUPrintfRuntimeBinding.cpp181 GlobalVariable *GVar = dyn_cast<GlobalVariable>(ConstExpr->getOperand(0)); in lowerPrintfForGpu() local
184 if (GVar && GVar->hasInitializer()) { in lowerPrintfForGpu()
185 auto *Init = GVar->getInitializer(); in lowerPrintfForGpu()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DThinLTOBitcodeWriter.cpp328 if (auto *GVar = dyn_cast_or_null<GlobalVariable>(GV->getBaseObject())) in splitAndWriteThinLTOBitcode() local
329 return HasTypeMetadata(GVar); in splitAndWriteThinLTOBitcode()
357 if (auto *GVar = dyn_cast_or_null<GlobalVariable>(GV->getBaseObject())) in splitAndWriteThinLTOBitcode() local
358 if (HasTypeMetadata(GVar)) in splitAndWriteThinLTOBitcode()
H A DGlobalOpt.cpp1630 auto *GVar = dyn_cast<GlobalVariable>(&GV); in processGlobal() local
1631 if (!GVar) in processGlobal()
1634 if (GVar->isConstant() || !GVar->hasInitializer()) in processGlobal()
1637 return processInternalGlobal(GVar, GS, GetTLI, LookupDomTree) || Changed; in processGlobal()
H A DWholeProgramDevirt.cpp821 auto *GVar = dyn_cast<GlobalVarSummary>(S.get()); in updateVCallVisibilityInIndex() local
822 if (!GVar || in updateVCallVisibilityInIndex()
823 GVar->getVCallVisibility() != GlobalObject::VCallVisibilityPublic || in updateVCallVisibilityInIndex()
828 GVar->setVCallVisibility(GlobalObject::VCallVisibilityLinkageUnit); in updateVCallVisibilityInIndex()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Analysis/
H A DGlobalsModRef.cpp741 auto *GVar = dyn_cast<GlobalVariable>(GV); in isNonEscapingGlobalNoAlias() local
743 if (GVar && InputGVar && in isNonEscapingGlobalNoAlias()
744 !GVar->isDeclaration() && !InputGVar->isDeclaration() && in isNonEscapingGlobalNoAlias()
745 !GVar->isInterposable() && !InputGVar->isInterposable()) { in isNonEscapingGlobalNoAlias()
746 Type *GVType = GVar->getInitializer()->getType(); in isNonEscapingGlobalNoAlias()
/freebsd-13.1/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.cpp537 const GlobalVariable *GVar = dyn_cast<GlobalVariable>(GV); in ARMMaterializeGV() local
538 bool IsThreadLocal = GVar && GVar->isThreadLocal(); in ARMMaterializeGV()
/freebsd-13.1/contrib/llvm-project/llvm/lib/IR/
H A DValue.cpp921 if (auto *GVar = dyn_cast<GlobalVariable>(GO)) { in getPointerAlignment() local
922 Type *ObjectType = GVar->getValueType(); in getPointerAlignment()
927 if (GVar->isStrongDefinitionForLinker()) in getPointerAlignment()
928 return DL.getPreferredAlign(GVar); in getPointerAlignment()
H A DConstantFold.cpp1421 if (const auto *GVar = dyn_cast<GlobalVariable>(GV)) { in areGlobalsPotentiallyEqual() local
1422 Type *Ty = GVar->getValueType(); in areGlobalsPotentiallyEqual()
H A DVerifier.cpp620 const GlobalVariable *GVar = dyn_cast<GlobalVariable>(&GV); in visitGlobalValue() local
621 Assert(GVar && GVar->getValueType()->isArrayTy(), in visitGlobalValue()
622 "Only global arrays can have appending linkage!", GVar); in visitGlobalValue()
/freebsd-13.1/contrib/llvm-project/llvm/lib/CodeGen/
H A DTargetLoweringObjectFileImpl.cpp2223 if (const GlobalVariable *GVar = dyn_cast<GlobalVariable>(GV)) in getTargetSymbol() local
2224 if (GVar->hasAttribute("toc-data")) in getTargetSymbol()
2226 SectionForGlobal(GVar, SectionKind::getData(), TM)) in getTargetSymbol()
2256 if (const GlobalVariable *GVar = dyn_cast<GlobalVariable>(GO)) in getExplicitSectionGlobal() local
2257 if (GVar->hasAttribute("toc-data")) in getExplicitSectionGlobal()
2300 if (const GlobalVariable *GVar = dyn_cast<GlobalVariable>(GO)) in SelectSectionForGlobal() local
2301 if (GVar->hasAttribute("toc-data")) { in SelectSectionForGlobal()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/Mips/
H A DMipsFastISel.cpp416 const GlobalVariable *GVar = dyn_cast<GlobalVariable>(GV); in materializeGV() local
417 bool IsThreadLocal = GVar && GVar->isThreadLocal(); in materializeGV()
/freebsd-13.1/contrib/llvm-project/llvm/lib/ExecutionEngine/
H A DExecutionEngine.cpp574 if (GlobalVariable *GVar = in getPointerToGlobal() local
576 emitGlobalVariable(GVar); in getPointerToGlobal()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/XCore/
H A DXCoreISelLowering.cpp257 const auto *GVar = dyn_cast<GlobalVariable>(GV); in getGlobalAddressWrapper() local
259 (GVar && GVar->isConstant() && GV->hasLocalLinkage())) in getGlobalAddressWrapper()

12