ONE - On-device Neural Engine
Loading...
Searching...
No Matches
IRBuilder.h File Reference

coco IR builders. This is code is copied from enco caffe frontend. More...

#include "coco/IR/Module.h"
#include <deque>

Go to the source code of this file.

Data Structures

class  OpBuilder
 
class  InstrBuilder
 

Typedefs

using ModuleHandle = std::unique_ptr< coco::Module >
 

Functions

OpBuilder op_builder (coco::Module *m)
 
OpBuilder op_builder (const std::unique_ptr< coco::Module > &m)
 
InstrBuilder instr_builder (coco::Module *m)
 
InstrBuilder instr_builder (const ModuleHandle &m)
 

Detailed Description

coco IR builders. This is code is copied from enco caffe frontend.

Definition in file IRBuilder.h.

Typedef Documentation

◆ ModuleHandle

using ModuleHandle = std::unique_ptr<coco::Module>

Definition at line 173 of file IRBuilder.h.

Function Documentation

◆ instr_builder() [1/2]

InstrBuilder instr_builder ( coco::Module m)
inline

Definition at line 175 of file IRBuilder.h.

References m.

Referenced by instr_builder().

◆ instr_builder() [2/2]

InstrBuilder instr_builder ( const ModuleHandle m)
inline

Definition at line 176 of file IRBuilder.h.

176{ return instr_builder(m.get()); }
InstrBuilder instr_builder(coco::Module *m)
Definition IRBuilder.h:175

References instr_builder(), and m.

◆ op_builder() [1/2]

OpBuilder op_builder ( coco::Module m)
inline

Definition at line 130 of file IRBuilder.h.

130{ return OpBuilder{m}; }

References m.

Referenced by op_builder().

◆ op_builder() [2/2]

OpBuilder op_builder ( const std::unique_ptr< coco::Module > &  m)
inline

Definition at line 131 of file IRBuilder.h.

131{ return op_builder(m.get()); }
OpBuilder op_builder(coco::Module *m)
Definition IRBuilder.h:130

References m, and op_builder().