LLVM  10.0.0svn
Public Member Functions | Static Public Member Functions | Friends | List of all members
llvm::TypeSize Class Reference

#include "llvm/Support/TypeSize.h"

Public Member Functions

constexpr TypeSize (uint64_t MinSize, bool Scalable)
 
TypeSize operator* (unsigned RHS) const
 
TypeSize operator/ (unsigned RHS) const
 
uint64_t getFixedSize () const
 
uint64_t getKnownMinSize () const
 
bool isScalable () const
 
 operator uint64_t () const
 
TypeSize operator* (uint64_t RHS) const
 
TypeSize operator* (int RHS) const
 
TypeSize operator* (int64_t RHS) const
 
TypeSize operator/ (uint64_t RHS) const
 
TypeSize operator/ (int RHS) const
 
TypeSize operator/ (int64_t RHS) const
 

Static Public Member Functions

static constexpr TypeSize Fixed (uint64_t Size)
 
static constexpr TypeSize Scalable (uint64_t MinSize)
 

Friends

bool operator== (const TypeSize &LHS, const TypeSize &RHS)
 
bool operator!= (const TypeSize &LHS, const TypeSize &RHS)
 
bool operator< (const TypeSize &LHS, const TypeSize &RHS)
 
bool operator> (const TypeSize &LHS, const TypeSize &RHS)
 
bool operator<= (const TypeSize &LHS, const TypeSize &RHS)
 
bool operator>= (const TypeSize &LHS, const TypeSize &RHS)
 
TypeSize operator* (const unsigned LHS, const TypeSize &RHS)
 
TypeSize operator* (const uint64_t LHS, const TypeSize &RHS)
 
TypeSize operator* (const int LHS, const TypeSize &RHS)
 
TypeSize operator* (const int64_t LHS, const TypeSize &RHS)
 

Detailed Description

Definition at line 50 of file TypeSize.h.

Constructor & Destructor Documentation

◆ TypeSize()

constexpr llvm::TypeSize::TypeSize ( uint64_t  MinSize,
bool  Scalable 
)
inline

Definition at line 56 of file TypeSize.h.

Member Function Documentation

◆ Fixed()

static constexpr TypeSize llvm::TypeSize::Fixed ( uint64_t  Size)
inlinestatic

◆ getFixedSize()

uint64_t llvm::TypeSize::getFixedSize ( ) const
inline

Definition at line 124 of file TypeSize.h.

References assert().

Referenced by getNoopInput().

◆ getKnownMinSize()

uint64_t llvm::TypeSize::getKnownMinSize ( ) const
inline

◆ isScalable()

bool llvm::TypeSize::isScalable ( ) const
inline

Definition at line 137 of file TypeSize.h.

Referenced by llvm::alignTo(), and llvm::DataLayout::getTypeStoreSize().

◆ operator uint64_t()

llvm::TypeSize::operator uint64_t ( ) const
inline

Definition at line 145 of file TypeSize.h.

◆ operator*() [1/4]

TypeSize llvm::TypeSize::operator* ( unsigned  RHS) const
inline

Definition at line 109 of file TypeSize.h.

◆ operator*() [2/4]

TypeSize llvm::TypeSize::operator* ( uint64_t  RHS) const
inline

Definition at line 151 of file TypeSize.h.

◆ operator*() [3/4]

TypeSize llvm::TypeSize::operator* ( int  RHS) const
inline

Definition at line 155 of file TypeSize.h.

◆ operator*() [4/4]

TypeSize llvm::TypeSize::operator* ( int64_t  RHS) const
inline

Definition at line 159 of file TypeSize.h.

◆ operator/() [1/4]

TypeSize llvm::TypeSize::operator/ ( unsigned  RHS) const
inline

Definition at line 117 of file TypeSize.h.

◆ operator/() [2/4]

TypeSize llvm::TypeSize::operator/ ( uint64_t  RHS) const
inline

Definition at line 175 of file TypeSize.h.

◆ operator/() [3/4]

TypeSize llvm::TypeSize::operator/ ( int  RHS) const
inline

Definition at line 179 of file TypeSize.h.

◆ operator/() [4/4]

TypeSize llvm::TypeSize::operator/ ( int64_t  RHS) const
inline

Definition at line 183 of file TypeSize.h.

◆ Scalable()

static constexpr TypeSize llvm::TypeSize::Scalable ( uint64_t  MinSize)
inlinestatic

Definition at line 63 of file TypeSize.h.

Friends And Related Function Documentation

◆ operator!=

bool operator!= ( const TypeSize LHS,
const TypeSize RHS 
)
friend

Definition at line 75 of file TypeSize.h.

◆ operator* [1/4]

TypeSize operator* ( const unsigned  LHS,
const TypeSize RHS 
)
friend

Definition at line 113 of file TypeSize.h.

◆ operator* [2/4]

TypeSize operator* ( const uint64_t  LHS,
const TypeSize RHS 
)
friend

Definition at line 163 of file TypeSize.h.

◆ operator* [3/4]

TypeSize operator* ( const int  LHS,
const TypeSize RHS 
)
friend

Definition at line 167 of file TypeSize.h.

◆ operator* [4/4]

TypeSize operator* ( const int64_t  LHS,
const TypeSize RHS 
)
friend

Definition at line 171 of file TypeSize.h.

◆ operator<

bool operator< ( const TypeSize LHS,
const TypeSize RHS 
)
friend

Definition at line 88 of file TypeSize.h.

◆ operator<=

bool operator<= ( const TypeSize LHS,
const TypeSize RHS 
)
friend

Definition at line 99 of file TypeSize.h.

◆ operator==

bool operator== ( const TypeSize LHS,
const TypeSize RHS 
)
friend

Definition at line 70 of file TypeSize.h.

◆ operator>

bool operator> ( const TypeSize LHS,
const TypeSize RHS 
)
friend

Definition at line 95 of file TypeSize.h.

◆ operator>=

bool operator>= ( const TypeSize LHS,
const TypeSize RHS 
)
friend

Definition at line 103 of file TypeSize.h.


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