Home | History | Annotate | Download | only in IPO

Lines Matching refs:GV

48     void GlobalIsNeeded(GlobalValue *GV);
51 bool RemoveUnusedGlobalValue(GlobalValue &GV);
165 if (GlobalVariable *GV = dyn_cast<GlobalVariable>(G)) {
168 if (GV->hasInitializer())
169 MarkUsedGlobalsAsNeeded(GV->getInitializer());
183 if (GlobalValue *GV = dyn_cast<GlobalValue>(*U))
184 GlobalIsNeeded(GV);
191 if (GlobalValue *GV = dyn_cast<GlobalValue>(C))
192 return GlobalIsNeeded(GV);
207 bool GlobalDCE::RemoveUnusedGlobalValue(GlobalValue &GV) {
208 if (GV.use_empty()) return false;
209 GV.removeDeadConstantUsers();
210 return GV.use_empty();