LLVM 20.0.0git
|
An access description. More...
#include "llvm/Transforms/IPO/Attributor.h"
Public Types | |
using | const_iterator = RangeList::const_iterator |
Public Member Functions | |
Access (Instruction *I, int64_t Offset, int64_t Size, std::optional< Value * > Content, AccessKind Kind, Type *Ty) | |
Access (Instruction *LocalI, Instruction *RemoteI, const RangeList &Ranges, std::optional< Value * > Content, AccessKind K, Type *Ty) | |
Access (Instruction *LocalI, Instruction *RemoteI, int64_t Offset, int64_t Size, std::optional< Value * > Content, AccessKind Kind, Type *Ty) | |
Access (const Access &Other)=default | |
Access & | operator= (const Access &Other)=default |
bool | operator== (const Access &R) const |
bool | operator!= (const Access &R) const |
Access & | operator&= (const Access &R) |
void | verify () |
AccessKind | getKind () const |
Return the access kind. | |
bool | isRead () const |
Return true if this is a read access. | |
bool | isWrite () const |
Return true if this is a write access. | |
bool | isWriteOrAssumption () const |
Return true if this is a write access. | |
bool | isAssumption () const |
Return true if this is an assumption access. | |
bool | isMustAccess () const |
bool | isMayAccess () const |
Instruction * | getLocalInst () const |
Return the instruction that causes the access with respect to the local scope of the associated attribute. | |
Instruction * | getRemoteInst () const |
Return the actual instruction that causes the access. | |
bool | isWrittenValueYetUndetermined () const |
Return true if the value written is not known yet. | |
bool | isWrittenValueUnknown () const |
Return true if the value written cannot be determined at all. | |
void | setWrittenValueUnknown () |
Set the value written to nullptr, i.e., unknown. | |
Type * | getType () const |
Return the type associated with the access, if known. | |
Value * | getWrittenValue () const |
Return the value writen, if any. | |
std::optional< Value * > | getContent () const |
Return the written value which can be llvm::null if it is not yet determined. | |
bool | hasUniqueRange () const |
const AA::RangeTy & | getUniqueRange () const |
void | addRange (int64_t Offset, int64_t Size) |
Add a range accessed by this Access. | |
const RangeList & | getRanges () const |
const_iterator | begin () const |
const_iterator | end () const |
An access description.
Definition at line 5933 of file Attributor.h.
Definition at line 6076 of file Attributor.h.
|
inline |
Definition at line 5934 of file Attributor.h.
|
inline |
Definition at line 5940 of file Attributor.h.
References llvm::AAPointerInfo::AK_MAY, llvm::AAPointerInfo::AK_MUST, Content, and verify().
|
inline |
Definition at line 5950 of file Attributor.h.
|
inline |
Add a range accessed by this Access.
If there are multiple ranges, then this is a "may access".
Definition at line 6066 of file Attributor.h.
References llvm::AAPointerInfo::AK_MAY, llvm::AAPointerInfo::AK_MUST, hasUniqueRange(), llvm::AAPointerInfo::RangeList::insert(), llvm::Offset, and Size.
|
inline |
Definition at line 6077 of file Attributor.h.
References llvm::AAPointerInfo::RangeList::begin().
|
inline |
Definition at line 6078 of file Attributor.h.
References llvm::AAPointerInfo::RangeList::end().
|
inline |
Return the written value which can be llvm::null
if it is not yet determined.
Definition at line 6058 of file Attributor.h.
Referenced by getPotentialCopiesOfMemoryValue(), and llvm::operator<<().
|
inline |
Return the access kind.
Definition at line 6000 of file Attributor.h.
Referenced by llvm::operator<<().
|
inline |
Return the instruction that causes the access with respect to the local scope of the associated attribute.
Definition at line 6030 of file Attributor.h.
Referenced by llvm::operator<<().
Definition at line 6074 of file Attributor.h.
|
inline |
Return the actual instruction that causes the access.
Definition at line 6033 of file Attributor.h.
Referenced by getPotentialCopiesOfMemoryValue(), and llvm::operator<<().
|
inline |
Return the type associated with the access, if known.
Definition at line 6047 of file Attributor.h.
|
inline |
Definition at line 6061 of file Attributor.h.
References llvm::AAPointerInfo::RangeList::getUnique().
|
inline |
Return the value writen, if any.
Definition at line 6050 of file Attributor.h.
References assert(), and isWrittenValueYetUndetermined().
Referenced by getPotentialCopiesOfMemoryValue().
|
inline |
Definition at line 6060 of file Attributor.h.
References llvm::AAPointerInfo::RangeList::isUnique().
Referenced by addRange().
|
inline |
Return true if this is an assumption access.
Definition at line 6012 of file Attributor.h.
References llvm::AAPointerInfo::AK_ASSUMPTION.
Referenced by isWriteOrAssumption(), and verify().
|
inline |
Definition at line 6021 of file Attributor.h.
References llvm::AAPointerInfo::AK_MAY, assert(), and llvm::AAPointerInfo::RangeList::size().
Referenced by verify().
|
inline |
Definition at line 6014 of file Attributor.h.
References llvm::AAPointerInfo::AK_MUST, assert(), and llvm::AAPointerInfo::RangeList::size().
Referenced by verify().
|
inline |
Return true if this is a read access.
Definition at line 6003 of file Attributor.h.
References llvm::AAPointerInfo::AK_R.
Referenced by getPotentialCopiesOfMemoryValue().
|
inline |
Return true if this is a write access.
Definition at line 6006 of file Attributor.h.
References llvm::AAPointerInfo::AK_W.
Referenced by isWriteOrAssumption(), and verify().
|
inline |
Return true if this is a write access.
Definition at line 6009 of file Attributor.h.
References isAssumption(), and isWrite().
Referenced by getPotentialCopiesOfMemoryValue().
|
inline |
Return true if the value written cannot be determined at all.
Definition at line 6039 of file Attributor.h.
Referenced by getPotentialCopiesOfMemoryValue().
|
inline |
Return true if the value written is not known yet.
Definition at line 6036 of file Attributor.h.
Referenced by getPotentialCopiesOfMemoryValue(), and getWrittenValue().
Definition at line 5964 of file Attributor.h.
Definition at line 5966 of file Attributor.h.
References llvm::AAPointerInfo::AK_MAY, llvm::AAPointerInfo::AK_MUST, assert(), llvm::AA::combineOptionalValuesInAAValueLatice(), llvm::AAPointerInfo::RangeList::merge(), llvm::AAPointerInfo::RangeList::size(), and verify().
Definition at line 5960 of file Attributor.h.
|
inline |
Set the value written to nullptr, i.e., unknown.
Definition at line 6044 of file Attributor.h.
|
inline |
Definition at line 5990 of file Attributor.h.
References assert(), isAssumption(), isMayAccess(), isMustAccess(), isWrite(), and llvm::AAPointerInfo::RangeList::size().
Referenced by Access(), and operator&=().