struct AAPointerInfo::Access
Declaration
struct AAPointerInfo::Access { /* full declaration omitted */ };
Description
An access description.
Declared at: llvm/include/llvm/Transforms/IPO/Attributor.h:4934
Member Variables
- private llvm::Instruction* LocalI
- The instruction responsible for the access with respect to the local scope of the associated attribute.
- private llvm::Instruction* RemoteI
- The instruction responsible for the access.
- private Optional<llvm::Value*> Content
- The value written, if any. `llvm::none` means "not known yet", `nullptr` cannot be determined.
- private llvm::AAPointerInfo::AccessKind Kind
- The access kind, e.g., READ, as bitset (could be more than one).
- private llvm::Type* Ty
- The type of the content, thus the type read/written, can be null if not available.
Method Overview
- public Access(llvm::Instruction * LocalI, llvm::Instruction * RemoteI, Optional<llvm::Value *> Content, llvm::AAPointerInfo::AccessKind Kind, llvm::Type * Ty)
- public Access(const llvm::AAPointerInfo::Access & Other)
- public Access(const llvm::AAPointerInfo::Access && Other)
- public Access(llvm::Instruction * I, Optional<llvm::Value *> Content, llvm::AAPointerInfo::AccessKind Kind, llvm::Type * Ty)
- public Optional<llvm::Value *> getContent() const
- public llvm::AAPointerInfo::AccessKind getKind() const
- public llvm::Instruction * getLocalInst() const
- public llvm::Instruction * getRemoteInst() const
- public llvm::Type * getType() const
- public llvm::Value * getWrittenValue() const
- public bool isMayAccess() const
- public bool isMustAccess() const
- public bool isRead() const
- public bool isWrite() const
- public bool isWrittenValueUnknown() const
- public bool isWrittenValueYetUndetermined() const
- public void verify()
Methods
¶Access(llvm::Instruction* LocalI,
llvm::Instruction* RemoteI,
Optional<llvm::Value*> Content,
llvm::AAPointerInfo::AccessKind Kind,
llvm::Type* Ty)
Access(llvm::Instruction* LocalI,
llvm::Instruction* RemoteI,
Optional<llvm::Value*> Content,
llvm::AAPointerInfo::AccessKind Kind,
llvm::Type* Ty)
Declared at: llvm/include/llvm/Transforms/IPO/Attributor.h:4939
Parameters
- llvm::Instruction* LocalI
- llvm::Instruction* RemoteI
- Optional<llvm::Value*> Content
- llvm::AAPointerInfo::AccessKind Kind
- llvm::Type* Ty
¶Access(const llvm::AAPointerInfo::Access& Other)
Access(const llvm::AAPointerInfo::Access& Other)
Declared at: llvm/include/llvm/Transforms/IPO/Attributor.h:4945
Parameters
- const llvm::AAPointerInfo::Access& Other
¶Access(const llvm::AAPointerInfo::Access&& Other)
Access(const llvm::AAPointerInfo::Access&& Other)
Declared at: llvm/include/llvm/Transforms/IPO/Attributor.h:4946
Parameters
- const llvm::AAPointerInfo::Access&& Other
¶Access(llvm::Instruction* I,
Optional<llvm::Value*> Content,
llvm::AAPointerInfo::AccessKind Kind,
llvm::Type* Ty)
Access(llvm::Instruction* I,
Optional<llvm::Value*> Content,
llvm::AAPointerInfo::AccessKind Kind,
llvm::Type* Ty)
Declared at: llvm/include/llvm/Transforms/IPO/Attributor.h:4935
Parameters
- llvm::Instruction* I
- Optional<llvm::Value*> Content
- llvm::AAPointerInfo::AccessKind Kind
- llvm::Type* Ty
¶Optional<llvm::Value*> getContent() const
Optional<llvm::Value*> getContent() const
Description
Return the written value which can be `llvm::null` if it is not yet determined.
Declared at: llvm/include/llvm/Transforms/IPO/Attributor.h:5007
¶llvm::AAPointerInfo::AccessKind getKind() const
llvm::AAPointerInfo::AccessKind getKind() const
Description
Return the access kind.
Declared at: llvm/include/llvm/Transforms/IPO/Attributor.h:4971
¶llvm::Instruction* getLocalInst() const
llvm::Instruction* getLocalInst() const
Description
Return the instruction that causes the access with respect to the local scope of the associated attribute.
Declared at: llvm/include/llvm/Transforms/IPO/Attributor.h:4984
¶llvm::Instruction* getRemoteInst() const
llvm::Instruction* getRemoteInst() const
Description
Return the actual instruction that causes the access.
Declared at: llvm/include/llvm/Transforms/IPO/Attributor.h:4987
¶llvm::Type* getType() const
llvm::Type* getType() const
Description
Return the type associated with the access, if known.
Declared at: llvm/include/llvm/Transforms/IPO/Attributor.h:4998
¶llvm::Value* getWrittenValue() const
llvm::Value* getWrittenValue() const
Description
Return the value writen, if any. As long as isWrittenValueYetUndetermined return true this function shall not be called.
Declared at: llvm/include/llvm/Transforms/IPO/Attributor.h:5003
¶bool isMayAccess() const
bool isMayAccess() const
Declared at: llvm/include/llvm/Transforms/IPO/Attributor.h:4980
¶bool isMustAccess() const
bool isMustAccess() const
Declared at: llvm/include/llvm/Transforms/IPO/Attributor.h:4979
¶bool isRead() const
bool isRead() const
Description
Return true if this is a read access.
Declared at: llvm/include/llvm/Transforms/IPO/Attributor.h:4974
¶bool isWrite() const
bool isWrite() const
Description
Return true if this is a write access.
Declared at: llvm/include/llvm/Transforms/IPO/Attributor.h:4977
¶bool isWrittenValueUnknown() const
bool isWrittenValueUnknown() const
Description
Return true if the value written cannot be determined at all.
Declared at: llvm/include/llvm/Transforms/IPO/Attributor.h:4993
¶bool isWrittenValueYetUndetermined() const
bool isWrittenValueYetUndetermined() const
Description
Return true if the value written is not known yet.
Declared at: llvm/include/llvm/Transforms/IPO/Attributor.h:4990
¶void verify()
void verify()
Declared at: llvm/include/llvm/Transforms/IPO/Attributor.h:4965