Intel® Implicit SPMD Program Compiler (Intel® ISPC)  1.13.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 53 of file type.h.

Member Enumeration Documentation

◆ VarType

Enumerator
Unbound 
Uniform 
Varying 
SOA 

Definition at line 54 of file type.h.

Constructor & Destructor Documentation

◆ Variability()

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

Definition at line 56 of file type.h.

Member Function Documentation

◆ GetString()

std::string Variability::GetString ( ) const

◆ MangleString()

std::string Variability::MangleString ( ) const

◆ operator!=() [1/2]

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

Definition at line 59 of file type.h.

References soaWidth, and type.

◆ operator!=() [2/2]

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

Definition at line 62 of file type.h.

References GetString(), MangleString(), and type.

◆ operator==() [1/2]

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

Definition at line 58 of file type.h.

References soaWidth, and type.

◆ operator==() [2/2]

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

Definition at line 61 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: