|
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 2947 of file Attributor.h.
|
inline |
Definition at line 2958 of file Attributor.h.
References Assumed, BitWidth, and Known.
Referenced by getBestState(), intersectKnown(), operator&=(), operator==(), operator^=(), and unionAssumed().
|
inline |
Definition at line 2962 of file Attributor.h.
References Assumed, BitWidth, getBitWidth(), getWorstState(), and Known.
|
inline |
Return the assumed state encoding.
Definition at line 3006 of file Attributor.h.
References Assumed.
Referenced by llvm::operator<<(), operator==(), and stripAndAccumulateOffsets().
|
inlinestatic |
Definition at line 2975 of file Attributor.h.
References getBestState(), getBitWidth(), and IntegerRangeState().
|
inlinestatic |
Return the best possible representable state.
Definition at line 2972 of file Attributor.h.
References BitWidth.
Referenced by getBestState().
|
inline |
Return associated values' bit width.
Definition at line 2980 of file Attributor.h.
References BitWidth.
Referenced by getBestState(), IntegerRangeState(), and llvm::operator<<().
|
inline |
Return the known state encoding.
Definition at line 3003 of file Attributor.h.
References Known.
Referenced by llvm::operator<<(), operator==(), and stripAndAccumulateOffsets().
|
inlinestatic |
Return the worst possible representable state.
Definition at line 2967 of file Attributor.h.
References BitWidth.
Referenced by IntegerRangeState().
|
inlineoverridevirtual |
See AbstractState::indicateOptimisticFixpoint(...)
Implements llvm::AbstractState.
Definition at line 2991 of file Attributor.h.
References Assumed, llvm::CHANGED, and Known.
|
inlineoverridevirtual |
See AbstractState::indicatePessimisticFixpoint(...)
Implements llvm::AbstractState.
Definition at line 2997 of file Attributor.h.
References Assumed, llvm::CHANGED, and Known.
|
inline |
Intersect known range with the passed state.
Definition at line 3020 of file Attributor.h.
References Assumed, and Known.
Referenced by intersectKnown().
|
inline |
See IntegerRangeState::intersectKnown(..).
Definition at line 3026 of file Attributor.h.
References IntegerRangeState(), and intersectKnown().
|
inlineoverridevirtual |
See AbstractState::isAtFixpoint()
Implements llvm::AbstractState.
Definition at line 2988 of file Attributor.h.
|
inlineoverridevirtual |
See AbstractState::isValidState()
Implements llvm::AbstractState.
Definition at line 2983 of file Attributor.h.
|
inline |
Definition at line 3045 of file Attributor.h.
References Assumed, IntegerRangeState(), and Known.
|
inline |
Equality for IntegerRangeState.
Definition at line 3031 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 3038 of file Attributor.h.
References IntegerRangeState(), and unionAssumed().
|
inline |
Unite assumed range with the passed state.
Definition at line 3009 of file Attributor.h.
References Assumed, and Known.
Referenced by operator^=(), and unionAssumed().
|
inline |
See IntegerRangeState::unionAssumed(..).
Definition at line 3015 of file Attributor.h.
References IntegerRangeState(), and unionAssumed().
| ConstantRange llvm::IntegerRangeState::Assumed |
State representing assumed range, initially set to empty.
Definition at line 2953 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 2950 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 2956 of file Attributor.h.
Referenced by getKnown(), indicateOptimisticFixpoint(), indicatePessimisticFixpoint(), IntegerRangeState(), IntegerRangeState(), intersectKnown(), isAtFixpoint(), operator&=(), and unionAssumed().