The auxiliary data structure for instruction argument.
More...
#include <bytecode.h>
The auxiliary data structure for instruction argument.
◆ Arg()
| tvm::runtime::vm::Instruction::Arg::Arg |
( |
| ) |
|
|
inline |
Construct a void argument.
◆ ConstIdx()
| static Arg tvm::runtime::vm::Instruction::Arg::ConstIdx |
( |
Index |
index | ) |
|
|
inlinestatic |
construct a ConstIdx arg.
- Parameters
-
- Returns
- The constructed arg.
◆ data()
| ExecWord tvm::runtime::vm::Instruction::Arg::data |
( |
| ) |
const |
|
inline |
Get the raw data repr of the arg.
- Returns
- The raw data.
◆ FromData()
| static Arg tvm::runtime::vm::Instruction::Arg::FromData |
( |
ExecWord |
data | ) |
|
|
inlinestatic |
construct Arg from data.
- Parameters
-
◆ FuncIdx()
| static Arg tvm::runtime::vm::Instruction::Arg::FuncIdx |
( |
Index |
index | ) |
|
|
inlinestatic |
construct a FuncIdx arg.
- Parameters
-
| index | The func index in the function table. |
- Returns
- The constructed arg.
◆ Immediate()
| static Arg tvm::runtime::vm::Instruction::Arg::Immediate |
( |
int64_t |
imm_value | ) |
|
|
inlinestatic |
construct a immediate arg.
- Parameters
-
| imm_value | The immediate value. |
- Returns
- The constructed arg.
◆ kind()
| ArgKind tvm::runtime::vm::Instruction::Arg::kind |
( |
| ) |
const |
|
inline |
Get the kind of argument.
- Returns
- The kind of argument.
◆ Register()
| static Arg tvm::runtime::vm::Instruction::Arg::Register |
( |
RegName |
reg | ) |
|
|
inlinestatic |
construct a register Arg.
- Parameters
-
- Returns
- The constructed arg.
◆ value()
| ExecWord tvm::runtime::vm::Instruction::Arg::value |
( |
| ) |
const |
|
inline |
Get the value of argument.
- Returns
- The value of argument.
- Note
- We store both positive and negative values by sign extension.
The documentation for this class was generated from the following file: