|
LLVM 23.0.0git
|
A class for a set state. More...
#include "llvm/Transforms/IPO/Attributor.h"
Public Types | |
| using | SetTy = SmallSetVector<MemberTy, 8> |
Public Member Functions | |
| PotentialValuesState () | |
| PotentialValuesState (bool IsValid) | |
| bool | isValidState () const override |
| See AbstractState::isValidState(...) | |
| bool | isAtFixpoint () const override |
| See AbstractState::isAtFixpoint(...) | |
| ChangeStatus | indicatePessimisticFixpoint () override |
| See AbstractState::indicatePessimisticFixpoint(...) | |
| ChangeStatus | indicateOptimisticFixpoint () override |
| See AbstractState::indicateOptimisticFixpoint(...) | |
| PotentialValuesState & | getAssumed () |
| Return the assumed state. | |
| const PotentialValuesState & | getAssumed () const |
| const SetTy & | getAssumedSet () const |
| Return this set. | |
| bool | undefIsContained () const |
| Returns whether this state contains an undef value or not. | |
| bool | operator== (const PotentialValuesState &RHS) const |
| void | unionAssumed (const MemberTy &C) |
| Union assumed set with the passed value. | |
| void | unionAssumed (const PotentialValuesState &PVS) |
Union assumed set with assumed set of the passed state PVS. | |
| void | unionAssumedWithUndef () |
| Union assumed set with an undef value. | |
| PotentialValuesState | operator^= (const PotentialValuesState &PVS) |
"Clamp" this state with PVS. | |
| PotentialValuesState | operator&= (const PotentialValuesState &PVS) |
| bool | contains (const MemberTy &V) const |
| Public Member Functions inherited from llvm::AbstractState | |
| virtual | ~AbstractState ()=default |
Static Public Member Functions | |
| static PotentialValuesState | getBestState () |
| Return empty set as the best state of potential values. | |
| static PotentialValuesState | getBestState (const PotentialValuesState &PVS) |
| static PotentialValuesState | getWorstState () |
| Return full set as the worst state of potential values. | |
Static Public Attributes | |
| static unsigned | MaxPotentialValues |
| Maximum number of potential values to be tracked. | |
Protected Member Functions | |
| SetTy & | getAssumedSet () |
A class for a set state.
The assumed boolean state indicates whether the corresponding set is full set or not. If the assumed state is false, this is the worst state. The worst state (invalid state) of set of potential values is when the set contains every possible value (i.e. we cannot in any way limit the value that the target position can take). That never happens naturally, we only force it. As for the conditions under which we force it, see AAPotentialConstantValues.
Definition at line 5023 of file Attributor.h.
| using llvm::PotentialValuesState< MemberTy >::SetTy = SmallSetVector<MemberTy, 8> |
Definition at line 5024 of file Attributor.h.
|
inline |
Definition at line 5026 of file Attributor.h.
Referenced by llvm::PotentialValuesState< APInt >::getBestState(), and llvm::PotentialValuesState< APInt >::getWorstState().
|
inline |
Definition at line 5028 of file Attributor.h.
|
inline |
Definition at line 5114 of file Attributor.h.
|
inline |
Return the assumed state.
Definition at line 5048 of file Attributor.h.
|
inline |
Definition at line 5049 of file Attributor.h.
|
inlineprotected |
Definition at line 5119 of file Attributor.h.
|
inline |
Return this set.
We should check whether this set is valid or not by isValidState() before calling this function.
Definition at line 5053 of file Attributor.h.
Referenced by llvm::operator<<(), and llvm::operator<<().
|
inlinestatic |
Return empty set as the best state of potential values.
Definition at line 5079 of file Attributor.h.
Referenced by llvm::PotentialValuesState< APInt >::getBestState().
|
inlinestatic |
Definition at line 5083 of file Attributor.h.
|
inlinestatic |
Return full set as the worst state of potential values.
Definition at line 5088 of file Attributor.h.
|
inlineoverridevirtual |
See AbstractState::indicateOptimisticFixpoint(...)
Implements llvm::AbstractState.
Definition at line 5043 of file Attributor.h.
|
inlineoverridevirtual |
See AbstractState::indicatePessimisticFixpoint(...)
Implements llvm::AbstractState.
Definition at line 5038 of file Attributor.h.
|
inlineoverridevirtual |
See AbstractState::isAtFixpoint(...)
Implements llvm::AbstractState.
Definition at line 5035 of file Attributor.h.
|
inlineoverridevirtual |
See AbstractState::isValidState(...)
Implements llvm::AbstractState.
Definition at line 5032 of file Attributor.h.
Referenced by llvm::PotentialValuesState< APInt >::contains(), llvm::PotentialValuesState< APInt >::getAssumedSet(), llvm::PotentialValuesState< APInt >::getAssumedSet(), llvm::operator<<(), llvm::operator<<(), llvm::PotentialValuesState< APInt >::operator==(), and llvm::PotentialValuesState< APInt >::undefIsContained().
|
inline |
Definition at line 5108 of file Attributor.h.
|
inline |
Definition at line 5064 of file Attributor.h.
|
inline |
"Clamp" this state with PVS.
Definition at line 5102 of file Attributor.h.
|
inline |
Returns whether this state contains an undef value or not.
Definition at line 5059 of file Attributor.h.
Referenced by llvm::operator<<(), llvm::operator<<(), and llvm::PotentialValuesState< APInt >::operator==().
|
inline |
Union assumed set with the passed value.
Definition at line 5093 of file Attributor.h.
Referenced by llvm::PotentialValuesState< APInt >::operator&=(), and llvm::PotentialValuesState< APInt >::operator^=().
|
inline |
Union assumed set with assumed set of the passed state PVS.
Definition at line 5096 of file Attributor.h.
|
inline |
Union assumed set with an undef value.
Definition at line 5099 of file Attributor.h.
|
static |
Maximum number of potential values to be tracked.
This is set by -attributor-max-potential-values command line option
Definition at line 5076 of file Attributor.h.