reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

lib/Transforms/IPO/GlobalOpt.cpp
  464   if (!GlobalUsersSafeToSRA(GV))
  467   assert(GV->hasLocalLinkage());
  468   Constant *Init = GV->getInitializer();
  472   Module::GlobalListType &Globals = GV->getParent()->getGlobalList();
  475   unsigned StartAlignment = GV->getAlignment();
  477     StartAlignment = DL.getABITypeAlignment(GV->getType());
  488                                                In, GV->getName()+"."+Twine(i),
  489                                                GV->getThreadLocalMode(),
  490                                               GV->getType()->getAddressSpace());
  491       NGV->setExternallyInitialized(GV->isExternallyInitialized());
  492       NGV->copyAttributesFrom(GV);
  507       transferSRADebugInfo(GV, NGV, FragmentOffsetInBits, Size, NumElements);
  511     if (NumElements > 16 && GV->hasNUsesOrMore(16))
  524                                                In, GV->getName()+"."+Twine(i),
  525                                                GV->getThreadLocalMode(),
  526                                               GV->getType()->getAddressSpace());
  527       NGV->setExternallyInitialized(GV->isExternallyInitialized());
  528       NGV->copyAttributesFrom(GV);
  538       transferSRADebugInfo(GV, NGV, FragmentSizeInBits * i, FragmentSizeInBits,
  546   LLVM_DEBUG(dbgs() << "PERFORMING GLOBAL SRA ON: " << *GV << "\n");
  548   Constant *NullInt =Constant::getNullValue(Type::getInt32Ty(GV->getContext()));
  552   while (!GV->use_empty()) {
  553     User *GEP = GV->user_back();
  595   Globals.erase(GV);