Lines Matching defs:GV
353 static unsigned getEncodedLinkage(const GlobalValue *GV) {
354 switch (GV->getLinkage()) {
375 static unsigned getEncodedVisibility(const GlobalValue *GV) {
376 switch (GV->getVisibility()) {
410 for (Module::const_global_iterator GV = M->global_begin(),E = M->global_end();
411 GV != E; ++GV) {
412 MaxAlignment = std::max(MaxAlignment, GV->getAlignment());
413 MaxGlobalType = std::max(MaxGlobalType, VE.getTypeID(GV->getType()));
414 if (GV->hasSection()) {
416 unsigned &Entry = SectionMap[GV->getSection()];
418 WriteStringRecord(bitc::MODULE_CODE_SECTIONNAME, GV->getSection(),
475 for (Module::const_global_iterator GV = M->global_begin(),E = M->global_end();
476 GV != E; ++GV) {
482 Vals.push_back(VE.getTypeID(GV->getType()));
483 Vals.push_back(GV->isConstant());
484 Vals.push_back(GV->isDeclaration() ? 0 :
485 (VE.getValueID(GV->getInitializer()) + 1));
486 Vals.push_back(getEncodedLinkage(GV));
487 Vals.push_back(Log2_32(GV->getAlignment())+1);
488 Vals.push_back(GV->hasSection() ? SectionMap[GV->getSection()] : 0);
489 if (GV->isThreadLocal() ||
490 GV->getVisibility() != GlobalValue::DefaultVisibility ||
491 GV->hasUnnamedAddr()) {
492 Vals.push_back(getEncodedVisibility(GV));
493 Vals.push_back(GV->isThreadLocal());
494 Vals.push_back(GV->hasUnnamedAddr());