Lines Matching refs:gv
77 if (GlobalVariable *GV = dyn_cast<GlobalVariable>(V))
78 Globals.insert(GV);
88 /// VisitGlobalVariableForEmission - Add \p GV to the list of GlobalVariable
91 void VisitGlobalVariableForEmission(GlobalVariable *GV,
96 if (Visited.count(GV)) return;
99 if (Visiting.count(GV))
103 Visiting.insert(GV);
107 for (unsigned i = 0, e = GV->getNumOperands(); i != e; ++i)
108 DiscoverDependentGlobals(GV->getOperand(i), Others);
115 Order.push_back(GV);
116 Visited.insert(GV);
117 Visiting.erase(GV);
135 if (const GlobalValue *GV = dyn_cast<GlobalValue>(CV))
136 return MCSymbolRefExpr::Create(AP.Mang->getSymbol(GV), Ctx);
704 if (const GlobalVariable *GV = dyn_cast<GlobalVariable>(C)) {
705 if (GV->getName().str() == "llvm.used")
739 if (md->hasName() && ((md->getName().str() == "llvm.dbg.gv") ||
759 static bool canDemoteGlobalVar(const GlobalVariable *gv, Function const *&f) {
760 if (gv->hasInternalLinkage() == false)
762 const PointerType *Pty = gv->getType();
768 bool flag = usedInOneFunc(gv, oneFunc);