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