MLIR
20.0.0git
|
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) |
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.
using mlir::CachedCyclicReplacer< InT, OutT >::CycleBreakerFn = typename CyclicReplacerCache<InT, OutT>::CycleBreakerFn |
Definition at line 258 of file CyclicReplacerCache.h.
using mlir::CachedCyclicReplacer< InT, OutT >::ReplacerFn = std::function<OutT(InT)> |
Definition at line 257 of file CyclicReplacerCache.h.
|
delete |
|
inline |
Definition at line 262 of file CyclicReplacerCache.h.
|
inline |
Definition at line 265 of file CyclicReplacerCache.h.