24 #ifndef TVM_RUNTIME_VM_BYTECODE_H_ 25 #define TVM_RUNTIME_VM_BYTECODE_H_ 28 #include <tvm/runtime/logging.h> 240 const std::vector<RegName>& args);
251 DLDataType dtype,
RegName dst);
262 DLDataType dtype,
RegName dst);
282 const std::vector<RegName>& free_vars,
RegName dst);
399 #endif // TVM_RUNTIME_VM_BYTECODE_H_ std::ostream & operator<<(std::ostream &os, const ObjectRef &n)
Definition: repr_printer.h:69
Index num_freevar
The number of free variables to capture.
Definition: bytecode.h:190
Index clo_index
The index into the function table.
Definition: bytecode.h:188
Index packed_index
The index into the packed function table.
Definition: bytecode.h:130
constexpr const char * device_type
The device type.
Definition: stmt.h:1261
RegName result
The register to return.
Definition: bytecode.h:122
Index false_offset
The program counter offset for the false branch.
Definition: bytecode.h:146
int64_t * shape
The shape of tensor.
Definition: bytecode.h:98
Opcode op
The instruction opcode.
Definition: bytecode.h:84
Index pc_offset
The jump offset.
Definition: bytecode.h:166
Performance counters for profiling via the PAPI library.
Definition: analyzer.h:36
Index output_size
The number of outputs produced by the packed function.
Definition: bytecode.h:134
RegName tensor
Definition: bytecode.h:205
Index val
Definition: bytecode.h:162
DLDataType dtype
The datatype of tensor to be allocated.
Definition: bytecode.h:100
A single virtual machine instruction.
Definition: bytecode.h:82
Index const_index
Definition: bytecode.h:158
RegName * closure_args
The closure arguments as an array.
Definition: bytecode.h:118
DLDataType dtype_hint
The hint of the dtype.
Definition: bytecode.h:200
RegName dst
The destination register.
Definition: bytecode.h:87
Index func_index
The function to call.
Definition: bytecode.h:150
RegName newshape
Definition: bytecode.h:209
Index offset
The offset into the storage to allocate from.
Definition: bytecode.h:94
RegName object
The register to project from.
Definition: bytecode.h:170
Index field_index
The field to read out.
Definition: bytecode.h:172
RegName src
Definition: bytecode.h:212
uint32_t ndim
The number of dimensions.
Definition: bytecode.h:96
int64_t RegName
A register name.
Definition: bytecode.h:38
RegName target
The register containing the target value.
Definition: bytecode.h:142
Index arity
The arity of the packed function.
Definition: bytecode.h:132
RegName closure
The register containing the closure.
Definition: bytecode.h:114
Tensor shape(const Tensor &src, DataType dtype, const std::string name="T_shape", const std::string tag=kInjective)
Get the shape of input tensor.
Definition: transform.h:1608
RegName storage
The storage to allocate from.
Definition: bytecode.h:92
int64_t Index
An alias for the integer type used ubiquitously in the VM.
Definition: bytecode.h:43
Index device_type
The device type of the allocation.
Definition: bytecode.h:202
Index num_args
The number of arguments to the function.
Definition: bytecode.h:152
Index alignment
The alignment of the allocation.
Definition: bytecode.h:198
Opcode
An enumeration of Relay's opcodes.
Definition: bytecode.h:50
Index true_offset
The program counter offset for the true branch.
Definition: bytecode.h:144
RegName * datatype_fields
The fields as an array.
Definition: bytecode.h:184
RegName allocation_size
The size of the allocation.
Definition: bytecode.h:196
Index num_closure_args
The number of arguments to the closure.
Definition: bytecode.h:116
RegName * free_vars
The free variables as an array.
Definition: bytecode.h:192
RegName * invoke_args_registers
The registers containing the arguments.
Definition: bytecode.h:154
Index src_device_type
The source device type.
Definition: bytecode.h:214
Index constructor_tag
The datatype's constructor tag.
Definition: bytecode.h:180
RegName shape_register
The register to read the shape out of.
Definition: bytecode.h:108
Index dst_device_type
The destination device type.
Definition: bytecode.h:216
RegName from
The source register for a move operation.
Definition: bytecode.h:126
RegName test
The register containing the test value.
Definition: bytecode.h:140
Index num_fields
The number of fields to store in the datatype.
Definition: bytecode.h:182
RegName * packed_args
The arguments to pass to the packed function.
Definition: bytecode.h:136