ONE - On-device Neural Engine
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
onert::compiler::pass::OperandPass Class Referenceabstract

#include <OperandPass.h>

Collaboration diagram for onert::compiler::pass::OperandPass:

Public Member Functions

virtual ~OperandPass ()=default
 
std::string id () override=0
 
void run () override final
 
virtual void callback (const ir::OperandIndex &i, ir::Operand &o)=0
 
 Pass (ir::Graph &graph)
 
- Public Member Functions inherited from onert::compiler::pass::Pass
 Pass (ir::Graph &graph)
 
virtual ~Pass ()=default
 
- Public Member Functions inherited from onert::compiler::pass::IPass
virtual ~IPass ()=default
 

Additional Inherited Members

- Protected Attributes inherited from onert::compiler::pass::Pass
ir::Graph_graph
 

Detailed Description

Definition at line 31 of file OperandPass.h.

Constructor & Destructor Documentation

◆ ~OperandPass()

virtual onert::compiler::pass::OperandPass::~OperandPass ( )
virtualdefault

Member Function Documentation

◆ callback()

virtual void onert::compiler::pass::OperandPass::callback ( const ir::OperandIndex i,
ir::Operand o 
)
pure virtual

◆ id()

std::string onert::compiler::pass::OperandPass::id ( )
overridepure virtual

◆ Pass()

onert::compiler::pass::Pass::Pass ( ir::Graph graph)
inline

Definition at line 35 of file Pass.h.

◆ run()

void onert::compiler::pass::OperandPass::run ( )
finaloverridevirtual

Implements onert::compiler::pass::Pass.

Definition at line 24 of file OperandPass.cc.

25{
27 [&](const ir::OperandIndex &index, ir::Operand &object) { callback(index, object); });
28}
virtual void callback(const ir::OperandIndex &i, ir::Operand &o)=0
const Operands & operands() const override
Definition Graph.h:110
void iterate(const std::function< void(const Index &, const Object &)> &fn) const
Iterate over the container with given function.
::onert::util::Index< uint32_t, OperandIndexTag > OperandIndex
Definition Index.h:33

References onert::compiler::pass::Pass::_graph, callback(), onert::util::ObjectManager< Index, Object >::iterate(), and onert::ir::Graph::operands().


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