Home | History | Annotate | Download | only in BitWriter_2_9

Lines Matching refs:GV

386 static unsigned getEncodedLinkage(const GlobalValue *GV) {
387 switch (GV->getLinkage()) {
408 static unsigned getEncodedVisibility(const GlobalValue *GV) {
409 switch (GV->getVisibility()) {
439 for (Module::const_global_iterator GV = M->global_begin(),E = M->global_end();
440 GV != E; ++GV) {
441 MaxAlignment = std::max(MaxAlignment, GV->getAlignment());
442 MaxGlobalType = std::max(MaxGlobalType, VE.getTypeID(GV->getType()));
444 if (!GV->hasSection()) continue;
446 unsigned &Entry = SectionMap[GV->getSection()];
448 WriteStringRecord(bitc::MODULE_CODE_SECTIONNAME, GV->getSection(),
503 for (Module::const_global_iterator GV = M->global_begin(),E = M->global_end();
504 GV != E; ++GV) {
510 Vals.push_back(VE.getTypeID(GV->getType()));
511 Vals.push_back(GV->isConstant());
512 Vals.push_back(GV->isDeclaration() ? 0 :
513 (VE.getValueID(GV->getInitializer()) + 1));
514 Vals.push_back(getEncodedLinkage(GV));
515 Vals.push_back(Log2_32(GV->getAlignment())+1);
516 Vals.push_back(GV->hasSection() ? SectionMap[GV->getSection()] : 0);
517 if (GV->isThreadLocal() ||
518 GV->getVisibility() != GlobalValue::DefaultVisibility ||
519 GV->hasUnnamedAddr()) {
520 Vals.push_back(getEncodedVisibility(GV));
521 Vals.push_back(GV->isThreadLocal());
522 Vals.push_back(GV->hasUnnamedAddr());