Lines Matching refs:GlobalStatus
61 struct GlobalStatus;
81 const GlobalStatus &GS);
94 /// GlobalStatus - As we analyze each global, keep track of some information
97 struct GlobalStatus {
146 GlobalStatus() : isCompared(false), isLoaded(false), StoredType(NotStored),
171 /// AnalyzeGlobal - Look at all uses of the global and fill in the GlobalStatus
175 static bool AnalyzeGlobal(const Value *V, GlobalStatus &GS,
210 if (GS.StoredType != GlobalStatus::isStored) {
215 if (GS.StoredType < GlobalStatus::isInitializerStored)
216 GS.StoredType = GlobalStatus::isInitializerStored;
219 if (GS.StoredType < GlobalStatus::isInitializerStored)
220 GS.StoredType = GlobalStatus::isInitializerStored;
221 } else if (GS.StoredType < GlobalStatus::isStoredOnce) {
222 GS.StoredType = GlobalStatus::isStoredOnce;
224 } else if (GS.StoredType == GlobalStatus::isStoredOnce &&
228 GS.StoredType = GlobalStatus::isStored;
231 GS.StoredType = GlobalStatus::isStored;
249 GS.StoredType = GlobalStatus::isStored;
255 GS.StoredType = GlobalStatus::isStored;
1720 GlobalStatus GS;
1741 const GlobalStatus &GS) {
1789 } else if (GS.StoredType <= GlobalStatus::isInitializerStored) {
1812 } else if (GS.StoredType == GlobalStatus::isStoredOnce) {