|
tvm
|
Classes | |
| struct | Instruction |
| A single virtual machine instruction. More... | |
| struct | TensorCacheMetadata |
| Metadata for Tensor cache, which by default, is named as "tensor-cache.json". More... | |
| class | VirtualMachine |
| The virtual machine. More... | |
| class | VMClosure |
| reference to closure. More... | |
| class | VMClosureObj |
| An object representing a vm closure. More... | |
| class | VMExecutable |
| The virtual machine executable emitted by the VM compiler. More... | |
| class | VMExtension |
| Managed reference to VM extension. More... | |
| class | VMExtensionNode |
| Represent a VM extension. A VM extension allows the user to extend the VM with target specific functionalities. The VM holds the reference of the extensions to ensure the extensions have the same lifetime as the VM. More... | |
| struct | VMFuncInfo |
| Information entry in executable function table. More... | |
Typedefs | |
| using | ExecWord = int64_t |
| The storage type for the bytecode in the VM. | |
| using | RegName = ExecWord |
| A register name. | |
| using | Index = ExecWord |
| An alias for the integer type used ubiquitously in the VM. | |
Enumerations | |
| enum class | MatchShapeCode : int { kAssertEqualToImm = 0 , kStoreToHeap = 1 , kNoOp = 2 , kAssertEqualToLoad = 3 } |
| Op code used in built-in match-shape function. More... | |
| enum class | MakeShapeCode : int { kUseImm = 0 , kLoadShape = 1 } |
| Op code used in builtin function MakeShape. More... | |
| enum class | Opcode { Call = 1U , Ret = 2U , Goto = 3U , If = 4U } |
| An enumeration of Relax's opcodes. More... | |
| enum class | VMInstrumentReturnKind : int { kNoOp = 0 , kSkipRun = 1 } |
| Possible instrument actions. More... | |
The storage type for the bytecode in the VM.
An alias for the integer type used ubiquitously in the VM.
A register name.
|
strong |
Op code used in builtin function MakeShape.
MakeShape(shape_heap, n, c[0], r[0], c[1], r[1], ... c[n], r[n]).
| Enumerator | |
|---|---|
| kUseImm | Use the following r[i] as immediate shape value. |
| kLoadShape | Load shape value from the shape_heap[[r[i]]. |
|
strong |
Op code used in built-in match-shape function.
The function takes the following signature:
MatchShape(input_shape, shape_heap, n, c[0], r[0], c[1], r[1], ... c[n], r[n], err_ctx)
This function provides runtime shape population and checking support for match-cast. When a shape variable appears in the first time, we should load the shape and populate the variable. When a shape variable already appears, we should assert that it already equals an existing shape value.
NOTE: It is OK to pass nullptr shape_heap if all code are AssertEqualToImm.
|
strong |