tvm
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Classes | Typedefs | Enumerations
tvm::runtime::vm Namespace Reference

Classes

class  Allocator
 
struct  Buffer
 
class  Executable
 The executable emitted by the VM compiler. More...
 
struct  Instruction
 A single virtual machine instruction. More...
 
class  MemoryManager
 
class  Storage
 reference to storage. More...
 
class  StorageObj
 An object representing a storage allocation. More...
 
class  VirtualMachine
 The virtual machine. More...
 
class  VMClosure
 reference to closure. More...
 
class  VMClosureObj
 An object representing a vm closure. More...
 
struct  VMFrame
 A representation of a stack frame. More...
 
struct  VMFunction
 A representation of a Relay function in the VM. More...
 

Typedefs

using RegName = int64_t
 A register name. More...
 
using Index = int64_t
 An alias for the integer type used ubiquitously in the VM. More...
 

Enumerations

enum  Opcode {
  Opcode::Move = 0U, Opcode::Ret = 1U, Opcode::Invoke = 2U, Opcode::InvokeClosure = 3U,
  Opcode::InvokePacked = 4U, Opcode::AllocTensor = 5U, Opcode::AllocTensorReg = 6U, Opcode::AllocADT = 7U,
  Opcode::AllocClosure = 8U, Opcode::GetField = 9U, Opcode::If = 10U, Opcode::LoadConst = 11U,
  Opcode::Goto = 12U, Opcode::GetTag = 13U, Opcode::LoadConsti = 14U, Opcode::Fatal = 15U,
  Opcode::AllocStorage = 16U, Opcode::ShapeOf = 17U, Opcode::ReshapeTensor = 18U, Opcode::DeviceCopy = 19U,
  Opcode::KillRegister = 20U
}
 An enumeration of Relay's opcodes. More...
 
enum  AllocatorType { kNaive = 1, kPooled }
 

Typedef Documentation

◆ Index

using tvm::runtime::vm::Index = typedef int64_t

An alias for the integer type used ubiquitously in the VM.

◆ RegName

using tvm::runtime::vm::RegName = typedef int64_t

A register name.

Enumeration Type Documentation

◆ AllocatorType

Enumerator
kNaive 
kPooled 

◆ Opcode

An enumeration of Relay's opcodes.

The opcode is used to implement instruction as a tagged union.

Enumerator
Move 
Ret 
Invoke 
InvokeClosure 
InvokePacked 
AllocTensor 
AllocTensorReg 
AllocADT 
AllocClosure 
GetField 
If 
LoadConst 
Goto 
GetTag 
LoadConsti 
Fatal 
AllocStorage 
ShapeOf 
ReshapeTensor 
DeviceCopy 
KillRegister