33 if (
auto *
Store = dyn_cast<StoreInst>(U)) {
34 if (
Store->getValueOperand() == GV ||
Store->isVolatile())
36 }
else if (
auto *
Load = dyn_cast<LoadInst>(U)) {
37 if (
Load->isVolatile())
bool hasDefinitiveInitializer() const
hasDefinitiveInitializer - Whether the global variable has an initializer, and any other instances of...
bool hasLocalLinkage() const
This class represents lattice values for constants.
bool canTrackArgumentsInterprocedurally(Function *F)
Determine if the values of the given function's arguments can be tracked interprocedurally.
bool hasFnAttribute(Attribute::AttrKind Kind) const
Return true if the function has the attribute.
bool isConstant() const
If the value is a global constant, its value is immutable throughout the runtime execution of the pro...
bool canTrackReturnsInterprocedurally(Function *F)
Determine if the values of the given function's returns can be tracked interprocedurally.
bool any_of(R &&range, UnaryPredicate P)
Provide wrappers to std::any_of which take ranges instead of having to pass begin/end explicitly...
bool canTrackGlobalVariableInterprocedurally(GlobalVariable *GV)
Determine if the value maintained in the given global variable can be tracked interprocedurally.
iterator_range< user_iterator > users()
bool hasExactDefinition() const
Return true if this global has an exact defintion.
bool hasAddressTaken(const User **=nullptr) const
hasAddressTaken - returns true if there are any uses of this function other than direct calls or invo...