tvm
|
The auxiliary data structure for instruction argument. More...
#include <bytecode.h>
Public Member Functions | |
Arg () | |
Construct a void argument. More... | |
ArgKind | kind () const |
Get the kind of argument. More... | |
ExecWord | value () const |
Get the value of argument. More... | |
ExecWord | data () const |
Get the raw data repr of the arg. More... | |
Static Public Member Functions | |
static Arg | FromData (ExecWord data) |
construct Arg from data. More... | |
static Arg | Register (RegName reg) |
construct a register Arg. More... | |
static Arg | ConstIdx (Index index) |
construct a ConstIdx arg. More... | |
static Arg | Immediate (int64_t imm_value) |
construct a immediate arg. More... | |
static Arg | FuncIdx (Index index) |
construct a FuncIdx arg. More... | |
The auxiliary data structure for instruction argument.
|
inline |
Construct a void argument.
construct a ConstIdx arg.
index | The constant index. |
|
inline |
Get the raw data repr of the arg.
construct Arg from data.
data | The data repr. |
construct a FuncIdx arg.
index | The func index in the function table. |
|
inlinestatic |
construct a immediate arg.
imm_value | The immediate value. |
|
inline |
Get the kind of argument.
|
inline |
Get the value of argument.