Home
last modified time | relevance | path

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

12

/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/
DTargetLoweringObjectFile.cpp153 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/
DNVPTXAsmPrinter.cpp969 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 …]
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()
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/
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()
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/
DPPCTargetObjectFile.cpp41 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/
DBTFDebug.cpp967 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()
DBPFMISimplifyPatchable.cpp267 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/
DThinLTOBitcodeWriter.cpp282 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()
DGlobalOpt.cpp2104 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/
DModuleSymbolTable.cpp195 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/
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()
DIRMover.cpp1093 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/
DAMDGPUPrintfRuntimeBinding.cpp183 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()
DAMDGPUISelLowering.cpp1181 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/
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()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/ARM/
DARMConstantPoolValue.cpp154 ARMConstantPoolConstant::Create(const GlobalVariable *GVar, in Create() argument
156 return new ARMConstantPoolConstant(GVar, Initializer); in Create()
DARMFastISel.cpp551 const GlobalVariable *GVar = dyn_cast<GlobalVariable>(GV); in ARMMaterializeGV() local
552 bool IsThreadLocal = GVar && GVar->isThreadLocal(); in ARMMaterializeGV()
DARMISelLowering.cpp3373 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/
DValue.cpp690 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()
DConstantFold.cpp1529 if (const auto *GVar = dyn_cast<GlobalVariable>(GV)) { in areGlobalsPotentiallyEqual() local
1530 Type *Ty = GVar->getValueType(); in areGlobalsPotentiallyEqual()
DVerifier.cpp576 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/
DMipsFastISel.cpp417 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/
DExecutionEngine.cpp583 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/
DXCoreISelLowering.cpp257 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/
DAsmPrinter.cpp167 if (const GlobalVariable *GVar = dyn_cast<GlobalVariable>(GV)) in getGVAlignment() local
168 Alignment = Align(DL.getPreferredAlignment(GVar)); in getGVAlignment()

12