Intel SPMD Program Compiler  1.11.0
Public Types | Public Member Functions | Public Attributes | List of all members
Variability Struct Reference

#include <type.h>

Collaboration diagram for Variability:
Collaboration graph
[legend]

Public Types

enum  VarType { Unbound, Uniform, Varying, SOA }
 

Public Member Functions

 Variability (VarType t=Unbound, int w=0)
 
bool operator== (const Variability &v) const
 
bool operator!= (const Variability &v) const
 
bool operator== (const VarType &t) const
 
bool operator!= (const VarType &t) const
 
std::string GetString () const
 
std::string MangleString () const
 

Public Attributes

VarType type
 
int soaWidth
 

Detailed Description

Types may have uniform, varying, SOA, or unbound variability; this struct is used by Type implementations to record their variability.

Definition at line 58 of file type.h.

Member Enumeration Documentation

◆ VarType

Enumerator
Unbound 
Uniform 
Varying 
SOA 

Definition at line 59 of file type.h.

Constructor & Destructor Documentation

◆ Variability()

Variability::Variability ( VarType  t = Unbound,
int  w = 0 
)
inline

Definition at line 61 of file type.h.

Member Function Documentation

◆ GetString()

std::string Variability::GetString ( ) const

◆ MangleString()

std::string Variability::MangleString ( ) const

Definition at line 147 of file type.cpp.

References FATAL, SOA, soaWidth, type, Unbound, Uniform, and Varying.

Referenced by lMangleStruct(), AtomicType::Mangle(), EnumType::Mangle(), and PointerType::Mangle().

◆ operator!=() [1/2]

bool Variability::operator!= ( const Variability v) const
inline

Definition at line 64 of file type.h.

References soaWidth, and type.

◆ operator!=() [2/2]

bool Variability::operator!= ( const VarType t) const
inline

Definition at line 67 of file type.h.

References type.

◆ operator==() [1/2]

bool Variability::operator== ( const Variability v) const
inline

Definition at line 63 of file type.h.

References soaWidth, and type.

◆ operator==() [2/2]

bool Variability::operator== ( const VarType t) const
inline

Definition at line 66 of file type.h.

References type.

Member Data Documentation

◆ soaWidth

int Variability::soaWidth

◆ type

VarType Variability::type

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