| /freebsd-12-stable/contrib/llvm-project/llvm/lib/Target/NVPTX/ |
| D | NVPTXAsmPrinter.cpp | 960 const GlobalVariable *GVar = cast<GlobalVariable>(V); in emitLinkageDirective() local 961 if (GVar) { in emitLinkageDirective() 962 if (GVar->hasInitializer()) in emitLinkageDirective() 986 void NVPTXAsmPrinter::printModuleLevelGV(const GlobalVariable *GVar, in printModuleLevelGV() argument 990 if (GVar->hasSection()) { in printModuleLevelGV() 991 if (GVar->getSection() == "llvm.metadata") in printModuleLevelGV() 996 if (GVar->getName().startswith("llvm.") || in printModuleLevelGV() 997 GVar->getName().startswith("nvvm.")) in printModuleLevelGV() 1003 PointerType *PTy = GVar->getType(); in printModuleLevelGV() 1004 Type *ETy = GVar->getValueType(); in printModuleLevelGV() [all …]
|
| D | NVPTXAsmPrinter.h | 132 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-12-stable/contrib/llvm-project/llvm/lib/Target/ |
| D | TargetLoweringObjectFile.cpp | 216 const auto *GVar = cast<GlobalVariable>(GO); in getKindForGlobal() local 219 if (GVar->isThreadLocal()) { in getKindForGlobal() 220 if (isSuitableForBSS(GVar) && !TM.Options.NoZerosInBSS) { in getKindForGlobal() 223 if (GVar->hasLocalLinkage()) { in getKindForGlobal() 232 if (GVar->hasCommonLinkage()) in getKindForGlobal() 237 if (isSuitableForBSS(GVar) && !TM.Options.NoZerosInBSS) { 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() [all …]
|
| /freebsd-12-stable/contrib/llvm-project/llvm/lib/Target/Hexagon/ |
| D | HexagonTargetObjectFile.cpp | 208 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-12-stable/contrib/llvm-project/llvm/lib/Target/PowerPC/ |
| D | PPCTargetObjectFile.cpp | 41 const auto *GVar = dyn_cast<GlobalVariable>(GO); in SelectSectionForGlobal() local 43 if (GVar && GVar->isConstant() && in SelectSectionForGlobal() 44 GVar->getInitializer()->needsDynamicRelocation()) in SelectSectionForGlobal()
|
| /freebsd-12-stable/contrib/llvm-project/llvm/lib/Target/BPF/ |
| D | BTFDebug.cpp | 1004 const GlobalVariable *GVar, bool IsAma) { in generatePatchImmReloc() argument 1009 StringRef AccessPattern = GVar->getName(); in generatePatchImmReloc() 1022 PatchImms[GVar] = std::make_pair(std::stoll(std::string(PatchImmStr)), in generatePatchImmReloc() 1028 PatchImms[GVar] = std::make_pair(RootId, FieldReloc.RelocKind); in generatePatchImmReloc() 1037 auto *GVar = dyn_cast<GlobalVariable>(GVal); in processGlobalValue() local 1038 if (!GVar) { in processGlobalValue() 1044 if (!GVar->hasAttribute(BPFCoreSharedInfo::AmaAttr) && in processGlobalValue() 1045 !GVar->hasAttribute(BPFCoreSharedInfo::TypeIdAttr)) in processGlobalValue() 1051 MDNode *MDN = GVar->getMetadata(LLVMContext::MD_preserve_access_index); in processGlobalValue() 1053 generatePatchImmReloc(ORSym, RootId, GVar, in processGlobalValue() [all …]
|
| D | BPFMISimplifyPatchable.cpp | 285 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-12-stable/contrib/llvm-project/llvm/lib/Object/ |
| D | ModuleSymbolTable.cpp | 203 if (const GlobalVariable *GVar = dyn_cast<GlobalVariable>(GV)) { in getSymbolFlags() local 204 if (GVar->isConstant()) in getSymbolFlags()
|
| D | IRSymtab.cpp | 277 auto *GVar = dyn_cast<GlobalVariable>(GV); in addSymbol() local 278 if (!GVar) in addSymbol() 283 Uncommon().CommonAlign = GVar->getAlignment(); in addSymbol()
|
| /freebsd-12-stable/contrib/llvm-project/llvm/lib/Transforms/IPO/ |
| D | ThinLTOBitcodeWriter.cpp | 328 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()
|
| D | GlobalOpt.cpp | 1630 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()
|
| D | WholeProgramDevirt.cpp | 821 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-12-stable/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
| D | AMDGPUPrintfRuntimeBinding.cpp | 181 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-12-stable/contrib/llvm-project/llvm/lib/Linker/ |
| D | LinkModules.cpp | 65 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()
|
| D | IRMover.cpp | 1120 if (auto *GVar = dyn_cast<GlobalVariable>(&Src)) { in linkGlobalValueBody() local 1121 linkGlobalVariable(cast<GlobalVariable>(Dst), *GVar); in linkGlobalValueBody()
|
| /freebsd-12-stable/contrib/llvm-project/llvm/lib/Analysis/ |
| D | GlobalsModRef.cpp | 741 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-12-stable/contrib/llvm-project/llvm/lib/Target/ARM/ |
| D | ARMConstantPoolValue.cpp | 154 ARMConstantPoolConstant::Create(const GlobalVariable *GVar, in Create() argument 156 return new ARMConstantPoolConstant(GVar, Initializer); in Create()
|
| D | ARMFastISel.cpp | 537 const GlobalVariable *GVar = dyn_cast<GlobalVariable>(GV); in ARMMaterializeGV() local 538 bool IsThreadLocal = GVar && GVar->isThreadLocal(); in ARMMaterializeGV()
|
| /freebsd-12-stable/contrib/llvm-project/llvm/lib/IR/ |
| D | Value.cpp | 921 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()
|
| D | ConstantFold.cpp | 1421 if (const auto *GVar = dyn_cast<GlobalVariable>(GV)) { in areGlobalsPotentiallyEqual() local 1422 Type *Ty = GVar->getValueType(); in areGlobalsPotentiallyEqual()
|
| D | Verifier.cpp | 620 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-12-stable/contrib/llvm-project/llvm/lib/CodeGen/ |
| D | TargetLoweringObjectFileImpl.cpp | 2223 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-12-stable/contrib/llvm-project/llvm/lib/Target/Mips/ |
| D | MipsFastISel.cpp | 416 const GlobalVariable *GVar = dyn_cast<GlobalVariable>(GV); in materializeGV() local 417 bool IsThreadLocal = GVar && GVar->isThreadLocal(); in materializeGV()
|
| /freebsd-12-stable/contrib/llvm-project/llvm/lib/ExecutionEngine/ |
| D | ExecutionEngine.cpp | 574 if (GlobalVariable *GVar = in getPointerToGlobal() local 576 emitGlobalVariable(GVar); in getPointerToGlobal()
|
| /freebsd-12-stable/contrib/llvm-project/llvm/lib/Target/XCore/ |
| D | XCoreISelLowering.cpp | 257 const auto *GVar = dyn_cast<GlobalVariable>(GV); in getGlobalAddressWrapper() local 259 (GVar && GVar->isConstant() && GV->hasLocalLinkage())) in getGlobalAddressWrapper()
|