Lines Matching refs:GlobalStatus
1 //===-- GlobalStatus.cpp - Compute status info for globals -----------------==//
10 #include "llvm/Transforms/Utils/GlobalStatus.h"
62 static bool analyzeGlobalAux(const Value *V, GlobalStatus &GS,
66 GS.StoredType = GlobalStatus::StoredOnce;
109 if (GS.StoredType != GlobalStatus::Stored) {
122 if (GS.StoredType < GlobalStatus::InitializerStored)
123 GS.StoredType = GlobalStatus::InitializerStored;
126 if (GS.StoredType < GlobalStatus::InitializerStored)
127 GS.StoredType = GlobalStatus::InitializerStored;
128 } else if (GS.StoredType < GlobalStatus::StoredOnce) {
129 GS.StoredType = GlobalStatus::StoredOnce;
131 } else if (GS.StoredType == GlobalStatus::StoredOnce &&
135 GS.StoredType = GlobalStatus::Stored;
138 GS.StoredType = GlobalStatus::Stored;
160 GS.StoredType = GlobalStatus::Stored;
167 GS.StoredType = GlobalStatus::Stored;
190 GlobalStatus::GlobalStatus() = default;
192 bool GlobalStatus::analyzeGlobal(const Value *V, GlobalStatus &GS) {