tvm
Public Types | Public Member Functions | Public Attributes | List of all members
tvm::runtime::relax_vm::VMFuncInfo Struct Reference

Information entry in executable function table. More...

#include <executable.h>

Collaboration diagram for tvm::runtime::relax_vm::VMFuncInfo:

Public Types

enum class  FuncKind : int { kPackedFunc = 0 , kVMFunc = 1 , kVMTIRFunc = 2 }
 kind of the function. More...
 

Public Member Functions

void Save (dmlc::Stream *writer) const
 
bool Load (dmlc::Stream *reader)
 

Public Attributes

FuncKind kind
 The kind of function. More...
 
std::string name
 The function's name, global symbol. More...
 
Index start_instr = 0
 The start instruction index of the function. More...
 
Index end_instr = 0
 The end instruction index of the function. More...
 
Index num_args = 0
 The number of arguments of the function. More...
 
Index register_file_size = 0
 The register file size of the function. More...
 
std::vector< std::string > param_names
 The function parameter names. More...
 

Detailed Description

Information entry in executable function table.

Contains metadata about the compiled function, as well as the compiled VM instructions.

Member Enumeration Documentation

◆ FuncKind

kind of the function.

Enumerator
kPackedFunc 

system level packed function

kVMFunc 

VM function.

kVMTIRFunc 

VMTIR function.

Member Function Documentation

◆ Load()

bool tvm::runtime::relax_vm::VMFuncInfo::Load ( dmlc::Stream *  reader)

◆ Save()

void tvm::runtime::relax_vm::VMFuncInfo::Save ( dmlc::Stream *  writer) const

Member Data Documentation

◆ end_instr

Index tvm::runtime::relax_vm::VMFuncInfo::end_instr = 0

The end instruction index of the function.

◆ kind

FuncKind tvm::runtime::relax_vm::VMFuncInfo::kind

The kind of function.

◆ name

std::string tvm::runtime::relax_vm::VMFuncInfo::name

The function's name, global symbol.

◆ num_args

Index tvm::runtime::relax_vm::VMFuncInfo::num_args = 0

The number of arguments of the function.

◆ param_names

std::vector<std::string> tvm::runtime::relax_vm::VMFuncInfo::param_names

The function parameter names.

◆ register_file_size

Index tvm::runtime::relax_vm::VMFuncInfo::register_file_size = 0

The register file size of the function.

◆ start_instr

Index tvm::runtime::relax_vm::VMFuncInfo::start_instr = 0

The start instruction index of the function.


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