struct AAPointerInfo::OffsetAndSize
Declaration
struct AAPointerInfo::OffsetAndSize : public std::pair { /* full declaration omitted */ };
Description
Helper to represent an access offset and size, with logic to deal with uncertainty and check for overlapping accesses.
Declared at: llvm/include/llvm/Transforms/IPO/Attributor.h:5040
Inherits from: std::pair
Member Variables
- public static const int64_t Unknown = 1 << 31
- Constant used to represent unknown offset or sizes.
Method Overview
- public OffsetAndSize(int64_t Offset, int64_t Size)
- public OffsetAndSize(const llvm::AAPointerInfo::OffsetAndSize::BaseTy & P)
- public int64_t getOffset() const
- public int64_t getSize() const
- public static llvm::AAPointerInfo::OffsetAndSize getUnknown()
- public bool mayOverlap(const llvm::AAPointerInfo::OffsetAndSize & OAS) const
- public bool offsetOrSizeAreUnknown() const
Methods
¶OffsetAndSize(int64_t Offset, int64_t Size)
OffsetAndSize(int64_t Offset, int64_t Size)
Declared at: llvm/include/llvm/Transforms/IPO/Attributor.h:5042
Parameters
- int64_t Offset
- int64_t Size
¶OffsetAndSize(const llvm::AAPointerInfo::
OffsetAndSize::BaseTy& P)
OffsetAndSize(const llvm::AAPointerInfo::
OffsetAndSize::BaseTy& P)
Declared at: llvm/include/llvm/Transforms/IPO/Attributor.h:5043
Parameters
- const llvm::AAPointerInfo::OffsetAndSize::BaseTy& P
¶int64_t getOffset() const
int64_t getOffset() const
Declared at: llvm/include/llvm/Transforms/IPO/Attributor.h:5044
¶int64_t getSize() const
int64_t getSize() const
Declared at: llvm/include/llvm/Transforms/IPO/Attributor.h:5045
¶static llvm::AAPointerInfo::OffsetAndSize
getUnknown()
static llvm::AAPointerInfo::OffsetAndSize
getUnknown()
Declared at: llvm/include/llvm/Transforms/IPO/Attributor.h:5046
¶bool mayOverlap(
const llvm::AAPointerInfo::OffsetAndSize& OAS)
const
bool mayOverlap(
const llvm::AAPointerInfo::OffsetAndSize& OAS)
const
Description
Return true if this offset and size pair might describe an address that overlaps with \p OAS.
Declared at: llvm/include/llvm/Transforms/IPO/Attributor.h:5058
Parameters
- const llvm::AAPointerInfo::OffsetAndSize& OAS
¶bool offsetOrSizeAreUnknown() const
bool offsetOrSizeAreUnknown() const
Description
Return true if offset or size are unknown.
Declared at: llvm/include/llvm/Transforms/IPO/Attributor.h:5051