Lines Matching refs:GVar
979 const GlobalVariable *GVar, bool IsAma) { in generatePatchImmReloc() argument
984 StringRef AccessPattern = GVar->getName(); in generatePatchImmReloc()
997 PatchImms[GVar] = std::make_pair(std::stoll(std::string(PatchImmStr)), in generatePatchImmReloc()
1003 PatchImms[GVar] = std::make_pair(RootId, FieldReloc.RelocKind); in generatePatchImmReloc()
1012 auto *GVar = dyn_cast<GlobalVariable>(GVal); in processReloc() local
1013 if (!GVar) in processReloc()
1016 if (!GVar->hasAttribute(BPFCoreSharedInfo::AmaAttr) && in processReloc()
1017 !GVar->hasAttribute(BPFCoreSharedInfo::TypeIdAttr)) in processReloc()
1023 MDNode *MDN = GVar->getMetadata(LLVMContext::MD_preserve_access_index); in processReloc()
1025 generatePatchImmReloc(ORSym, RootId, GVar, in processReloc()
1026 GVar->hasAttribute(BPFCoreSharedInfo::AmaAttr)); in processReloc()
1213 auto *GVar = dyn_cast<GlobalVariable>(GVal); in InstLower() local
1214 if (GVar) { in InstLower()
1218 if (GVar->hasAttribute(BPFCoreSharedInfo::AmaAttr) || in InstLower()
1219 GVar->hasAttribute(BPFCoreSharedInfo::TypeIdAttr)) { in InstLower()
1220 Imm = PatchImms[GVar].first; in InstLower()
1221 Reloc = PatchImms[GVar].second; in InstLower()
1244 auto *GVar = dyn_cast<GlobalVariable>(GVal); in InstLower() local
1245 if (GVar && GVar->hasAttribute(BPFCoreSharedInfo::AmaAttr)) { in InstLower()
1246 uint32_t Imm = PatchImms[GVar].first; in InstLower()