Home | History | Annotate | Download | only in Utils

Lines Matching refs:GS

47 static bool analyzeGlobalAux(const Value *V, GlobalStatus &GS,
52 GS.HasNonInstructionUser = true;
59 if (analyzeGlobalAux(CE, GS, PhiUsers))
62 if (!GS.HasMultipleAccessingFunctions) {
64 if (!GS.AccessingFunction)
65 GS.AccessingFunction = F;
66 else if (GS.AccessingFunction != F)
67 GS.HasMultipleAccessingFunctions = true;
70 GS.IsLoaded = true;
74 GS.Ordering = strongerOrdering(GS.Ordering, LI->getOrdering());
84 GS.Ordering = strongerOrdering(GS.Ordering, SI->getOrdering());
89 if (GS.StoredType != GlobalStatus::Stored) {
102 if (GS.StoredType < GlobalStatus::InitializerStored)
103 GS.StoredType = GlobalStatus::InitializerStored;
106 if (GS.StoredType < GlobalStatus::InitializerStored)
107 GS.StoredType = GlobalStatus::InitializerStored;
108 } else if (GS.StoredType < GlobalStatus::StoredOnce) {
109 GS.StoredType = GlobalStatus::StoredOnce;
110 GS.StoredOnceValue = StoredVal;
111 } else if (GS.StoredType == GlobalStatus::StoredOnce &&
112 GS.StoredOnceValue == StoredVal) {
115 GS.StoredType = GlobalStatus::Stored;
118 GS.StoredType = GlobalStatus::Stored;
122 if (analyzeGlobalAux(I, GS, PhiUsers))
125 if (analyzeGlobalAux(I, GS, PhiUsers))
128 if (analyzeGlobalAux(I, GS, PhiUsers))
134 if (analyzeGlobalAux(I, GS, PhiUsers))
137 GS.IsCompared = true;
142 GS.StoredType = GlobalStatus::Stored;
144 GS.IsLoaded = true;
149 GS.StoredType = GlobalStatus::Stored;
153 GS.IsLoaded = true;
158 GS.HasNonInstructionUser = true;
163 GS.HasNonInstructionUser = true;
172 bool GlobalStatus::analyzeGlobal(const Value *V, GlobalStatus &GS) {
174 return analyzeGlobalAux(V, GS, PhiUsers);