|
LLVM 23.0.0git
|
State for an integer range. More...
#include "llvm/Transforms/IPO/Attributor.h"
Static Public Member Functions | |
| static ConstantRange | getWorstState (uint32_t BitWidth) |
| Return the worst possible representable state. | |
| static ConstantRange | getBestState (uint32_t BitWidth) |
| Return the best possible representable state. | |
| static ConstantRange | getBestState (const IntegerRangeState &IRS) |
Public Attributes | |
| uint32_t | BitWidth |
| Bitwidth of the associated value. | |
| ConstantRange | Assumed |
| State representing assumed range, initially set to empty. | |
| ConstantRange | Known |
| State representing known range, initially set to [-inf, inf]. | |
State for an integer range.
Definition at line 2966 of file Attributor.h.
|
inline |
Definition at line 2977 of file Attributor.h.
References Assumed, BitWidth, and Known.
Referenced by getBestState(), intersectKnown(), operator&=(), operator==(), operator^=(), and unionAssumed().
|
inline |
Definition at line 2981 of file Attributor.h.
References Assumed, BitWidth, getBitWidth(), getWorstState(), and Known.
|
inline |
Return the assumed state encoding.
Definition at line 3025 of file Attributor.h.
References Assumed.
Referenced by llvm::operator<<(), operator==(), and stripAndAccumulateOffsets().
|
inlinestatic |
Definition at line 2994 of file Attributor.h.
References getBestState(), getBitWidth(), and IntegerRangeState().
|
inlinestatic |
Return the best possible representable state.
Definition at line 2991 of file Attributor.h.
References BitWidth.
Referenced by getBestState().
|
inline |
Return associated values' bit width.
Definition at line 2999 of file Attributor.h.
References BitWidth.
Referenced by getBestState(), IntegerRangeState(), and llvm::operator<<().
|
inline |
Return the known state encoding.
Definition at line 3022 of file Attributor.h.
References Known.
Referenced by llvm::operator<<(), operator==(), and stripAndAccumulateOffsets().
|
inlinestatic |
Return the worst possible representable state.
Definition at line 2986 of file Attributor.h.
References BitWidth.
Referenced by IntegerRangeState().
|
inlineoverridevirtual |
See AbstractState::indicateOptimisticFixpoint(...)
Implements llvm::AbstractState.
Definition at line 3010 of file Attributor.h.
References Assumed, llvm::CHANGED, and Known.
|
inlineoverridevirtual |
See AbstractState::indicatePessimisticFixpoint(...)
Implements llvm::AbstractState.
Definition at line 3016 of file Attributor.h.
References Assumed, llvm::CHANGED, and Known.
|
inline |
Intersect known range with the passed state.
Definition at line 3039 of file Attributor.h.
References Assumed, and Known.
Referenced by intersectKnown().
|
inline |
See IntegerRangeState::intersectKnown(..).
Definition at line 3045 of file Attributor.h.
References IntegerRangeState(), and intersectKnown().
|
inlineoverridevirtual |
See AbstractState::isAtFixpoint()
Implements llvm::AbstractState.
Definition at line 3007 of file Attributor.h.
|
inlineoverridevirtual |
See AbstractState::isValidState()
Implements llvm::AbstractState.
Definition at line 3002 of file Attributor.h.
|
inline |
Definition at line 3064 of file Attributor.h.
References Assumed, IntegerRangeState(), and Known.
|
inline |
Equality for IntegerRangeState.
Definition at line 3050 of file Attributor.h.
References getAssumed(), getKnown(), and IntegerRangeState().
|
inline |
"Clamp" this state with R.
The result is subtype dependent but it is intended that only information assumed in both states will be assumed in this one afterwards.
Definition at line 3057 of file Attributor.h.
References IntegerRangeState(), and unionAssumed().
|
inline |
Unite assumed range with the passed state.
Definition at line 3028 of file Attributor.h.
References Assumed, and Known.
Referenced by operator^=(), and unionAssumed().
|
inline |
See IntegerRangeState::unionAssumed(..).
Definition at line 3034 of file Attributor.h.
References IntegerRangeState(), and unionAssumed().
| ConstantRange llvm::IntegerRangeState::Assumed |
State representing assumed range, initially set to empty.
Definition at line 2972 of file Attributor.h.
Referenced by getAssumed(), indicateOptimisticFixpoint(), indicatePessimisticFixpoint(), IntegerRangeState(), IntegerRangeState(), intersectKnown(), isAtFixpoint(), isValidState(), operator&=(), and unionAssumed().
| uint32_t llvm::IntegerRangeState::BitWidth |
Bitwidth of the associated value.
Definition at line 2969 of file Attributor.h.
Referenced by getBestState(), getBitWidth(), getWorstState(), IntegerRangeState(), IntegerRangeState(), and isValidState().
| ConstantRange llvm::IntegerRangeState::Known |
State representing known range, initially set to [-inf, inf].
Definition at line 2975 of file Attributor.h.
Referenced by getKnown(), indicateOptimisticFixpoint(), indicatePessimisticFixpoint(), IntegerRangeState(), IntegerRangeState(), intersectKnown(), isAtFixpoint(), operator&=(), and unionAssumed().