|
LLVM
10.0.0
|
Specialization of the integer state for a bit-wise encoding. More...
#include "llvm/Transforms/IPO/Attributor.h"
Public Types | |
| using | base_t = base_ty |
Public Types inherited from llvm::IntegerStateBase< base_ty, BestState, WorstState > | |
| using | base_t = base_ty |
Public Member Functions | |
| bool | isKnown (base_t BitsEncoding) const |
Return true if the bits set in BitsEncoding are "known bits". More... | |
| bool | isAssumed (base_t BitsEncoding) const |
Return true if the bits set in BitsEncoding are "assumed bits". More... | |
| BitIntegerState & | addKnownBits (base_t Bits) |
Add the bits in BitsEncoding to the "known bits". More... | |
| BitIntegerState & | removeAssumedBits (base_t BitsEncoding) |
Remove the bits in BitsEncoding from the "assumed bits" if not known. More... | |
| BitIntegerState & | removeKnownBits (base_t BitsEncoding) |
Remove the bits in BitsEncoding from the "known bits". More... | |
| BitIntegerState & | intersectAssumedBits (base_t BitsEncoding) |
Keep only "assumed bits" also set in BitsEncoding but all known ones. More... | |
Public Member Functions inherited from llvm::IntegerStateBase< base_ty, BestState, WorstState > | |
| bool | isValidState () const override |
| See AbstractState::isValidState() NOTE: For now we simply pretend that the worst possible state is invalid. More... | |
| bool | isAtFixpoint () const override |
| See AbstractState::isAtFixpoint() More... | |
| ChangeStatus | indicateOptimisticFixpoint () override |
| See AbstractState::indicateOptimisticFixpoint(...) More... | |
| ChangeStatus | indicatePessimisticFixpoint () override |
| See AbstractState::indicatePessimisticFixpoint(...) More... | |
| base_t | getKnown () const |
| Return the known state encoding. More... | |
| base_t | getAssumed () const |
| Return the assumed state encoding. More... | |
| bool | operator== (const IntegerStateBase< base_t, BestState, WorstState > &R) const |
| Equality for IntegerStateBase. More... | |
| bool | operator!= (const IntegerStateBase< base_t, BestState, WorstState > &R) const |
| Inequality for IntegerStateBase. More... | |
| void | operator^= (const IntegerStateBase< base_t, BestState, WorstState > &R) |
"Clamp" this state with R. More... | |
| 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 () |
Additional Inherited Members | |
Static Public Member Functions inherited from llvm::IntegerStateBase< base_ty, BestState, WorstState > | |
| static constexpr base_t | getBestState () |
| Return the best possible representable state. More... | |
| static constexpr base_t | getWorstState () |
| Return the worst possible representable state. More... | |
Protected Attributes inherited from llvm::IntegerStateBase< base_ty, BestState, WorstState > | |
| base_t | Known = getWorstState() |
| The known state encoding in an integer of type base_t. More... | |
| base_t | Assumed = getBestState() |
| The assumed state encoding in an integer of type base_t. More... | |
Specialization of the integer state for a bit-wise encoding.
Definition at line 1340 of file Attributor.h.
| using llvm::BitIntegerState< base_ty, BestState, WorstState >::base_t = base_ty |
Definition at line 1342 of file Attributor.h.
|
inline |
Add the bits in BitsEncoding to the "known bits".
Definition at line 1355 of file Attributor.h.
Referenced by llvm::IRPosition::getAttrs().
|
inline |
Keep only "assumed bits" also set in BitsEncoding but all known ones.
Definition at line 1374 of file Attributor.h.
|
inline |
Return true if the bits set in BitsEncoding are "assumed bits".
Definition at line 1350 of file Attributor.h.
|
inline |
Return true if the bits set in BitsEncoding are "known bits".
Definition at line 1345 of file Attributor.h.
|
inline |
Remove the bits in BitsEncoding from the "assumed bits" if not known.
Definition at line 1363 of file Attributor.h.
Referenced by llvm::IRPosition::getAttrs().
|
inline |
Remove the bits in BitsEncoding from the "known bits".
Definition at line 1368 of file Attributor.h.
1.8.13