reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
840 LLVM_DEBUG(errs() << "PROMOTING GLOBAL: " << *GV << " CALL = " << *CI 853 *GV->getParent(), GlobalType, false, GlobalValue::InternalLinkage, 854 UndefValue::get(GlobalType), GV->getName() + ".body", nullptr, 855 GV->getThreadLocalMode()); 878 if (NewGV->getType() != GV->getValueType()) 879 RepValue = ConstantExpr::getBitCast(RepValue, GV->getValueType()); 884 new GlobalVariable(Type::getInt1Ty(GV->getContext()), false, 886 ConstantInt::getFalse(GV->getContext()), 887 GV->getName()+".init", GV->getThreadLocalMode()); 887 GV->getName()+".init", GV->getThreadLocalMode()); 891 while (!GV->use_empty()) { 892 if (StoreInst *SI = dyn_cast<StoreInst>(GV->user_back())) { 894 new StoreInst(ConstantInt::getTrue(GV->getContext()), InitBool, false, 900 LoadInst *LI = cast<LoadInst>(GV->user_back()); 920 LV = ConstantInt::getFalse(GV->getContext()); 946 GV->getParent()->getGlobalList().insert(GV->getIterator(), InitBool); 946 GV->getParent()->getGlobalList().insert(GV->getIterator(), InitBool); 949 GV->eraseFromParent();