LLVM 20.0.0git
Public Member Functions | Public Attributes | List of all members
llvm::SizeOffsetType< T, C > Struct Template Reference

SizeOffsetType - A base template class for the object size visitors. More...

#include "llvm/Analysis/MemoryBuiltins.h"

Inheritance diagram for llvm::SizeOffsetType< T, C >:
Inheritance graph
[legend]

Public Member Functions

 SizeOffsetType ()=default
 
 SizeOffsetType (T Size, T Offset)
 
bool knownSize () const
 
bool knownOffset () const
 
bool anyKnown () const
 
bool bothKnown () const
 
bool operator== (const SizeOffsetType< T, C > &RHS) const
 
bool operator!= (const SizeOffsetType< T, C > &RHS) const
 

Public Attributes

T Size
 
T Offset
 

Detailed Description

template<typename T, class C>
struct llvm::SizeOffsetType< T, C >

SizeOffsetType - A base template class for the object size visitors.

Used here as a self-documenting way to handle the values rather than using a std::pair.

Definition at line 192 of file MemoryBuiltins.h.

Constructor & Destructor Documentation

◆ SizeOffsetType() [1/2]

template<typename T , class C >
llvm::SizeOffsetType< T, C >::SizeOffsetType ( )
default

◆ SizeOffsetType() [2/2]

template<typename T , class C >
llvm::SizeOffsetType< T, C >::SizeOffsetType ( T  Size,
T  Offset 
)
inline

Definition at line 198 of file MemoryBuiltins.h.

Member Function Documentation

◆ anyKnown()

template<typename T , class C >
bool llvm::SizeOffsetType< T, C >::anyKnown ( ) const
inline

◆ bothKnown()

template<typename T , class C >
bool llvm::SizeOffsetType< T, C >::bothKnown ( ) const
inline

◆ knownOffset()

template<typename T , class C >
bool llvm::SizeOffsetType< T, C >::knownOffset ( ) const
inline

◆ knownSize()

template<typename T , class C >
bool llvm::SizeOffsetType< T, C >::knownSize ( ) const
inline

◆ operator!=()

template<typename T , class C >
bool llvm::SizeOffsetType< T, C >::operator!= ( const SizeOffsetType< T, C > &  RHS) const
inline

Definition at line 209 of file MemoryBuiltins.h.

References RHS.

◆ operator==()

template<typename T , class C >
bool llvm::SizeOffsetType< T, C >::operator== ( const SizeOffsetType< T, C > &  RHS) const
inline

Member Data Documentation

◆ Offset

template<typename T , class C >
T llvm::SizeOffsetType< T, C >::Offset

◆ Size

template<typename T , class C >
T llvm::SizeOffsetType< T, C >::Size

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