Tensor Comprehensions
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
lang::TypeInfo Struct Reference

#include <sema.h>

Public Types

enum  Code { Int, UInt, Float }
 

Public Member Functions

 TypeInfo (Code code_, uint8_t bits_)
 
 TypeInfo (TreeRef scalar_type)
 
int toScalarToken () const
 
Code code () const
 
uint8_t bits () const
 
bool is_float () const
 
bool is_uint () const
 

Private Attributes

Code code_
 
uint8_t bits_
 

Member Enumeration Documentation

Enumerator
Int 
UInt 
Float 

Constructor & Destructor Documentation

lang::TypeInfo::TypeInfo ( Code  code_,
uint8_t  bits_ 
)
inline
lang::TypeInfo::TypeInfo ( TreeRef  scalar_type)
inline

Member Function Documentation

uint8_t lang::TypeInfo::bits ( ) const
inline
Code lang::TypeInfo::code ( ) const
inline
bool lang::TypeInfo::is_float ( ) const
inline
bool lang::TypeInfo::is_uint ( ) const
inline
int lang::TypeInfo::toScalarToken ( ) const
inline

Member Data Documentation

uint8_t lang::TypeInfo::bits_
private
Code lang::TypeInfo::code_
private

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