LLVM: llvm::IntegerRangeState Struct Reference (original) (raw)
State for an integer range. More...
#include "[llvm/Transforms/IPO/Attributor.h](Attributor%5F8h%5Fsource.html)"
| 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 2968 of file Attributor.h.
| llvm::IntegerRangeState::IntegerRangeState ( uint32_t BitWidth) | inline |
|---|
◆ IntegerRangeState() [2/2]
◆ getAssumed()
| ConstantRange llvm::IntegerRangeState::getAssumed ( ) const | inline |
|---|
◆ getBestState() [1/2]
◆ getBestState() [2/2]
◆ getBitWidth()
| uint32_t llvm::IntegerRangeState::getBitWidth ( ) const | inline |
|---|
◆ getKnown()
◆ getWorstState()
◆ indicateOptimisticFixpoint()
| ChangeStatus llvm::IntegerRangeState::indicateOptimisticFixpoint ( ) | inlineoverridevirtual |
|---|
◆ indicatePessimisticFixpoint()
| ChangeStatus llvm::IntegerRangeState::indicatePessimisticFixpoint ( ) | inlineoverridevirtual |
|---|
◆ intersectKnown() [1/2]
◆ intersectKnown() [2/2]
◆ isAtFixpoint()
| bool llvm::IntegerRangeState::isAtFixpoint ( ) const | inlineoverridevirtual |
|---|
◆ isValidState()
| bool llvm::IntegerRangeState::isValidState ( ) const | inlineoverridevirtual |
|---|
◆ operator&=()
◆ operator==()
◆ operator^=()
"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 3059 of file Attributor.h.
References IntegerRangeState(), and unionAssumed().
◆ unionAssumed() [1/2]
◆ unionAssumed() [2/2]
◆ Assumed
State representing assumed range, initially set to empty.
Definition at line 2974 of file Attributor.h.
Referenced by getAssumed(), indicateOptimisticFixpoint(), indicatePessimisticFixpoint(), IntegerRangeState(), IntegerRangeState(), intersectKnown(), isAtFixpoint(), isValidState(), operator&=(), and unionAssumed().
◆ BitWidth
uint32_t llvm::IntegerRangeState::BitWidth
◆ Known
State representing known range, initially set to [-inf, inf].
Definition at line 2977 of file Attributor.h.
Referenced by getKnown(), indicateOptimisticFixpoint(), indicatePessimisticFixpoint(), IntegerRangeState(), IntegerRangeState(), intersectKnown(), isAtFixpoint(), operator&=(), and unionAssumed().
The documentation for this struct was generated from the following file:
- include/llvm/Transforms/IPO/Attributor.h