LLVM  14.0.0git
Public Member Functions | Static Public Member Functions | List of all members
llvm::detail::CheckedInt Struct Reference

#include "llvm/ADT/Sequence.h"

Public Member Functions

bool operator== (const CheckedInt &O) const
 
bool operator!= (const CheckedInt &O) const
 
CheckedInt operator+ (intmax_t Offset) const
 
intmax_t operator- (CheckedInt Other) const
 
template<typename Integral , typename std::enable_if_t< std::is_integral< Integral >::value, bool > = 0>
Integral to () const
 
template<typename Enum , typename std::enable_if_t< std::is_enum< Enum >::value, bool > = 0>
Enum to () const
 

Static Public Member Functions

template<typename Integral , typename std::enable_if_t< std::is_integral< Integral >::value, bool > = 0>
static CheckedInt from (Integral FromValue)
 
template<typename Enum , typename std::enable_if_t< std::is_enum< Enum >::value, bool > = 0>
static CheckedInt from (Enum FromValue)
 

Detailed Description

Definition at line 43 of file Sequence.h.

Member Function Documentation

◆ from() [1/2]

template<typename Enum , typename std::enable_if_t< std::is_enum< Enum >::value, bool > = 0>
static CheckedInt llvm::detail::CheckedInt::from ( Enum  FromValue)
inlinestatic

Definition at line 58 of file Sequence.h.

References type.

◆ from() [2/2]

template<typename Integral , typename std::enable_if_t< std::is_integral< Integral >::value, bool > = 0>
static CheckedInt llvm::detail::CheckedInt::from ( Integral  FromValue)
inlinestatic

Definition at line 47 of file Sequence.h.

◆ operator!=()

bool llvm::detail::CheckedInt::operator!= ( const CheckedInt O) const
inline

Definition at line 65 of file Sequence.h.

References llvm::RISCVFenceField::O.

◆ operator+()

CheckedInt llvm::detail::CheckedInt::operator+ ( intmax_t  Offset) const
inline

Definition at line 67 of file Sequence.h.

References llvm::AddOverflow(), and Offset.

◆ operator-()

intmax_t llvm::detail::CheckedInt::operator- ( CheckedInt  Other) const
inline

Definition at line 74 of file Sequence.h.

References Other, and llvm::SubOverflow().

◆ operator==()

bool llvm::detail::CheckedInt::operator== ( const CheckedInt O) const
inline

Definition at line 64 of file Sequence.h.

References llvm::RISCVFenceField::O.

◆ to() [1/2]

template<typename Integral , typename std::enable_if_t< std::is_integral< Integral >::value, bool > = 0>
Integral llvm::detail::CheckedInt::to ( ) const
inline

◆ to() [2/2]

template<typename Enum , typename std::enable_if_t< std::is_enum< Enum >::value, bool > = 0>
Enum llvm::detail::CheckedInt::to ( ) const
inline

Definition at line 94 of file Sequence.h.

References type.


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