MLIR
20.0.0git
|
A possibly unresolved cache entry. More...
#include "mlir/Support/CyclicReplacerCache.h"
Public Member Functions | |
~CacheEntry () | |
bool | wasRepeated () const |
Check whether this node was repeated during recursive replacements. More... | |
void | resolve (OutT result) |
Resolve an unresolved cache entry by providing the result to be stored in the cache. More... | |
const std::optional< OutT > & | get () const |
Get the resolved result if one exists. More... | |
Friends | |
class | CyclicReplacerCache |
A possibly unresolved cache entry.
If unresolved, the entry must be resolved before it goes out of scope.
Definition at line 65 of file CyclicReplacerCache.h.
|
inline |
Definition at line 67 of file CyclicReplacerCache.h.
|
inline |
Get the resolved result if one exists.
Definition at line 90 of file CyclicReplacerCache.h.
|
inline |
Resolve an unresolved cache entry by providing the result to be stored in the cache.
Definition at line 83 of file CyclicReplacerCache.h.
|
inline |
Check whether this node was repeated during recursive replacements.
This only makes sense to be called after all recursive replacements are completed and the current element has resurfaced to the top of the replacement stack.
Definition at line 73 of file CyclicReplacerCache.h.
|
friend |
Definition at line 93 of file CyclicReplacerCache.h.