ONE - On-device Neural Engine
Loading...
Searching...
No Matches
onert::ir::operation::Custom Class Reference

#include <Custom.h>

Collaboration diagram for onert::ir::operation::Custom:

Data Structures

struct  Userdata
 

Public Member Functions

 Custom (OperandConstraint input_constr, const OperandIndexSequence &inputs, const OperandIndexSequence &outputs, std::string id, const Userdata &userdata)
 
void accept (OperationVisitor &v) const override
 
const std::string & id () const
 
std::string name () const override
 
OpCode opcode () const final
 
const Userdatauserdata () const
 
- 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
 

Detailed Description

Definition at line 30 of file Custom.h.

Constructor & Destructor Documentation

◆ Custom()

onert::ir::operation::Custom::Custom ( OperandConstraint  input_constr,
const OperandIndexSequence inputs,
const OperandIndexSequence outputs,
std::string  id,
const Userdata userdata 
)

Definition at line 30 of file Custom.cc.

32 : Operation{input_constr, inputs, outputs}, _id(std::move(id)), _userdata(userdata)
33{
34}
const Userdata & userdata() const
Definition Custom.cc:38

Member Function Documentation

◆ accept()

void onert::ir::operation::Custom::accept ( OperationVisitor v) const
overridevirtual

Implements onert::ir::IOperation.

Definition at line 28 of file Custom.cc.

28{ v.visit(*this); }

◆ id()

const std::string & onert::ir::operation::Custom::id ( ) const
Returns
unique operation identifier

Definition at line 36 of file Custom.cc.

36{ return _id; }

Referenced by name(), and onert::backend::cpu::KernelGenerator::visit().

◆ name()

std::string onert::ir::operation::Custom::name ( ) const
overridevirtual

Reimplemented from onert::ir::IOperation.

Definition at line 40 of file Custom.cc.

40{ return id(); }
const std::string & id() const
Definition Custom.cc:36

References id().

◆ opcode()

OpCode onert::ir::operation::Custom::opcode ( ) const
inlinefinalvirtual

Implements onert::ir::IOperation.

Definition at line 60 of file Custom.h.

60{ return OpCode::Custom; }

◆ userdata()

const Custom::Userdata & onert::ir::operation::Custom::userdata ( ) const
Returns
user-provided data

Definition at line 38 of file Custom.cc.

38{ return _userdata; }

Referenced by onert::backend::cpu::KernelGenerator::visit().


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