|
LIEF: Library to Instrument Executable Formats Version 1.0.0
|
This class represents a memory operand. More...
#include <Memory.hpp>


Classes | |
| struct | shift_info_t |
| This structure holds shift info (type + value). More... | |
| struct | offset_t |
| Wraps a memory offset as an integer offset or as a register offset. More... | |
Public Types | |
| enum class | SHIFT : int32_t { UNKNOWN = 0 , LSL , UXTX , UXTW , SXTX , SXTW } |
Public Member Functions | |
| REG | base () const |
| The base register. | |
| offset_t | offset () const |
| The addressing offset. | |
| shift_info_t | shift () const |
| Shift information. | |
| ~Memory () override=default | |
| Public Member Functions inherited from LIEF::assembly::aarch64::Operand | |
| std::string | to_string () const |
| Pretty representation of the operand. | |
| template<class T> | |
| const T * | as () const |
| This function can be used to down cast an Operand instance: | |
| virtual | ~Operand () |
Static Public Member Functions | |
| static bool | classof (const Operand *op) |
This class represents a memory operand.
|
strong |
|
overridedefault |
| REG LIEF::assembly::aarch64::operands::Memory::base | ( | ) | const |
The base register.
For str x3, [x8, #8] it would return x8.
|
static |
| offset_t LIEF::assembly::aarch64::operands::Memory::offset | ( | ) | const |
The addressing offset.
It can be either:
| shift_info_t LIEF::assembly::aarch64::operands::Memory::shift | ( | ) | const |
Shift information.
For instance, for ldr x1, [x2, x3, lsl #3] it would return a SHIFT::LSL with a shift_info_t::value set to 3.