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

12

/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/PowerPC/
H A DPPCTargetObjectFile.cpp41 const auto *GVar = dyn_cast<GlobalVariable>(GO); local
43 if (GVar && GVar->isConstant() && GVar->getInitializer()->needsRelocation())
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/
H A DTargetLoweringObjectFile.cpp158 const auto *GVar = cast<GlobalVariable>(GO); local
161 if (GVar->isThreadLocal()) {
162 if (isSuitableForBSS(GVar) && !TM.Options.NoZerosInBSS)
168 if (GVar->hasCommonLinkage())
173 if (isSuitableForBSS(GVar) && !TM.Options.NoZerosInBSS) {
174 if (GVar->hasLocalLinkage())
176 else if (GVar->hasExternalLinkage())
183 if (GVar->isConstant()) {
187 const Constant *C = GVar->getInitializer();
192 if (!GVar
[all...]
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/NVPTX/
H A DNVPTXAsmPrinter.cpp960 const GlobalVariable *GVar = cast<GlobalVariable>(V); local
961 if (GVar) {
962 if (GVar->hasInitializer())
986 void NVPTXAsmPrinter::printModuleLevelGV(const GlobalVariable *GVar, argument
990 if (GVar->hasSection()) {
991 if (GVar->getSection() == "llvm.metadata")
996 if (GVar->getName().startswith("llvm.") ||
997 GVar->getName().startswith("nvvm."))
1003 PointerType *PTy = GVar->getType();
1004 Type *ETy = GVar
1313 emitPTXGlobalVariable(const GlobalVariable *GVar, raw_ostream &O) argument
[all...]
H A DNVPTXAsmPrinter.h132 void addSymbol(const Value *GVar, const Value *GVarBeforeStripping) { argument
134 Symbols.push_back(GVar);
161 if (const GlobalValue *GVar = dyn_cast<GlobalValue>(v)) {
162 MCSymbol *Name = AP.getSymbol(GVar);
218 void printModuleLevelGV(const GlobalVariable *GVar, raw_ostream &O,
259 void emitPTXGlobalVariable(const GlobalVariable *GVar, raw_ostream &O);
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonTargetObjectFile.cpp208 const GlobalVariable *GVar = dyn_cast<GlobalVariable>(GO); local
209 if (!GVar) {
217 if (GVar->hasSection()) {
218 bool IsSmall = isSmallDataSection(GVar->getSection());
220 << ", has section: " << GVar->getSection() << '\n');
230 if (GVar->isConstant()) {
235 bool IsLocal = GVar->hasLocalLinkage();
241 Type *GType = GVar->getValueType();
258 unsigned Size = GVar->getParent()->getDataLayout().getTypeAllocSize(GType);
397 const GlobalVariable *GVar local
[all...]
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/BPF/
H A DBTFDebug.cpp978 const GlobalVariable *GVar, bool IsAma) {
983 StringRef AccessPattern = GVar->getName();
996 PatchImms[GVar] = std::stoul(std::string(PatchImmStr));
1001 PatchImms[GVar] = RootId;
1010 auto *GVar = dyn_cast<GlobalVariable>(GVal); local
1011 if (!GVar)
1014 if (!GVar->hasAttribute(BPFCoreSharedInfo::AmaAttr) &&
1015 !GVar->hasAttribute(BPFCoreSharedInfo::TypeIdAttr))
1021 MDNode *MDN = GVar->getMetadata(LLVMContext::MD_preserve_access_index);
1023 generatePatchImmReloc(ORSym, RootId, GVar,
977 generatePatchImmReloc(const MCSymbol *ORSym, uint32_t RootId, const GlobalVariable *GVar, bool IsAma) argument
1194 auto *GVar = dyn_cast<GlobalVariable>(GVal); local
1216 auto *GVar = dyn_cast<GlobalVariable>(GVal); local
[all...]
H A DBPFMISimplifyPatchable.cpp285 auto *GVar = dyn_cast<GlobalVariable>(GVal); local
286 if (!GVar)
291 if (GVar->hasAttribute(BPFCoreSharedInfo::AmaAttr))
293 else if (!GVar->hasAttribute(BPFCoreSharedInfo::TypeIdAttr))
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Object/
H A DModuleSymbolTable.cpp201 if (const GlobalVariable *GVar = dyn_cast<GlobalVariable>(GV)) {
202 if (GVar->isConstant())
H A DIRSymtab.cpp267 auto *GVar = dyn_cast<GlobalVariable>(GV); local
268 if (!GVar)
273 Uncommon().CommonAlign = GVar->getAlignment();
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Linker/
H A DLinkModules.cpp65 const GlobalVariable *&GVar);
131 const GlobalVariable *&GVar) {
141 GVar = dyn_cast_or_null<GlobalVariable>(GVal);
142 if (!GVar)
130 getComdatLeader(Module &M, StringRef ComdatName, const GlobalVariable *&GVar) argument
H A DIRMover.cpp1097 if (auto *GVar = dyn_cast<GlobalVariable>(&Src)) {
1098 linkGlobalVariable(cast<GlobalVariable>(Dst), *GVar); local
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DThinLTOBitcodeWriter.cpp282 if (auto *GVar = dyn_cast_or_null<GlobalVariable>(GV->getBaseObject()))
283 return HasTypeMetadata(GVar);
306 if (auto *GVar = dyn_cast_or_null<GlobalVariable>(GV->getBaseObject()))
307 if (HasTypeMetadata(GVar))
H A DWholeProgramDevirt.cpp797 auto *GVar = dyn_cast<GlobalVarSummary>(S.get()); local
798 if (!GVar || GVar->vTableFuncs().empty() ||
799 GVar->getVCallVisibility() != GlobalObject::VCallVisibilityPublic)
801 GVar->setVCallVisibility(GlobalObject::VCallVisibilityLinkageUnit);
H A DGlobalOpt.cpp2119 auto *GVar = dyn_cast<GlobalVariable>(&GV);
2120 if (!GVar)
2123 if (GVar->isConstant() || !GVar->hasInitializer())
2126 return processInternalGlobal(GVar, GS, GetTLI, LookupDomTree) || Changed;
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUPrintfRuntimeBinding.cpp183 GlobalVariable *GVar = dyn_cast<GlobalVariable>(ConstExpr->getOperand(0)); local
186 if (GVar && GVar->hasInitializer()) {
187 auto Init = GVar->getInitializer();
H A DAMDGPUISelLowering.cpp1281 const GlobalVariable *GVar = dyn_cast<GlobalVariable>(GV); local
1282 if (!GVar || !GVar->hasInitializer())
1285 return !isa<UndefValue>(GVar->getInitializer());
/freebsd-13-stable/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.cpp542 const GlobalVariable *GVar = dyn_cast<GlobalVariable>(GV); local
543 bool IsThreadLocal = GVar && GVar->isThreadLocal();
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Analysis/
H A DGlobalsModRef.cpp741 auto *GVar = dyn_cast<GlobalVariable>(GV);
743 if (GVar && InputGVar &&
744 !GVar->isDeclaration() && !InputGVar->isDeclaration() &&
745 !GVar->isInterposable() && !InputGVar->isInterposable()) {
746 Type *GVType = GVar->getInitializer()->getType();
/freebsd-13-stable/contrib/llvm-project/llvm/lib/IR/
H A DValue.cpp768 if (auto *GVar = dyn_cast<GlobalVariable>(GO)) {
769 Type *ObjectType = GVar->getValueType();
774 if (GVar->isStrongDefinitionForLinker())
775 return DL.getPreferredAlign(GVar);
H A DVerifier.cpp580 const GlobalVariable *GVar = dyn_cast<GlobalVariable>(&GV); local
581 Assert(GVar && GVar->getValueType()->isArrayTy(),
582 "Only global arrays can have appending linkage!", GVar);
H A DConstantFold.cpp1594 if (const auto *GVar = dyn_cast<GlobalVariable>(GV)) {
1595 Type *Ty = GVar->getValueType();
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/Mips/
H A DMipsFastISel.cpp417 const GlobalVariable *GVar = dyn_cast<GlobalVariable>(GV); local
418 bool IsThreadLocal = GVar && GVar->isThreadLocal();
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/XCore/
H A DXCoreISelLowering.cpp258 const auto *GVar = dyn_cast<GlobalVariable>(GV); local
260 (GVar && GVar->isConstant() && GV->hasLocalLinkage()))
/freebsd-13-stable/contrib/llvm-project/llvm/lib/ExecutionEngine/
H A DExecutionEngine.cpp585 if (GlobalVariable *GVar =
587 emitGlobalVariable(GVar);

Completed in 240 milliseconds

12