
Bases: Instruction
This class represents a RISC-V (32 or 64 bit) instruction
The instruction opcode as defined in LLVM
Iterator over the operands of the current instruction
See: lief.assembly.riscv.OPCODE

Bases: object
This class represents an operand for a RISC-V instruction
Pretty representation of the operand


Bases: Operand
This class represents a register operand.
csrr a0, mstatus
| |
+------+ +-------+
| |
v v
REG SYSREG
The effective register as either: a lief.assembly.riscv.REG or a lief.assembly.riscv.SYSREG.

Bases: Operand
This class represents a memory operand.
lw a0, 8(sp)
| |
| +----> Base: sp
|
+-------> Displacement: 8
The base register.
For lw a0, 8(sp) it would return sp.
The displacement value.
For lw a0, 8(sp) it would return 8.
