ONE - On-device Neural Engine
Loading...
Searching...
No Matches
luci::pass::ExpressionCache Class Referencefinal

#include <ExpressionCache.h>

Public Types

using Key = Expression
 
using Value = luci::CircleNode *
 

Public Member Functions

Value get (const Key &k) const
 
void put (const Key &k, const Value v)
 

Detailed Description

Definition at line 59 of file ExpressionCache.h.

Member Typedef Documentation

◆ Key

Definition at line 62 of file ExpressionCache.h.

◆ Value

Member Function Documentation

◆ get()

Value luci::pass::ExpressionCache::get ( const Key k) const
inline

Definition at line 71 of file ExpressionCache.h.

72 {
73 auto item = _content.find(k);
74 if (item == _content.end())
75 return nullptr;
76
77 return item->second;
78 }

Referenced by luci::CommonSubExpressionEliminationPass::run().

◆ put()

void luci::pass::ExpressionCache::put ( const Key k,
const Value  v 
)
inline

Definition at line 81 of file ExpressionCache.h.

81{ _content[k] = v; }

Referenced by luci::CommonSubExpressionEliminationPass::run().


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