LLVM  14.0.0git
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
llvm::AA::PointerInfo::OffsetAndSize Struct Reference

Helper to represent an access offset and size, with logic to deal with uncertainty and check for overlapping accesses. More...

Inheritance diagram for llvm::AA::PointerInfo::OffsetAndSize:
Inheritance graph
Collaboration diagram for llvm::AA::PointerInfo::OffsetAndSize:
Collaboration graph

Public Types

using BaseTy = std::pair< int64_t, int64_t >

Public Member Functions

 OffsetAndSize (int64_t Offset, int64_t Size)
 OffsetAndSize (const BaseTy &P)
int64_t getOffset () const
int64_t getSize () const
bool offsetOrSizeAreUnknown () const
 Return true if offset or size are unknown. More...
bool mayOverlap (const OffsetAndSize &OAS) const
 Return true if this offset and size pair might describe an address that overlaps with OAS. More...

Static Public Member Functions

static OffsetAndSize getUnknown ()

Static Public Attributes

static constexpr int64_t Unknown = 1 << 31
 Constant used to represent unknown offset or sizes. More...

Detailed Description

Helper to represent an access offset and size, with logic to deal with uncertainty and check for overlapping accesses.

Definition at line 805 of file AttributorAttributes.cpp.

Member Typedef Documentation

◆ BaseTy

using llvm::AA::PointerInfo::OffsetAndSize::BaseTy = std::pair<int64_t, int64_t>

Definition at line 806 of file AttributorAttributes.cpp.

Constructor & Destructor Documentation

◆ OffsetAndSize() [1/2]

llvm::AA::PointerInfo::OffsetAndSize::OffsetAndSize ( int64_t  Offset,
int64_t  Size 

◆ OffsetAndSize() [2/2]

llvm::AA::PointerInfo::OffsetAndSize::OffsetAndSize ( const BaseTy P)

Definition at line 808 of file AttributorAttributes.cpp.

Member Function Documentation

◆ getOffset()

int64_t llvm::AA::PointerInfo::OffsetAndSize::getOffset ( ) const

◆ getSize()

int64_t llvm::AA::PointerInfo::OffsetAndSize::getSize ( ) const

◆ getUnknown()

static OffsetAndSize llvm::AA::PointerInfo::OffsetAndSize::getUnknown ( )

◆ mayOverlap()

bool llvm::AA::PointerInfo::OffsetAndSize::mayOverlap ( const OffsetAndSize OAS) const

◆ offsetOrSizeAreUnknown()

bool llvm::AA::PointerInfo::OffsetAndSize::offsetOrSizeAreUnknown ( ) const

Member Data Documentation

◆ Unknown

constexpr int64_t llvm::AA::PointerInfo::OffsetAndSize::Unknown = 1 << 31

Constant used to represent unknown offset or sizes.

Definition at line 832 of file AttributorAttributes.cpp.

Referenced by llvm::AA::PointerInfo::OffsetAndSize::getUnknown(), and llvm::AA::PointerInfo::OffsetAndSize::offsetOrSizeAreUnknown().

The documentation for this struct was generated from the following file: