Commit b5a746d2 by Wei Chen Committed by Jared Roesch

[Relay][Doc] Docs for new op code (#3522)

parent 025a6c80
...@@ -160,14 +160,28 @@ If ...@@ -160,14 +160,28 @@ If
^^ ^^
**Arguments**: **Arguments**:
:: ::
RegName if_cond RegName test
RegName target
size_t true_offset size_t true_offset
size_t false_offset size_t false_offset
Check if the object at register `if_cond` is `true` or `false`. Check if the object at register `test` is equal to `target`.
If `true`, relative jump by `true_offset`, else relative If equal, relative jump by `true_offset`, else relative
jump by `false_offset`. jump by `false_offset`.
GetTagi
^^^^^^^
**Arguments**:
::
RegName object
RegName dst
Get the object tag for Datatype object in register `object`. And saves the reult to register `dst`.
Fatal
^^^^^
Fail the virtual machine execution.
Goto Goto
^^^^ ^^^^
**Arguments**: **Arguments**:
...@@ -204,6 +218,15 @@ LoadConst ...@@ -204,6 +218,15 @@ LoadConst
Load the constant at `const_index` from the constant pool. The result is saved to register `dst`. Load the constant at `const_index` from the constant pool. The result is saved to register `dst`.
LoadConsti
^^^^^^^^^^
**Arguments**:
::
size_t val
RegName dst
Load the constant integer `val` to register `dst`. The result is a 0-rank tensor.
Object Representation Object Representation
~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~
We use a simple object representation that uses shared pointers and tagging. We use a simple object representation that uses shared pointers and tagging.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment