LLVM 22.0.0git
|
A type to track pointer/struct usage and accesses for AAPointerInfo. More...
Static Public Member Functions | |
static State | getBestState (const State &SIS) |
Return the best possible representable state. | |
static State | getWorstState (const State &SIS) |
Return the worst possible representable state. |
Protected Member Functions | |
template<typename F> | |
bool | forallInterferingAccesses (AA::RangeTy Range, F CB) const |
See AAPointerInfo::forallInterferingAccesses. | |
template<typename F> | |
bool | forallInterferingAccesses (Instruction &I, F CB, AA::RangeTy &Range) const |
See AAPointerInfo::forallInterferingAccesses. |
Protected Attributes | |
SmallVector< AAPointerInfo::Access > | AccessList |
AAPointerInfo::OffsetBinsTy | OffsetBins |
DenseMap< const Instruction *, SmallVector< unsigned > > | RemoteIMap |
AAPointerInfo::OffsetInfo | ReturnedOffsets |
Flag to determine if the underlying pointer is reaching a return statement in the associated function or not. |
A type to track pointer/struct usage and accesses for AAPointerInfo.
Definition at line 792 of file AttributorAttributes.cpp.
|
default |
Referenced by getAssumed(), getBestState(), getWorstState(), operator=(), operator=(), and State().
ChangeStatus llvm::AA::PointerInfo::State::addAccess | ( | Attributor & | A, |
const AAPointerInfo::RangeList & | Ranges, | ||
Instruction & | I, | ||
std::optional< Value * > | Content, | ||
AAPointerInfo::AccessKind | Kind, | ||
Type * | Ty, | ||
Instruction * | RemoteI = nullptr ) |
Add a new Access to the state at offset Offset
and with size Size
.
The access is associated with I
, writes Content
(if anything), and is of kind Kind
. If an Access already exists for the same I
and same RemoteI
, the two are combined, potentially losing information about offset and size. The resulting access must now be moved from its original OffsetBin to the bin for its new offset.
\Returns CHANGED, if the state changed, UNCHANGED otherwise.
Definition at line 938 of file AttributorAttributes.cpp.
References A(), AccessList, assert(), llvm::Bin, llvm::CHANGED, llvm::dbgs(), I, llvm::InnerAnalysisManagerProxy< AnalysisManagerT, IRUnitT, ExtraArgTs... >::Key, LLVM_DEBUG, OffsetBins, RemoteIMap, llvm::AAPointerInfo::RangeList::set_difference(), ToRemove, and llvm::UNCHANGED.
|
inline |
Definition at line 861 of file AttributorAttributes.cpp.
References OffsetBins.
|
inline |
Definition at line 862 of file AttributorAttributes.cpp.
References OffsetBins.
|
inlineprotected |
See AAPointerInfo::forallInterferingAccesses.
Definition at line 893 of file AttributorAttributes.cpp.
References Access, AccessList, F, isValidState(), OffsetBins, Range, and ReturnedOffsets.
Referenced by forallInterferingAccesses().
|
inlineprotected |
See AAPointerInfo::forallInterferingAccesses.
Definition at line 913 of file AttributorAttributes.cpp.
References AccessList, F, forallInterferingAccesses(), I, isValidState(), Range, RemoteIMap, and ReturnedOffsets.
|
inline |
Definition at line 865 of file AttributorAttributes.cpp.
References AccessList.
Definition at line 806 of file AttributorAttributes.cpp.
References State().
Return the best possible representable state.
Definition at line 794 of file AttributorAttributes.cpp.
References State().
Return the worst possible representable state.
Definition at line 797 of file AttributorAttributes.cpp.
References State().
|
inlineoverridevirtual |
See AbstractState::indicateOptimisticFixpoint().
Implements llvm::AbstractState.
Definition at line 815 of file AttributorAttributes.cpp.
References llvm::UNCHANGED.
|
inlineoverridevirtual |
See AbstractState::indicatePessimisticFixpoint().
Implements llvm::AbstractState.
Definition at line 821 of file AttributorAttributes.cpp.
References llvm::CHANGED.
|
inlineoverridevirtual |
See AbstractState::isAtFixpoint().
Implements llvm::AbstractState.
Definition at line 812 of file AttributorAttributes.cpp.
|
inlineoverridevirtual |
See AbstractState::isValidState().
Implements llvm::AbstractState.
Definition at line 809 of file AttributorAttributes.cpp.
Referenced by forallInterferingAccesses(), and forallInterferingAccesses().
|
inline |
Definition at line 863 of file AttributorAttributes.cpp.
References OffsetBins.
Definition at line 826 of file AttributorAttributes.cpp.
References AccessList, OffsetBins, RemoteIMap, ReturnedOffsets, and State().
Definition at line 837 of file AttributorAttributes.cpp.
References AccessList, OffsetBins, RemoteIMap, ReturnedOffsets, State(), and std::swap().
|
protected |
Definition at line 882 of file AttributorAttributes.cpp.
Referenced by addAccess(), forallInterferingAccesses(), forallInterferingAccesses(), getAccess(), operator=(), and operator=().
|
protected |
Definition at line 883 of file AttributorAttributes.cpp.
Referenced by addAccess(), begin(), end(), forallInterferingAccesses(), numOffsetBins(), operator=(), and operator=().
|
protected |
Definition at line 884 of file AttributorAttributes.cpp.
Referenced by addAccess(), forallInterferingAccesses(), operator=(), and operator=().
|
protected |
Flag to determine if the underlying pointer is reaching a return statement in the associated function or not.
Returns in other functions cause invalidation.
Definition at line 889 of file AttributorAttributes.cpp.
Referenced by forallInterferingAccesses(), forallInterferingAccesses(), operator=(), and operator=().