MLIR  20.0.0git
Public Types | Public Member Functions | List of all members
mlir::CachedCyclicReplacer< InT, OutT > Class Template Reference

A helper class for cases where the input/output types of the replacer function is identical to the types stored in the cache. More...

#include "mlir/Support/CyclicReplacerCache.h"

Public Types

using ReplacerFn = std::function< OutT(InT)>
 
using CycleBreakerFn = typename CyclicReplacerCache< InT, OutT >::CycleBreakerFn
 

Public Member Functions

 CachedCyclicReplacer ()=delete
 
 CachedCyclicReplacer (ReplacerFn replacer, CycleBreakerFn cycleBreaker)
 
OutT operator() (InT element)
 

Detailed Description

template<typename InT, typename OutT>
class mlir::CachedCyclicReplacer< InT, OutT >

A helper class for cases where the input/output types of the replacer function is identical to the types stored in the cache.

This class wraps the user-provided replacer function, and can be used in place of the user function.

Definition at line 255 of file CyclicReplacerCache.h.

Member Typedef Documentation

◆ CycleBreakerFn

template<typename InT , typename OutT >
using mlir::CachedCyclicReplacer< InT, OutT >::CycleBreakerFn = typename CyclicReplacerCache<InT, OutT>::CycleBreakerFn

Definition at line 258 of file CyclicReplacerCache.h.

◆ ReplacerFn

template<typename InT , typename OutT >
using mlir::CachedCyclicReplacer< InT, OutT >::ReplacerFn = std::function<OutT(InT)>

Definition at line 257 of file CyclicReplacerCache.h.

Constructor & Destructor Documentation

◆ CachedCyclicReplacer() [1/2]

template<typename InT , typename OutT >
mlir::CachedCyclicReplacer< InT, OutT >::CachedCyclicReplacer ( )
delete

◆ CachedCyclicReplacer() [2/2]

template<typename InT , typename OutT >
mlir::CachedCyclicReplacer< InT, OutT >::CachedCyclicReplacer ( ReplacerFn  replacer,
CycleBreakerFn  cycleBreaker 
)
inline

Definition at line 262 of file CyclicReplacerCache.h.

Member Function Documentation

◆ operator()()

template<typename InT , typename OutT >
OutT mlir::CachedCyclicReplacer< InT, OutT >::operator() ( InT  element)
inline

Definition at line 265 of file CyclicReplacerCache.h.


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