Halide::Internal::Cost Struct Reference

#include <RegionCosts.h>

Public Member Functions

 Cost (int64_t arith, int64_t memory)
 Cost (Expr arith, Expr memory)
 Cost ()=default
bool defined () const
void simplify ()

Public Attributes

Expr arith
Expr memory

Detailed Description

Definition at line 20 of file RegionCosts.h.

Constructor & Destructor Documentation

◆ Cost() [1/3]

Halide::Internal::Cost::Cost ( int64_t  arith,
int64_t  memory 

Definition at line 26 of file RegionCosts.h.

◆ Cost() [2/3]

Halide::Internal::Cost::Cost ( Expr  arith,
Expr  memory 

Definition at line 29 of file RegionCosts.h.

◆ Cost() [3/3]

Halide::Internal::Cost::Cost ( )

Member Function Documentation

◆ defined()

bool Halide::Internal::Cost::defined ( ) const

Definition at line 34 of file RegionCosts.h.

References arith, Halide::Internal::IntrusivePtr< T >::defined(), and memory.

◆ simplify()

void Halide::Internal::Cost::simplify ( )

Member Data Documentation

◆ arith

Expr Halide::Internal::Cost::arith

Definition at line 22 of file RegionCosts.h.

Referenced by defined().

◆ memory

Expr Halide::Internal::Cost::memory

Definition at line 24 of file RegionCosts.h.

Referenced by defined().

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