Home | History | Annotate | Download | only in BitWriter_3_2

Lines Matching refs:GV

349 static unsigned getEncodedLinkage(const GlobalValue *GV) {
350 switch (GV->getLinkage()) {
366 static unsigned getEncodedVisibility(const GlobalValue *GV) {
367 switch (GV->getVisibility()) {
375 static unsigned getEncodedThreadLocalMode(const GlobalVariable *GV) {
376 switch (GV->getThreadLocalMode()) {
408 for (Module::const_global_iterator GV = M->global_begin(),E = M->global_end();
409 GV != E; ++GV) {
410 MaxAlignment = std::max(MaxAlignment, GV->getAlignment());
411 MaxGlobalType = std::max(MaxGlobalType, VE.getTypeID(GV->getType()));
412 if (GV->hasSection()) {
414 unsigned &Entry = SectionMap[GV->getSection()];
416 WriteStringRecord(bitc::MODULE_CODE_SECTIONNAME, GV->getSection(),
473 for (Module::const_global_iterator GV = M->global_begin(),E = M->global_end();
474 GV != E; ++GV) {
480 Vals.push_back(VE.getTypeID(GV->getType()));
481 Vals.push_back(GV->isConstant());
482 Vals.push_back(GV->isDeclaration() ? 0 :
483 (VE.getValueID(GV->getInitializer()) + 1));
484 Vals.push_back(getEncodedLinkage(GV));
485 Vals.push_back(Log2_32(GV->getAlignment())+1);
486 Vals.push_back(GV->hasSection() ? SectionMap[GV->getSection()] : 0);
487 if (GV->isThreadLocal() ||
488 GV->getVisibility() != GlobalValue::DefaultVisibility ||
489 GV->hasUnnamedAddr() || GV->isExternallyInitialized()) {
490 Vals.push_back(getEncodedVisibility(GV));
491 Vals.push_back(getEncodedThreadLocalMode(GV));
492 Vals.push_back(GV->hasUnnamedAddr());
493 Vals.push_back(GV->isExternallyInitialized());