Halide
Halide::VarOrRVar Struct Reference

A class that can represent Vars or RVars. More...

#include <Func.h>

Public Member Functions

 VarOrRVar (const std::string &n, bool r)
 
 VarOrRVar (const Var &v)
 
 VarOrRVar (const RVar &r)
 
 VarOrRVar (const RDom &r)
 
const std::string & name () const
 

Public Attributes

Var var
 
RVar rvar
 
bool is_rvar
 

Detailed Description

A class that can represent Vars or RVars.

Used for reorder calls which can accept a mix of either.

Definition at line 29 of file Func.h.

Constructor & Destructor Documentation

◆ VarOrRVar() [1/4]

Halide::VarOrRVar::VarOrRVar ( const std::string &  n,
bool  r 
)
inline

Definition at line 30 of file Func.h.

Referenced by Halide::Stage::get_schedule(), and Halide::Func::operator()().

◆ VarOrRVar() [2/4]

Halide::VarOrRVar::VarOrRVar ( const Var v)
inline

Definition at line 31 of file Func.h.

◆ VarOrRVar() [3/4]

Halide::VarOrRVar::VarOrRVar ( const RVar r)
inline

Definition at line 32 of file Func.h.

◆ VarOrRVar() [4/4]

Halide::VarOrRVar::VarOrRVar ( const RDom r)
inline

Definition at line 33 of file Func.h.

Member Function Documentation

◆ name()

const std::string& Halide::VarOrRVar::name ( ) const
inline

Member Data Documentation

◆ var

Var Halide::VarOrRVar::var

◆ rvar

RVar Halide::VarOrRVar::rvar

Definition at line 41 of file Func.h.

Referenced by name().

◆ is_rvar

bool Halide::VarOrRVar::is_rvar

Definition at line 42 of file Func.h.

Referenced by name().


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