Searched refs:GVar (Results 1 - 25 of 29) sorted by relevance

12

/freebsd-current/contrib/llvm-project/llvm/lib/Target/PowerPC/
H A DPPCTargetObjectFile.cpp41 const auto *GVar = dyn_cast<GlobalVariable>(GO); local
43 if (GVar && GVar->isConstant() &&
44 GVar->getInitializer()->needsDynamicRelocation())
/freebsd-current/contrib/llvm-project/llvm/lib/Target/
H A DTargetLoweringObjectFile.cpp214 const auto *GVar = cast<GlobalVariable>(GO); local
217 if (GVar->isThreadLocal()) {
218 if (isSuitableForBSS(GVar) && !TM.Options.NoZerosInBSS) {
221 if (GVar->hasLocalLinkage()) {
230 if (GVar->hasCommonLinkage())
235 if (isSuitableForBSS(GVar) && !TM.Options.NoZerosInBSS) {
236 if (GVar->hasLocalLinkage())
238 else if (GVar->hasExternalLinkage())
245 if (GVar->hasSection())
246 if (MDNode *MD = GVar
[all...]
/freebsd-current/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonTargetObjectFile.cpp207 const GlobalVariable *GVar = dyn_cast<GlobalVariable>(GO); local
208 if (!GVar) {
216 if (GVar->hasSection()) {
217 bool IsSmall = isSmallDataSection(GVar->getSection());
219 << ", has section: " << GVar->getSection() << '\n');
229 if (GVar->isConstant()) {
234 bool IsLocal = GVar->hasLocalLinkage();
240 Type *GType = GVar->getValueType();
257 unsigned Size = GVar->getParent()->getDataLayout().getTypeAllocSize(GType);
399 const GlobalVariable *GVar local
[all...]
/freebsd-current/contrib/llvm-project/llvm/lib/Target/NVPTX/
H A DNVPTXAsmPrinter.cpp983 const GlobalVariable *GVar = cast<GlobalVariable>(V); local
984 if (GVar) {
985 if (GVar->hasInitializer())
1009 void NVPTXAsmPrinter::printModuleLevelGV(const GlobalVariable *GVar, argument
1013 if (GVar->hasSection()) {
1014 if (GVar->getSection() == "llvm.metadata")
1019 if (GVar->getName().starts_with("llvm.") ||
1020 GVar->getName().starts_with("nvvm."))
1026 PointerType *PTy = GVar->getType();
1027 Type *ETy = GVar
1428 emitPTXGlobalVariable(const GlobalVariable *GVar, raw_ostream &O, const NVPTXSubtarget &STI) argument
[all...]
H A DNVPTXAsmPrinter.h138 void addSymbol(const Value *GVar, const Value *GVarBeforeStripping) { argument
140 Symbols.push_back(GVar);
174 void printModuleLevelGV(const GlobalVariable *GVar, raw_ostream &O,
213 void emitPTXGlobalVariable(const GlobalVariable *GVar, raw_ostream &O,
/freebsd-current/contrib/llvm-project/llvm/lib/Target/BPF/
H A DBPFMISimplifyPatchable.cpp344 auto *GVar = dyn_cast<GlobalVariable>(GVal); local
345 if (!GVar)
350 if (GVar->hasAttribute(BPFCoreSharedInfo::AmaAttr))
352 else if (!GVar->hasAttribute(BPFCoreSharedInfo::TypeIdAttr))
H A DBTFDebug.cpp1258 const GlobalVariable *GVar, bool IsAma) {
1263 StringRef AccessPattern = GVar->getName();
1276 PatchImms[GVar] = std::make_pair(std::stoll(std::string(PatchImmStr)),
1282 PatchImms[GVar] = std::make_pair(RootId, FieldReloc.RelocKind);
1291 auto *GVar = dyn_cast<GlobalVariable>(GVal); local
1292 if (!GVar) {
1298 if (!GVar->hasAttribute(BPFCoreSharedInfo::AmaAttr) &&
1299 !GVar->hasAttribute(BPFCoreSharedInfo::TypeIdAttr))
1305 MDNode *MDN = GVar->getMetadata(LLVMContext::MD_preserve_access_index);
1307 generatePatchImmReloc(ORSym, RootId, GVar,
1257 generatePatchImmReloc(const MCSymbol *ORSym, uint32_t RootId, const GlobalVariable *GVar, bool IsAma) argument
1508 auto *GVar = dyn_cast<GlobalVariable>(GVal); local
1538 auto *GVar = dyn_cast<GlobalVariable>(GVal); local
[all...]
/freebsd-current/contrib/llvm-project/llvm/lib/Object/
H A DModuleSymbolTable.cpp213 if (const GlobalVariable *GVar = dyn_cast<GlobalVariable>(GV)) {
214 if (GVar->isConstant())
H A DIRSymtab.cpp293 auto *GVar = dyn_cast<GlobalVariable>(GV); local
294 if (!GVar)
299 Uncommon().CommonAlign = GVar->getAlign() ? GVar->getAlign()->value() : 0;
/freebsd-current/contrib/llvm-project/llvm/lib/Target/SPIRV/
H A DSPIRVGlobalRegistry.cpp469 const GlobalVariable *GVar = nullptr; local
471 GVar = cast<const GlobalVariable>(GV);
476 GVar = M->getGlobalVariable(Name);
477 if (GVar == nullptr) {
479 GVar = new GlobalVariable(*M, const_cast<Type *>(Ty), false,
483 GV = GVar;
485 Register Reg = DT.find(GVar, &MIRBuilder.getMF());
510 DT.add(GVar, &MIRBuilder.getMF(), Reg);
522 if (GVar && GVar
[all...]
/freebsd-current/contrib/llvm-project/llvm/lib/Linker/
H A DLinkModules.cpp66 const GlobalVariable *&GVar);
132 const GlobalVariable *&GVar) {
142 GVar = dyn_cast_or_null<GlobalVariable>(GVal);
143 if (!GVar)
131 getComdatLeader(Module &M, StringRef ComdatName, const GlobalVariable *&GVar) argument
H A DIRMover.cpp1162 if (auto *GVar = dyn_cast<GlobalVariable>(&Src)) {
1163 linkGlobalVariable(cast<GlobalVariable>(Dst), *GVar); local
/freebsd-current/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DThinLTOBitcodeWriter.cpp360 if (auto *GVar =
362 return HasTypeMetadata(GVar);
390 if (auto *GVar = dyn_cast_or_null<GlobalVariable>(GV->getAliaseeObject()))
391 if (HasTypeMetadata(GVar))
H A DGlobalOpt.cpp1639 auto *GVar = dyn_cast<GlobalVariable>(&GV);
1640 if (!GVar)
1643 if (GVar->isConstant() || !GVar->hasInitializer())
1646 return processInternalGlobal(GVar, GS, GetTTI, GetTLI, LookupDomTree) ||
H A DWholeProgramDevirt.cpp906 auto *GVar = dyn_cast<GlobalVarSummary>(S.get()); local
907 if (!GVar ||
908 GVar->getVCallVisibility() != GlobalObject::VCallVisibilityPublic)
916 GVar->setVCallVisibility(GlobalObject::VCallVisibilityLinkageUnit);
/freebsd-current/contrib/llvm-project/llvm/lib/Target/ARM/
H A DARMConstantPoolValue.cpp154 ARMConstantPoolConstant::Create(const GlobalVariable *GVar, argument
156 return new ARMConstantPoolConstant(GVar, Initializer);
H A DARMFastISel.cpp536 const GlobalVariable *GVar = dyn_cast<GlobalVariable>(GV); local
537 bool IsThreadLocal = GVar && GVar->isThreadLocal();
/freebsd-current/contrib/llvm-project/llvm/lib/Analysis/
H A DGlobalsModRef.cpp731 auto *GVar = dyn_cast<GlobalVariable>(GV);
733 if (GVar && InputGVar &&
734 !GVar->isDeclaration() && !InputGVar->isDeclaration() &&
735 !GVar->isInterposable() && !InputGVar->isInterposable()) {
736 Type *GVType = GVar->getInitializer()->getType();
/freebsd-current/contrib/llvm-project/llvm/lib/CodeGen/
H A DTargetLoweringObjectFileImpl.cpp2343 if (const GlobalVariable *GVar = dyn_cast<GlobalVariable>(GV))
2344 if (GVar->hasAttribute("toc-data"))
2346 SectionForGlobal(GVar, SectionKind::getData(), TM))
2372 if (const GlobalVariable *GVar = dyn_cast<GlobalVariable>(GO))
2373 if (GVar->hasAttribute("toc-data"))
2410 if (const GlobalVariable *GVar = dyn_cast<GlobalVariable>(GO))
2411 if (GVar->hasAttribute("toc-data"))
2423 if (const GlobalVariable *GVar = dyn_cast<GlobalVariable>(GO))
2424 if (GVar->hasAttribute("toc-data")) {
/freebsd-current/contrib/llvm-project/llvm/lib/IR/
H A DValue.cpp941 if (auto *GVar = dyn_cast<GlobalVariable>(GO)) {
942 Type *ObjectType = GVar->getValueType();
947 if (GVar->isStrongDefinitionForLinker())
948 return DL.getPreferredAlign(GVar);
H A DConstantFold.cpp1074 if (const auto *GVar = dyn_cast<GlobalVariable>(GV)) {
1075 Type *Ty = GVar->getValueType();
H A DVerifier.cpp721 const GlobalVariable *GVar = dyn_cast<GlobalVariable>(&GV); local
722 Check(GVar && GVar->getValueType()->isArrayTy(),
723 "Only global arrays can have appending linkage!", GVar);
/freebsd-current/contrib/llvm-project/llvm/lib/Target/Mips/
H A DMipsFastISel.cpp412 const GlobalVariable *GVar = dyn_cast<GlobalVariable>(GV); local
413 bool IsThreadLocal = GVar && GVar->isThreadLocal();
/freebsd-current/contrib/llvm-project/llvm/lib/Target/XCore/
H A DXCoreISelLowering.cpp251 const auto *GVar = dyn_cast<GlobalVariable>(GV); local
253 (GVar && GVar->isConstant() && GV->hasLocalLinkage()))
/freebsd-current/contrib/llvm-project/llvm/lib/ExecutionEngine/
H A DExecutionEngine.cpp574 if (GlobalVariable *GVar =
576 emitGlobalVariable(GVar);

Completed in 417 milliseconds

12