• Home
  • Raw
  • Download

Lines Matching refs:GV

392 static unsigned getEncodedLinkage(const GlobalValue *GV) {  in getEncodedLinkage()  argument
393 switch (GV->getLinkage()) { in getEncodedLinkage()
414 static unsigned getEncodedVisibility(const GlobalValue *GV) { in getEncodedVisibility() argument
415 switch (GV->getVisibility()) { in getEncodedVisibility()
448 for (Module::const_global_iterator GV = M->global_begin(),E = M->global_end(); in WriteModuleInfo() local
449 GV != E; ++GV) { in WriteModuleInfo()
450 MaxAlignment = std::max(MaxAlignment, GV->getAlignment()); in WriteModuleInfo()
451 MaxGlobalType = std::max(MaxGlobalType, VE.getTypeID(GV->getType())); in WriteModuleInfo()
453 if (!GV->hasSection()) continue; in WriteModuleInfo()
455 unsigned &Entry = SectionMap[GV->getSection()]; in WriteModuleInfo()
457 WriteStringRecord(bitc::MODULE_CODE_SECTIONNAME, GV->getSection(), in WriteModuleInfo()
512 for (Module::const_global_iterator GV = M->global_begin(),E = M->global_end(); in WriteModuleInfo() local
513 GV != E; ++GV) { in WriteModuleInfo()
519 Vals.push_back(VE.getTypeID(GV->getType())); in WriteModuleInfo()
520 Vals.push_back(GV->isConstant()); in WriteModuleInfo()
521 Vals.push_back(GV->isDeclaration() ? 0 : in WriteModuleInfo()
522 (VE.getValueID(GV->getInitializer()) + 1)); in WriteModuleInfo()
523 Vals.push_back(getEncodedLinkage(GV)); in WriteModuleInfo()
524 Vals.push_back(Log2_32(GV->getAlignment())+1); in WriteModuleInfo()
525 Vals.push_back(GV->hasSection() ? SectionMap[GV->getSection()] : 0); in WriteModuleInfo()
526 if (GV->isThreadLocal() || in WriteModuleInfo()
527 GV->getVisibility() != GlobalValue::DefaultVisibility || in WriteModuleInfo()
528 GV->hasUnnamedAddr()) { in WriteModuleInfo()
529 Vals.push_back(getEncodedVisibility(GV)); in WriteModuleInfo()
530 Vals.push_back(GV->isThreadLocal()); in WriteModuleInfo()
531 Vals.push_back(GV->hasUnnamedAddr()); in WriteModuleInfo()