ONE - On-device Neural Engine
Loading...
Searching...
No Matches
locoex::COpNodeSummaryBuilder Class Referencefinal

#include <COpFormattedGraph.h>

Collaboration diagram for locoex::COpNodeSummaryBuilder:

Public Member Functions

 COpNodeSummaryBuilder (const locop::SymbolTable *tbl)
 
bool build (const loco::Node *node, locop::NodeSummary &s) const final
 
- Public Member Functions inherited from locop::NodeSummaryBuilder
virtual ~NodeSummaryBuilder ()=default
 

Detailed Description

Definition at line 27 of file COpFormattedGraph.h.

Constructor & Destructor Documentation

◆ COpNodeSummaryBuilder()

locoex::COpNodeSummaryBuilder::COpNodeSummaryBuilder ( const locop::SymbolTable tbl)
inline

Definition at line 30 of file COpFormattedGraph.h.

30 : _tbl{tbl}
31 {
32 // DO NOTHING
33 }

Member Function Documentation

◆ build()

bool locoex::COpNodeSummaryBuilder::build ( const loco::Node node,
locop::NodeSummary s 
) const
finalvirtual

Implements locop::NodeSummaryBuilder.

Definition at line 31 of file COpFormattedGraph.cpp.

32{
33 if (node->dialect() != locoex::COpDialect::get())
34 return false;
35
36 if (auto call_node = dynamic_cast<const locoex::COpCall *>(node))
37 {
38 return summary(call_node, s);
39 }
40
41 return false;
42}
virtual const Dialect * dialect(void) const =0
Return "Dialect" identifier that this node belongs to.
Class to calls custom operation.
Definition COpCall.h:38
static loco::Dialect * get(void)

References loco::Node::dialect(), and locoex::COpDialect::get().


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