Halide 19.0.0
Halide compiler and libraries
Loading...
Searching...
No Matches
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 21 of file RegionCosts.h.

Constructor & Destructor Documentation

◆ Cost() [1/3]

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

Definition at line 27 of file RegionCosts.h.

◆ Cost() [2/3]

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

Definition at line 30 of file RegionCosts.h.

◆ Cost() [3/3]

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

Member Function Documentation

◆ defined()

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

Definition at line 35 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 23 of file RegionCosts.h.

Referenced by defined().

◆ memory

Expr Halide::Internal::Cost::memory

Definition at line 25 of file RegionCosts.h.

Referenced by defined().


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