Halide
Halide::Internal::IRCompareCache Class Reference

Lossily track known equal exprs with a cache. More...

#include <IREquality.h>

Public Member Functions

void insert (const Expr &a, const Expr &b)
 
bool contains (const Expr &a, const Expr &b) const
 
void clear ()
 
 IRCompareCache ()=default
 
 IRCompareCache (int b)
 

Detailed Description

Lossily track known equal exprs with a cache.

On collision, the old pair is evicted. Used below by ExprWithCompareCache.

Definition at line 22 of file IREquality.h.

Constructor & Destructor Documentation

◆ IRCompareCache() [1/2]

Halide::Internal::IRCompareCache::IRCompareCache ( )
default

◆ IRCompareCache() [2/2]

Halide::Internal::IRCompareCache::IRCompareCache ( int  b)
inline

Definition at line 67 of file IREquality.h.

Member Function Documentation

◆ insert()

void Halide::Internal::IRCompareCache::insert ( const Expr a,
const Expr b 
)
inline

Definition at line 46 of file IREquality.h.

◆ contains()

bool Halide::Internal::IRCompareCache::contains ( const Expr a,
const Expr b 
) const
inline

Definition at line 52 of file IREquality.h.

References Halide::Internal::IntrusivePtr< T >::same_as().

◆ clear()

void Halide::Internal::IRCompareCache::clear ( )
inline

Definition at line 59 of file IREquality.h.


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