enum GlobalStatus::StoredType

Description

Keep track of what stores to the global look like.

Declared at: llvm/include/llvm/Transforms/Utils/GlobalStatus.h:42

Enumerators

NameValueComment
NotStored0There is no store to this global. It can thus be marked constant.
InitializerStored1This global is stored to, but the only thing stored is the constant it was initialized with. This is only tracked for scalar globals.
StoredOnce2This global is stored to, but only its initializer and one other value is ever stored to it. If this global isStoredOnce, we track the value stored to it via StoredOnceStore below. This is only tracked for scalar globals.
Stored3This global is stored to by multiple values or something else that we cannot track.