ONE - On-device Neural Engine
Loading...
Searching...
No Matches
locoex::COpNode Struct Reference

#include <COpNode.h>

Collaboration diagram for locoex::COpNode:

Public Member Functions

virtual ~COpNode ()=default
 
const loco::Dialectdialect (void) const final
 Return "Dialect" identifier that this node belongs to.
 
uint32_t opnum (void) const final
 
- Public Member Functions inherited from loco::Node
 Node ()=default
 
 Node (const Node &)=delete
 
 Node (Node &&)=delete
 
virtual ~Node ()
 
Graphgraph (void)
 
const Graphgraph (void) const
 
virtual uint32_t arity (void) const =0
 Return the number of arguments.
 
virtual Nodearg (uint32_t N) const =0
 Access N-th argument node.
 
virtual void drop (void)=0
 Drop all the reference of arguments.
 
- Public Member Functions inherited from loco::AnnotatedItem< NodeAnnotation >
 AnnotatedItem ()=default
 
virtual ~AnnotatedItem ()=default
 
const T * annot (void) const
 Retrieve a stored annotation of type T.
 
void annot (std::unique_ptr< T > &&p)
 Attach or remove a new annotation of type T.
 

Detailed Description

Definition at line 26 of file COpNode.h.

Constructor & Destructor Documentation

◆ ~COpNode()

virtual locoex::COpNode::~COpNode ( )
virtualdefault

Member Function Documentation

◆ dialect()

const loco::Dialect * locoex::COpNode::dialect ( void  ) const
finalvirtual

Return "Dialect" identifier that this node belongs to.

dialect() SHOULD return a valid pointer.

Implements loco::Node.

Definition at line 23 of file COpNode.cpp.

23{ return COpDialect::get(); }
static loco::Dialect * get(void)

References locoex::COpDialect::get().

◆ opnum()

uint32_t locoex::COpNode::opnum ( void  ) const
inlinefinalvirtual

Implements loco::Node.

Definition at line 32 of file COpNode.h.

32{ return 0; /* opnum for custom op */ }

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