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

References

lib/Transforms/IPO/GlobalOpt.cpp
 1607   Type *GVElType = GV->getValueType();
 1614   if (GVElType == Type::getInt1Ty(GV->getContext()) ||
 1621   for (User *U : GV->users())
 1625   LLVM_DEBUG(dbgs() << "   *** SHRINKING TO BOOL: " << *GV << "\n");
 1628   GlobalVariable *NewGV = new GlobalVariable(Type::getInt1Ty(GV->getContext()),
 1631                                         ConstantInt::getFalse(GV->getContext()),
 1632                                              GV->getName()+".b",
 1633                                              GV->getThreadLocalMode(),
 1634                                              GV->getType()->getAddressSpace());
 1635   NewGV->copyAttributesFrom(GV);
 1636   GV->getParent()->getGlobalList().insert(GV->getIterator(), NewGV);
 1636   GV->getParent()->getGlobalList().insert(GV->getIterator(), NewGV);
 1638   Constant *InitVal = GV->getInitializer();
 1639   assert(InitVal->getType() != Type::getInt1Ty(GV->getContext()) &&
 1643   GV->getDebugInfo(GVs);
 1653     auto *CIInit = dyn_cast<ConstantInt>(GV->getInitializer());
 1662         const DataLayout &DL = GV->getParent()->getDataLayout();
 1696   while (!GV->use_empty()) {
 1697     Instruction *UI = cast<Instruction>(GV->user_back());
 1704         StoreVal = ConstantInt::get(Type::getInt1Ty(GV->getContext()),
 1716           assert(LI->getOperand(0) == GV && "Not a copy!");
 1755   NewGV->takeName(GV);
 1756   GV->eraseFromParent();