ONE - On-device Neural Engine
Loading...
Searching...
No Matches
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 38 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 42 of file Pass.h.

◆ run()

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

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

Definition at line 28 of file OperandPass.cc.

29{
31 [&](const ir::OperandIndex &index, ir::Operand &object) { callback(index, object); });
32}
virtual void callback(const ir::OperandIndex &i, ir::Operand &o)=0
const Operands & operands() const override
Definition Graph.h:112
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:35

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

Referenced by package.infer.session::inference().


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