• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/contrib/llvm-project/llvm/lib/AsmParser/

Lines Matching defs:GV

181     } else if (auto *GV = dyn_cast<GlobalVariable>(V)) {
182 AttrBuilder Attrs(GV->getAttributes());
184 GV->setAttributes(AttributeSet::get(Context,Attrs));
875 // If there was an explicit dso_local, update GV. In the absence of an explicit
877 static void maybeSetDSOLocal(bool DSOLocal, GlobalValue &GV) {
879 GV.setDSOLocal(true);
1103 GlobalVariable *GV;
1105 GV = new GlobalVariable(*M, Ty, false, GlobalValue::ExternalLinkage, nullptr,
1113 GV = cast<GlobalVariable>(GVal);
1116 M->getGlobalList().splice(M->global_end(), M->getGlobalList(), GV);
1120 NumberedVals.push_back(GV);
1124 GV->setInitializer(Init);
1125 GV->setConstant(IsConstant);
1126 GV->setLinkage((GlobalValue::LinkageTypes)Linkage);
1127 maybeSetDSOLocal(DSOLocal, *GV);
1128 GV->setVisibility((GlobalValue::VisibilityTypes)Visibility);
1129 GV->setDLLStorageClass((GlobalValue::DLLStorageClassTypes)DLLStorageClass);
1130 GV->setExternallyInitialized(IsExternallyInitialized);
1131 GV->setThreadLocalMode(TLM);
1132 GV->setUnnamedAddr(UnnamedAddr);
1140 GV->setSection(Lex.getStrVal());
1145 GV->setPartition(Lex.getStrVal());
1151 GV->setAlignment(Alignment);
1153 if (ParseGlobalObjectMetadataAttachment(*GV))
1160 GV->setComdat(C);
1172 GV->setAttributes(AttributeSet::get(Context, Attrs));
1173 ForwardRefAttrGroups[GV] = FwdRefAttrGrps;
3337 GlobalValue *GV = nullptr;
3340 GV = NumberedVals[Fn.UIntVal];
3342 GV = M->getNamedValue(Fn.StrVal);
3345 if (GV) {
3347 if (!isa<Function>(GV))
3349 F = cast<Function>(GV);
5679 GlobalValue *GV = I.second;
5691 GV->replaceAllUsesWith(BlockAddress::get(&F, BB));
5692 GV->eraseFromParent();
7580 GlobalValue *GV;
7582 GV = M->getNamedValue(Fn.StrVal);
7584 GV = Fn.UIntVal < NumberedVals.size() ? NumberedVals[Fn.UIntVal] : nullptr;
7587 if (!GV)
7589 auto *F = dyn_cast<Function>(GV);
7756 // of any forward GV references that need updating later.
8086 auto *GV = M->getNamedValue(Name);
8087 assert(GV);
8088 VI = Index->getOrInsertValueInfo(GV);
8556 // of any forward GV references that need updating later.
8643 // locations of any forward GV references that need updating later.
8824 // of any forward GV references that need updating later.
8919 // locations of any forward GV references that need updating later.
8960 // locations of any forward GV references that need updating later.
8999 // locations of any forward GV references that need updating later.
9199 if (ParseToken(lltok::SummaryID, "expected GV ID"))
9203 // Check if we already have a VI for this GV