|
LLVM 23.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 784 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 930 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 853 of file AttributorAttributes.cpp.
References OffsetBins.
|
inline |
Definition at line 854 of file AttributorAttributes.cpp.
References OffsetBins.
|
inlineprotected |
See AAPointerInfo::forallInterferingAccesses.
Definition at line 885 of file AttributorAttributes.cpp.
References Access, AccessList, F, isValidState(), OffsetBins, Range, and ReturnedOffsets.
Referenced by forallInterferingAccesses().
|
inlineprotected |
See AAPointerInfo::forallInterferingAccesses.
Definition at line 905 of file AttributorAttributes.cpp.
References AccessList, F, forallInterferingAccesses(), I, isValidState(), Range, RemoteIMap, and ReturnedOffsets.
|
inline |
Definition at line 857 of file AttributorAttributes.cpp.
References AccessList.
Definition at line 798 of file AttributorAttributes.cpp.
References State().
Return the best possible representable state.
Definition at line 786 of file AttributorAttributes.cpp.
References State().
Return the worst possible representable state.
Definition at line 789 of file AttributorAttributes.cpp.
References State().
|
inlineoverridevirtual |
See AbstractState::indicateOptimisticFixpoint().
Implements llvm::AbstractState.
Definition at line 807 of file AttributorAttributes.cpp.
References llvm::UNCHANGED.
|
inlineoverridevirtual |
See AbstractState::indicatePessimisticFixpoint().
Implements llvm::AbstractState.
Definition at line 813 of file AttributorAttributes.cpp.
References llvm::CHANGED.
|
inlineoverridevirtual |
See AbstractState::isAtFixpoint().
Implements llvm::AbstractState.
Definition at line 804 of file AttributorAttributes.cpp.
|
inlineoverridevirtual |
See AbstractState::isValidState().
Implements llvm::AbstractState.
Definition at line 801 of file AttributorAttributes.cpp.
Referenced by forallInterferingAccesses(), and forallInterferingAccesses().
|
inline |
Definition at line 855 of file AttributorAttributes.cpp.
References OffsetBins.
Definition at line 818 of file AttributorAttributes.cpp.
References AccessList, OffsetBins, RemoteIMap, ReturnedOffsets, and State().
Definition at line 829 of file AttributorAttributes.cpp.
References AccessList, OffsetBins, RemoteIMap, ReturnedOffsets, State(), and std::swap().
|
protected |
Definition at line 874 of file AttributorAttributes.cpp.
Referenced by addAccess(), forallInterferingAccesses(), forallInterferingAccesses(), getAccess(), operator=(), and operator=().
|
protected |
Definition at line 875 of file AttributorAttributes.cpp.
Referenced by addAccess(), begin(), end(), forallInterferingAccesses(), numOffsetBins(), operator=(), and operator=().
|
protected |
Definition at line 876 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 881 of file AttributorAttributes.cpp.
Referenced by forallInterferingAccesses(), forallInterferingAccesses(), operator=(), and operator=().