Home | History | Annotate | Download | only in Writer

Lines Matching refs:GV

359 static unsigned getEncodedLinkage(const GlobalValue *GV) {
360 switch (GV->getLinkage()) {
381 static unsigned getEncodedVisibility(const GlobalValue *GV) {
382 switch (GV->getVisibility()) {
415 for (Module::const_global_iterator GV = M->global_begin(),E = M->global_end();
416 GV != E; ++GV) {
417 MaxAlignment = std::max(MaxAlignment, GV->getAlignment());
418 MaxGlobalType = std::max(MaxGlobalType, VE.getTypeID(GV->getType()));
419 if (GV->hasSection()) {
421 unsigned &Entry = SectionMap[GV->getSection()];
423 WriteStringRecord(bitc::MODULE_CODE_SECTIONNAME, GV->getSection(),
480 for (Module::const_global_iterator GV = M->global_begin(),E = M->global_end();
481 GV != E; ++GV) {
487 Vals.push_back(VE.getTypeID(GV->getType()));
488 Vals.push_back(GV->isConstant());
489 Vals.push_back(GV->isDeclaration() ? 0 :
490 (VE.getValueID(GV->getInitializer()) + 1));
491 Vals.push_back(getEncodedLinkage(GV));
492 Vals.push_back(Log2_32(GV->getAlignment())+1);
493 Vals.push_back(GV->hasSection() ? SectionMap[GV->getSection()] : 0);
494 if (GV->isThreadLocal() ||
495 GV->getVisibility() != GlobalValue::DefaultVisibility ||
496 GV->hasUnnamedAddr()) {
497 Vals.push_back(getEncodedVisibility(GV));
498 Vals.push_back(GV->isThreadLocal());
499 Vals.push_back(GV->hasUnnamedAddr());