This class represents an eBPF instruction.
Public Types
Public Functions
The instruction opcode as defined in LLVM.
Iterator over the operands of the current instruction.
Public Static Functions
True if inst is an effective instance of ebpf::Instruction.
See LIEF::assembly::ebpf::OPCODE in include/asm/ebpf/opcodes.hpp
This class represents an operand for an eBPF instruction.
Subclassed by LIEF::assembly::ebpf::operands::Immediate, LIEF::assembly::ebpf::operands::Memory, LIEF::assembly::ebpf::operands::PCRelative, LIEF::assembly::ebpf::operands::Register
Public Functions
Pretty representation of the operand.
This function can be used to down cast an Operand instance:
std::unique_ptr<assembly::ebpf::Operand> op = ...;
if (const auto* imm = inst->as<assembly::ebpf::operands::Immediate>()) {
const int64_t value = imm->value();
}