ONE - On-device Neural Engine
Loading...
Searching...
No Matches
CodeIndex Class Reference

A CodeIndex denotes the index of instruction inside the whole module. More...

#include <CodeIndex.h>

Public Member Functions

 CodeIndex ()=default
 
 CodeIndex (const coco::BlockIndex &blk_ind, const coco::InstrIndex &ins_ind)
 
const coco::BlockIndexblock (void) const
 
const coco::InstrIndexinstr (void) const
 

Detailed Description

A CodeIndex denotes the index of instruction inside the whole module.

Definition at line 26 of file CodeIndex.h.

Constructor & Destructor Documentation

◆ CodeIndex() [1/2]

CodeIndex::CodeIndex ( )
default

◆ CodeIndex() [2/2]

CodeIndex::CodeIndex ( const coco::BlockIndex blk_ind,
const coco::InstrIndex ins_ind 
)
inline

Definition at line 32 of file CodeIndex.h.

33 : _blk_ind{blk_ind}, _ins_ind{ins_ind}
34 {
35 }

Member Function Documentation

◆ block()

const coco::BlockIndex & CodeIndex::block ( void  ) const
inline

Definition at line 38 of file CodeIndex.h.

38{ return _blk_ind; }

◆ instr()

const coco::InstrIndex & CodeIndex::instr ( void  ) const
inline

Definition at line 39 of file CodeIndex.h.

39{ return _ins_ind; }

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