Specialization of the integer state for a bit‐wise encoding.
Synopsis
Declared in <llvm/Transforms/IPO/Attributor.h>
template<
typename base_ty = uint32_t,
base_ty BestState = ~ base_ty(0),
base_ty WorstState = 0>
struct BitIntegerState
: IntegerStateBase<base_ty, BestState, WorstState>
Base Classes
Name |
Description |
Simple state with integers encoding. |
Type Aliases
Name |
Member Functions
Name |
Description |
|
Constructors |
Add the bits in |
|
Return the assumed state encoding. |
|
Return the known state encoding |
|
|
See AbstractState::indicateOptimisticFixpoint(...) |
|
See AbstractState::indicatePessimisticFixpoint(...) |
Keep only "assumed bits" also set in |
|
Return true if the bits set in |
|
|
See AbstractState::isAtFixpoint() |
Return true if the bits set in |
|
|
See AbstractState::isValidState() NOTE: For now we simply pretend that the worst possible state is invalid. |
"Clamp" this state with |
|
"Clamp" this state with |
|
Remove the bits in |
|
Remove the bits in |
|
Equality for IntegerStateBase. |
|
Inequality for IntegerStateBase. |
Static Member Functions
Name |
Description |
Return the best possible representable state. |
|
Return the worst possible representable state. |
Protected Member Functions
Name |
Description |
|
Handle a new assumed value |
|
Handle a new known value |
|
Handle a new assumed value |
|
Handle a value |