ONE - On-device Neural Engine
Loading...
Searching...
No Matches
onert_test::ir::SimpleMock Class Reference

#include <MockNode.h>

Collaboration diagram for onert_test::ir::SimpleMock:

Public Member Functions

 SimpleMock (const onert::ir::OperandIndexSequence &inputs, const onert::ir::OperandIndexSequence &outputs)
 
void accept (onert::ir::OperationVisitor &) const override
 
onert::ir::OpCode opcode () const final
 
- Public Member Functions inherited from onert::ir::Operation
 Operation (OperandConstraint input_constr, const OperandIndexSequence &inputs, const OperandIndexSequence &outputs, OperandConstraint output_constr=OperandConstraint::createAny())
 
 Operation (OperandConstraint input_constr, OperandConstraint output_constr=OperandConstraint::createAny())
 
 Operation (const Operation &)=default
 
 Operation (Operation &&)=default
 
Operationoperator= (const Operation &)=default
 
Operationoperator= (Operation &&)=default
 
virtual ~Operation ()
 
void replaceInputs (const OperandIndex &from, const OperandIndex &to) override
 
void replaceOutputs (const OperandIndex &from, const OperandIndex &to) override
 
OperandIndexSequencegetInputs ()
 
const OperandIndexSequencegetInputs () const override
 
const OperandIndexSequencegetOutputs () const override
 
void setInputs (const OperandIndexSequence &indexes)
 
void setOutputs (const OperandIndexSequence &indexes)
 
- Public Member Functions inherited from onert::ir::IOperation
virtual ~IOperation ()=default
 
virtual std::string name () const
 

Detailed Description

Definition at line 28 of file MockNode.h.

Constructor & Destructor Documentation

◆ SimpleMock()

onert_test::ir::SimpleMock::SimpleMock ( const onert::ir::OperandIndexSequence inputs,
const onert::ir::OperandIndexSequence outputs 
)
inline

Definition at line 31 of file MockNode.h.

34 {
35 setInputs(inputs);
36 setOutputs(outputs);
37 }
static OperandConstraint createAny()
void setInputs(const OperandIndexSequence &indexes)
Definition Operation.cc:41
void setOutputs(const OperandIndexSequence &indexes)
Definition Operation.cc:48

References onert::ir::Operation::setInputs(), and onert::ir::Operation::setOutputs().

Member Function Documentation

◆ accept()

void onert_test::ir::SimpleMock::accept ( onert::ir::OperationVisitor ) const
inlineoverridevirtual

Implements onert::ir::IOperation.

Definition at line 40 of file MockNode.h.

40{}

◆ opcode()

onert::ir::OpCode onert_test::ir::SimpleMock::opcode ( ) const
inlinefinalvirtual

Implements onert::ir::IOperation.

Definition at line 41 of file MockNode.h.

References onert::ir::Invalid.


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