Lines Matching refs:GV
390 static unsigned getEncodedLinkage(const GlobalValue *GV) {
391 switch (GV->getLinkage()) {
407 static unsigned getEncodedVisibility(const GlobalValue *GV) {
408 switch (GV->getVisibility()) {
438 for (Module::const_global_iterator GV
439 GV != E; ++GV) {
440 MaxAlignment = std::max(MaxAlignment, GV->getAlignment());
441 MaxGlobalType = std::max(MaxGlobalType, VE.getTypeID(GV->getType()));
443 if (!GV->hasSection()) continue;
445 unsigned &Entry = SectionMap[GV->getSection()];
447 WriteStringRecord(bitc::MODULE_CODE_SECTIONNAME, GV->getSection(),
502 for (Module::const_global_iterator GV = M->global_begin(),E = M->global_end();
503 GV != E; ++GV) {
509 Vals.push_back(VE.getTypeID(GV->getType()));
510 Vals.push_back(GV->isConstant());
511 Vals.push_back(GV->isDeclaration() ? 0 :
512 (VE.getValueID(GV->getInitializer()) + 1));
513 Vals.push_back(getEncodedLinkage(GV));
514 Vals.push_back(Log2_32(GV->getAlignment())+1);
515 Vals.push_back(GV->hasSection() ? SectionMap[GV->getSection()] : 0);
516 if (GV->isThreadLocal() ||
517 GV->getVisibility() != GlobalValue::DefaultVisibility ||
518 GV->hasUnnamedAddr()) {
519 Vals.push_back(getEncodedVisibility(GV));
520 Vals.push_back(GV->isThreadLocal());
521 Vals.push_back(GV->hasUnnamedAddr());