Lines Matching refs:GV

344 static unsigned getEncodedLinkage(const GlobalValue &GV) {  in getEncodedLinkage()  argument
345 switch (GV.getLinkage()) { in getEncodedLinkage()
372 static unsigned getEncodedVisibility(const GlobalValue &GV) { in getEncodedVisibility() argument
373 switch (GV.getVisibility()) { in getEncodedVisibility()
403 for (const GlobalValue &GV : M->globals()) { in WriteModuleInfo() local
404 MaxAlignment = std::max(MaxAlignment, GV.getAlignment()); in WriteModuleInfo()
405 MaxGlobalType = std::max(MaxGlobalType, VE.getTypeID(GV.getType())); in WriteModuleInfo()
406 if (GV.hasSection()) { in WriteModuleInfo()
408 unsigned &Entry = SectionMap[GV.getSection()]; in WriteModuleInfo()
410 WriteStringRecord(bitc::MODULE_CODE_SECTIONNAME, GV.getSection(), in WriteModuleInfo()
467 for (const GlobalVariable &GV : M->globals()) { in WriteModuleInfo() local
473 Vals.push_back(VE.getTypeID(GV.getType())); in WriteModuleInfo()
474 Vals.push_back(GV.isConstant()); in WriteModuleInfo()
475 Vals.push_back(GV.isDeclaration() ? 0 : in WriteModuleInfo()
476 (VE.getValueID(GV.getInitializer()) + 1)); in WriteModuleInfo()
477 Vals.push_back(getEncodedLinkage(GV)); in WriteModuleInfo()
478 Vals.push_back(Log2_32(GV.getAlignment())+1); in WriteModuleInfo()
479 Vals.push_back(GV.hasSection() ? SectionMap[GV.getSection()] : 0); in WriteModuleInfo()
480 if (GV.isThreadLocal() || in WriteModuleInfo()
481 GV.getVisibility() != GlobalValue::DefaultVisibility || in WriteModuleInfo()
482 GV.getUnnamedAddr() != GlobalValue::UnnamedAddr::None) { in WriteModuleInfo()
483 Vals.push_back(getEncodedVisibility(GV)); in WriteModuleInfo()
484 Vals.push_back(GV.isThreadLocal()); in WriteModuleInfo()
485 Vals.push_back(GV.getUnnamedAddr() != GlobalValue::UnnamedAddr::None); in WriteModuleInfo()