Lines Matching defs:GV
49 void GlobalIsNeeded(GlobalValue *GV);
52 bool RemoveUnusedGlobalValue(GlobalValue &GV);
167 if (GlobalVariable *GV = dyn_cast<GlobalVariable>(G)) {
170 if (GV->hasInitializer())
171 MarkUsedGlobalsAsNeeded(GV->getInitializer());
188 if (GlobalValue *GV = dyn_cast<GlobalValue>(*U))
189 GlobalIsNeeded(GV);
196 if (GlobalValue *GV = dyn_cast<GlobalValue>(C))
197 return GlobalIsNeeded(GV);
215 bool GlobalDCE::RemoveUnusedGlobalValue(GlobalValue &GV) {
216 if (GV.use_empty()) return false;
217 GV.removeDeadConstantUsers();
218 return GV.use_empty();