LLVM 22.0.0git
|
#include "llvm/Transforms/IPO/Attributor.h"
Public Member Functions | |
ValueSimplifyStateType (Type *Ty) | |
bool | isValidState () const override |
See AbstractState::isValidState(...) | |
bool | isAtFixpoint () const override |
See AbstractState::isAtFixpoint(...) | |
ValueSimplifyStateType | getAssumed () |
Return the assumed state encoding. | |
const ValueSimplifyStateType & | getAssumed () const |
ChangeStatus | indicatePessimisticFixpoint () override |
See AbstractState::indicatePessimisticFixpoint(...) | |
ChangeStatus | indicateOptimisticFixpoint () override |
See AbstractState::indicateOptimisticFixpoint(...) | |
ValueSimplifyStateType | operator^= (const ValueSimplifyStateType &VS) |
"Clamp" this state with PVS . | |
bool | operator== (const ValueSimplifyStateType &RHS) const |
Public Member Functions inherited from llvm::AbstractState | |
virtual | ~AbstractState ()=default |
Static Public Member Functions | |
static ValueSimplifyStateType | getBestState (Type *Ty) |
static ValueSimplifyStateType | getBestState (const ValueSimplifyStateType &VS) |
static ValueSimplifyStateType | getWorstState (Type *Ty) |
Return the worst possible representable state. | |
static ValueSimplifyStateType | getWorstState (const ValueSimplifyStateType &VS) |
Protected Member Functions | |
LLVM_ABI bool | unionAssumed (std::optional< Value * > Other) |
Merge Other into the currently assumed simplified value. |
Protected Attributes | |
Type * | Ty |
The type of the original value. | |
BooleanState | BS |
Helper to track validity and fixpoint. | |
std::optional< Value * > | SimplifiedAssociatedValue |
An assumed simplified value. |
Definition at line 4480 of file Attributor.h.
|
inline |
Definition at line 4482 of file Attributor.h.
References Ty.
Referenced by getAssumed(), getAssumed(), getBestState(), getBestState(), getWorstState(), getWorstState(), operator==(), and operator^=().
|
inline |
Return the assumed state encoding.
Definition at line 4509 of file Attributor.h.
References ValueSimplifyStateType().
|
inline |
Definition at line 4510 of file Attributor.h.
References ValueSimplifyStateType().
|
inlinestatic |
Definition at line 4487 of file Attributor.h.
References getBestState(), and ValueSimplifyStateType().
|
inlinestatic |
Definition at line 4484 of file Attributor.h.
References Ty, and ValueSimplifyStateType().
Referenced by getBestState().
|
inlinestatic |
Definition at line 4498 of file Attributor.h.
References getWorstState(), and ValueSimplifyStateType().
|
inlinestatic |
Return the worst possible representable state.
Definition at line 4492 of file Attributor.h.
References Ty, and ValueSimplifyStateType().
Referenced by getWorstState().
|
inlineoverridevirtual |
See AbstractState::indicateOptimisticFixpoint(...)
Implements llvm::AbstractState.
Definition at line 4518 of file Attributor.h.
References BS.
|
inlineoverridevirtual |
See AbstractState::indicatePessimisticFixpoint(...)
Implements llvm::AbstractState.
Definition at line 4513 of file Attributor.h.
References BS.
|
inlineoverridevirtual |
See AbstractState::isAtFixpoint(...)
Implements llvm::AbstractState.
Definition at line 4506 of file Attributor.h.
References BS.
|
inlineoverridevirtual |
See AbstractState::isValidState(...)
Implements llvm::AbstractState.
Definition at line 4503 of file Attributor.h.
References BS.
Referenced by operator==().
|
inline |
Definition at line 4529 of file Attributor.h.
References isValidState(), RHS, SimplifiedAssociatedValue, and ValueSimplifyStateType().
|
inline |
"Clamp" this state with PVS
.
Definition at line 4523 of file Attributor.h.
References BS, unionAssumed(), and ValueSimplifyStateType().
Merge Other
into the currently assumed simplified value.
---------------— Value Simplify Attribute -------------------------—
Definition at line 6145 of file AttributorAttributes.cpp.
References llvm::AA::combineOptionalValuesInAAValueLatice(), llvm::dbgs(), LLVM_DEBUG, llvm::Other, SimplifiedAssociatedValue, and Ty.
Referenced by operator^=().
|
protected |
Helper to track validity and fixpoint.
Definition at line 4545 of file Attributor.h.
Referenced by indicateOptimisticFixpoint(), indicatePessimisticFixpoint(), isAtFixpoint(), isValidState(), and operator^=().
|
protected |
An assumed simplified value.
Initially, it is set to std::nullopt, which means that the value is not clear under current assumption. If in the pessimistic state, getAssumedSimplifiedValue doesn't return this value but returns orignal associated value.
Definition at line 4551 of file Attributor.h.
Referenced by operator==(), and unionAssumed().
|
protected |
The type of the original value.
Definition at line 4539 of file Attributor.h.
Referenced by getBestState(), getWorstState(), unionAssumed(), and ValueSimplifyStateType().