Halide
Param.h File Reference
#include <type_traits>
#include "Argument.h"
#include "ExternFuncArgument.h"
#include "IR.h"

Go to the source code of this file.

Classes

class  Halide::Param< T >
 A scalar parameter to a halide pipeline. More...
 

Namespaces

 Halide
 This file defines the class FunctionDAG, which is our representation of a Halide pipeline, and contains methods to using Halide's bounds tools to query properties of it.
 

Macros

#define HALIDE_HANDLE_TYPE_DISPATCH(CODE, BITS, TYPE)
 

Functions

Expr Halide::user_context_value ()
 Returns an Expr corresponding to the user context passed to the function (if any). More...
 

Detailed Description

Classes for declaring scalar parameters to halide pipelines

Definition in file Param.h.

Macro Definition Documentation

◆ HALIDE_HANDLE_TYPE_DISPATCH

#define HALIDE_HANDLE_TYPE_DISPATCH (   CODE,
  BITS,
  TYPE 
)
Value:
case halide_type_code(CODE, BITS): \
user_assert(Internal::IsRoundtrippable<TYPE>::value(val)) \
<< "The value " << val << " cannot be losslessly converted to type " << type; \
param.set_scalar<TYPE>(Internal::StaticCast<TYPE>::value(val)); \
break;
user_assert
#define user_assert(c)
Definition: Errors.h:15
Halide::LinkageType::Internal
@ Internal
Not visible externally, similar to 'static' linkage in C.