LLVM: llvm::BooleanState Struct Reference (original) (raw)
Simple wrapper for a single bit (boolean) state. More...
#include "[llvm/Transforms/IPO/Attributor.h](Attributor%5F8h%5Fsource.html)"
| Public Member Functions |
|
|
BooleanState ()=default |
|
BooleanState (base_t Assumed) |
| void |
setAssumed (bool Value) |
|
Set the assumed value to Value but never below the known one. |
| void |
setKnown (bool Value) |
|
Set the known and asssumed value to Value. |
| bool |
isAssumed () const |
|
Return true if the state is assumed to hold. |
| bool |
isKnown () const |
|
Return true if the state is known to hold. |
| Public Member Functions inherited from llvm::IntegerStateBase< bool, true, false > |
|
|
IntegerStateBase ()=default |
|
IntegerStateBase (base_t Assumed) |
| bool |
isValidState () const override |
|
See AbstractState::isValidState() NOTE: For now we simply pretend that the worst possible state is invalid. |
| bool |
isAtFixpoint () const override |
|
See AbstractState::isAtFixpoint() |
| ChangeStatus |
indicateOptimisticFixpoint () override |
|
See AbstractState::indicateOptimisticFixpoint(...) |
| ChangeStatus |
indicatePessimisticFixpoint () override |
|
See AbstractState::indicatePessimisticFixpoint(...) |
| base_t |
getKnown () const |
|
Return the known state encoding. |
| base_t |
getAssumed () const |
|
Return the assumed state encoding. |
| bool |
operator== (const IntegerStateBase< base_t, BestState, WorstState > &R) const |
|
Equality for IntegerStateBase. |
| bool |
operator!= (const IntegerStateBase< base_t, BestState, WorstState > &R) const |
|
Inequality for IntegerStateBase. |
| void |
operator^= (const IntegerStateBase< base_t, BestState, WorstState > &R) |
|
"Clamp" this state with R. |
| void |
operator+= (const IntegerStateBase< base_t, BestState, WorstState > &R) |
|
"Clamp" this state with R. |
| void |
operator|= (const IntegerStateBase< base_t, BestState, WorstState > &R) |
| void |
operator&= (const IntegerStateBase< base_t, BestState, WorstState > &R) |
| Public Member Functions inherited from llvm::AbstractState |
|
| virtual |
~AbstractState ()=default |
Simple wrapper for a single bit (boolean) state.
Definition at line 2926 of file Attributor.h.
◆ base_t
◆ super
| llvm::BooleanState::BooleanState ( ) |
default |
◆ BooleanState() [2/2]
| llvm::BooleanState::BooleanState ( base_t Assumed) |
inline |
◆ isAssumed()
| bool llvm::BooleanState::isAssumed ( ) const |
inline |
◆ isKnown()
| bool llvm::BooleanState::isKnown ( ) const |
inline |
◆ setAssumed()
| void llvm::BooleanState::setAssumed ( bool Value) |
inline |
◆ setKnown()
| void llvm::BooleanState::setKnown ( bool Value) |
inline |
The documentation for this struct was generated from the following file: