llvm::AA::isValidInScope

Return true if V is a valid value in Scope, that is a constant or an instruction/argument of Scope.

Synopsis

Declared in <llvm/Transforms/IPO/Attributor.h>

bool
isValidInScope(
    Value const& V,
    Function const* Scope);

Return Value

True if V is a valid value in Scope, that is a constant or an instruction/argument of Scope.

Parameters

NameDescription
VThe value of interest.
ScopeThe value scope for the query.