[Relay][Doc] Docs for new op code (#3522)
authorWei Chen <ipondering.weic@gmail.com>
Wed, 10 Jul 2019 01:40:42 +0000 (18:40 -0700)
committerJared Roesch <roeschinc@gmail.com>
Wed, 10 Jul 2019 01:40:42 +0000 (18:40 -0700)
docs/dev/virtual_machine.rst

index a59620a0a861cd968ded993ac02e74be290c3cb1..79e1fd94edcdb44be5f6ac32b947cacac8be623e 100644 (file)
@@ -160,14 +160,28 @@ If
 ^^
 **Arguments**:
 ::
-  RegName if_cond
+  RegName test
+  RegName target
   size_t true_offset
   size_t false_offset
 
-Check if the object at register `if_cond` is `true` or `false`.
-If `true`, relative jump by `true_offset`, else relative
+Check if the object at register `test` is equal to `target`.
+If equal, relative jump by `true_offset`, else relative
 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
 ^^^^
 **Arguments**:
@@ -204,6 +218,15 @@ LoadConst
 
 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
 ~~~~~~~~~~~~~~~~~~~~~
 We use a simple object representation that uses shared pointers and tagging.