/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/ |
D | TargetLoweringObjectFile.cpp | 153 const auto *GVar = cast<GlobalVariable>(GO); in getKindForGlobal() local 156 if (GVar->isThreadLocal()) { in getKindForGlobal() 157 if (isSuitableForBSS(GVar) && !TM.Options.NoZerosInBSS) in getKindForGlobal() 163 if (GVar->hasCommonLinkage()) in getKindForGlobal() 168 if (isSuitableForBSS(GVar) && !TM.Options.NoZerosInBSS) { in getKindForGlobal() 169 if (GVar->hasLocalLinkage()) in getKindForGlobal() 171 else if (GVar->hasExternalLinkage()) in getKindForGlobal() 178 if (GVar->isConstant()) { in getKindForGlobal() 182 const Constant *C = GVar->getInitializer(); in getKindForGlobal() 187 if (!GVar->hasGlobalUnnamedAddr()) in getKindForGlobal() [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/NVPTX/ |
D | NVPTXAsmPrinter.cpp | 969 const GlobalVariable *GVar = cast<GlobalVariable>(V); in emitLinkageDirective() local 970 if (GVar) { in emitLinkageDirective() 971 if (GVar->hasInitializer()) in emitLinkageDirective() 995 void NVPTXAsmPrinter::printModuleLevelGV(const GlobalVariable *GVar, in printModuleLevelGV() argument 999 if (GVar->hasSection()) { in printModuleLevelGV() 1000 if (GVar->getSection() == "llvm.metadata") in printModuleLevelGV() 1005 if (GVar->getName().startswith("llvm.") || in printModuleLevelGV() 1006 GVar->getName().startswith("nvvm.")) in printModuleLevelGV() 1012 PointerType *PTy = GVar->getType(); in printModuleLevelGV() 1013 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() 217 void printModuleLevelGV(const GlobalVariable *GVar, raw_ostream &O, 258 void emitPTXGlobalVariable(const GlobalVariable *GVar, raw_ostream &O);
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/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() 395 const GlobalVariable *GVar = dyn_cast<GlobalVariable>(GO); in selectSmallSectionForGlobal() local [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/PowerPC/ |
D | PPCTargetObjectFile.cpp | 41 const auto *GVar = dyn_cast<GlobalVariable>(GO); in SelectSectionForGlobal() local 43 if (GVar && GVar->isConstant() && GVar->getInitializer()->needsRelocation()) in SelectSectionForGlobal()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/BPF/ |
D | BTFDebug.cpp | 967 auto *GVar = dyn_cast<GlobalVariable>(GVal); in processReloc() local 968 if (GVar && GVar->hasAttribute(BPFCoreSharedInfo::AmaAttr)) { in processReloc() 972 MDNode *MDN = GVar->getMetadata(LLVMContext::MD_preserve_access_index); in processReloc() 974 generateFieldReloc(ORSym, Ty, GVar->getName()); in processReloc() 1140 auto *GVar = dyn_cast<GlobalVariable>(GVal); in InstLower() local 1141 if (GVar && GVar->hasAttribute(BPFCoreSharedInfo::AmaAttr)) { in InstLower() 1143 uint32_t Imm = PatchImms[GVar->getName().str()]; in InstLower() 1156 auto *GVar = dyn_cast<GlobalVariable>(GVal); in InstLower() local 1157 if (GVar && GVar->hasAttribute(BPFCoreSharedInfo::AmaAttr)) { in InstLower() 1158 uint32_t Imm = PatchImms[GVar->getName().str()]; in InstLower()
|
D | BPFMISimplifyPatchable.cpp | 267 auto *GVar = dyn_cast<GlobalVariable>(GVal); in removeLD() local 268 if (GVar) { in removeLD() 271 if (GVar->hasAttribute(BPFCoreSharedInfo::AmaAttr)) { in removeLD()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/IPO/ |
D | ThinLTOBitcodeWriter.cpp | 282 if (auto *GVar = dyn_cast_or_null<GlobalVariable>(GV->getBaseObject())) in splitAndWriteThinLTOBitcode() local 283 return HasTypeMetadata(GVar); in splitAndWriteThinLTOBitcode() 306 if (auto *GVar = dyn_cast_or_null<GlobalVariable>(GV->getBaseObject())) in splitAndWriteThinLTOBitcode() local 307 if (HasTypeMetadata(GVar)) in splitAndWriteThinLTOBitcode()
|
D | GlobalOpt.cpp | 2104 auto *GVar = dyn_cast<GlobalVariable>(&GV); in processGlobal() local 2105 if (!GVar) in processGlobal() 2108 if (GVar->isConstant() || !GVar->hasInitializer()) in processGlobal() 2111 return processInternalGlobal(GVar, GS, GetTLI, LookupDomTree) || Changed; in processGlobal()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Object/ |
D | ModuleSymbolTable.cpp | 195 if (const GlobalVariable *GVar = dyn_cast<GlobalVariable>(GV)) { in getSymbolFlags() local 196 if (GVar->isConstant()) in getSymbolFlags()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/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 | 1093 if (auto *GVar = dyn_cast<GlobalVariable>(&Src)) { in linkGlobalValueBody() local 1094 linkGlobalVariable(cast<GlobalVariable>(Dst), *GVar); in linkGlobalValueBody()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/ |
D | AMDGPUPrintfRuntimeBinding.cpp | 183 GlobalVariable *GVar = dyn_cast<GlobalVariable>(ConstExpr->getOperand(0)); in lowerPrintfForGpu() local 186 if (GVar && GVar->hasInitializer()) { in lowerPrintfForGpu() 187 auto Init = GVar->getInitializer(); in lowerPrintfForGpu()
|
D | AMDGPUISelLowering.cpp | 1181 const GlobalVariable *GVar = dyn_cast<GlobalVariable>(GV); in hasDefinedInitializer() local 1182 if (!GVar || !GVar->hasInitializer()) in hasDefinedInitializer() 1185 return !isa<UndefValue>(GVar->getInitializer()); in hasDefinedInitializer()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/ |
D | GlobalsModRef.cpp | 739 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()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/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 | 551 const GlobalVariable *GVar = dyn_cast<GlobalVariable>(GV); in ARMMaterializeGV() local 552 bool IsThreadLocal = GVar && GVar->isThreadLocal(); in ARMMaterializeGV()
|
D | ARMISelLowering.cpp | 3373 auto *GVar = dyn_cast<GlobalVariable>(GV); in promoteToConstantPool() local 3374 if (!GVar || !GVar->hasInitializer() || in promoteToConstantPool() 3375 !GVar->isConstant() || !GVar->hasGlobalUnnamedAddr() || in promoteToConstantPool() 3376 !GVar->hasLocalLinkage()) in promoteToConstantPool() 3381 auto *Init = GVar->getInitializer(); in promoteToConstantPool() 3394 unsigned Align = DAG.getDataLayout().getPreferredAlignment(GVar); in promoteToConstantPool() 3410 if (!AFI->getGlobalsPromotedToConstantPool().count(GVar) && Size > 4) in promoteToConstantPool() 3422 if (!allUsersAreInFunction(GVar, &F)) in promoteToConstantPool() 3436 auto CPVal = ARMConstantPoolConstant::Create(GVar, Init); in promoteToConstantPool() 3439 if (!AFI->getGlobalsPromotedToConstantPool().count(GVar)) { in promoteToConstantPool() [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/IR/ |
D | Value.cpp | 690 if (auto *GVar = dyn_cast<GlobalVariable>(GO)) { in getPointerAlignment() local 691 Type *ObjectType = GVar->getValueType(); in getPointerAlignment() 696 if (GVar->isStrongDefinitionForLinker()) in getPointerAlignment() 697 return MaybeAlign(DL.getPreferredAlignment(GVar)); in getPointerAlignment()
|
D | ConstantFold.cpp | 1529 if (const auto *GVar = dyn_cast<GlobalVariable>(GV)) { in areGlobalsPotentiallyEqual() local 1530 Type *Ty = GVar->getValueType(); in areGlobalsPotentiallyEqual()
|
D | Verifier.cpp | 576 const GlobalVariable *GVar = dyn_cast<GlobalVariable>(&GV); in visitGlobalValue() local 577 Assert(GVar && GVar->getValueType()->isArrayTy(), in visitGlobalValue() 578 "Only global arrays can have appending linkage!", GVar); in visitGlobalValue()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Mips/ |
D | MipsFastISel.cpp | 417 const GlobalVariable *GVar = dyn_cast<GlobalVariable>(GV); in materializeGV() local 418 bool IsThreadLocal = GVar && GVar->isThreadLocal(); in materializeGV()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/ExecutionEngine/ |
D | ExecutionEngine.cpp | 583 if (GlobalVariable *GVar = in getPointerToGlobal() local 585 EmitGlobalVariable(GVar); in getPointerToGlobal()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/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()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/AsmPrinter/ |
D | AsmPrinter.cpp | 167 if (const GlobalVariable *GVar = dyn_cast<GlobalVariable>(GV)) in getGVAlignment() local 168 Alignment = Align(DL.getPreferredAlignment(GVar)); in getGVAlignment()
|