ONE - On-device Neural Engine
Loading...
Searching...
No Matches
loco::CanonicalNodeDef< Code, Mixins > Struct Template Reference

#include <CanonicalNodeDecl.h>

Collaboration diagram for loco::CanonicalNodeDef< Code, Mixins >:

Public Member Functions

virtual ~CanonicalNodeDef ()=default
 
uint32_t opnum (void) const final
 
CanonicalOpcode opcode (void) const final
 
- Public Member Functions inherited from loco::CanonicalNode
virtual ~CanonicalNode ()=default
 
const Dialectdialect (void) const final
 Return "Dialect" identifier that this node belongs to.
 
template<typename T >
accept (CanonicalNodeVisitorBase< T > *) const
 
template<typename T >
accept (CanonicalNodeMutableVisitorBase< T > *)
 
- 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

template<CanonicalOpcode Code, template< typename T > class... Mixins>
struct loco::CanonicalNodeDef< Code, Mixins >

Definition at line 40 of file CanonicalNodeDecl.h.

Constructor & Destructor Documentation

◆ ~CanonicalNodeDef()

template<CanonicalOpcode Code, template< typename T > class... Mixins>
virtual loco::CanonicalNodeDef< Code, Mixins >::~CanonicalNodeDef ( )
virtualdefault

Member Function Documentation

◆ opcode()

template<CanonicalOpcode Code, template< typename T > class... Mixins>
CanonicalOpcode loco::CanonicalNodeDef< Code, Mixins >::opcode ( void  ) const
inlinefinalvirtual

Implements loco::CanonicalNode.

Definition at line 45 of file CanonicalNodeDecl.h.

45{ return Code; }

◆ opnum()

template<CanonicalOpcode Code, template< typename T > class... Mixins>
uint32_t loco::CanonicalNodeDef< Code, Mixins >::opnum ( void  ) const
inlinefinalvirtual

Implements loco::Node.

Definition at line 44 of file CanonicalNodeDecl.h.

44{ return static_cast<uint32_t>(Code); }

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