LIEF: Library to Instrument Executable Formats
Version 2.0.0
Toggle main menu visibility
Loading...
Searching...
No Matches
lief-install
x86_64
static
include
LIEF
asm
ebpf
operands
ebpf/operands/Register.hpp
Go to the documentation of this file.
1
/* Copyright 2022 - 2026 R. Thomas
2
*
3
* Licensed under the Apache License, Version 2.0 (the "License");
4
* you may not use this file except in compliance with the License.
5
* You may obtain a copy of the License at
6
*
7
* http://www.apache.org/licenses/LICENSE-2.0
8
*
9
* Unless required by applicable law or agreed to in writing, software
10
* distributed under the License is distributed on an "AS IS" BASIS,
11
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
* See the License for the specific language governing permissions and
13
* limitations under the License.
14
*/
15
#ifndef LIEF_ASM_EBPF_OPERAND_REG_H
16
#define LIEF_ASM_EBPF_OPERAND_REG_H
17
18
#include "
LIEF/asm/ebpf/Operand.hpp
"
19
#include "
LIEF/asm/ebpf/registers.hpp
"
20
21
22
namespace
LIEF::assembly::ebpf::operands
{
23
35
class
LIEF_API
Register
:
public
Operand {
36
public
:
37
using
Operand::Operand;
38
40
REG
value
()
const
;
41
42
static
bool
classof
(
const
Operand* op);
43
~Register
()
override
=
default
;
44
};
45
}
46
47
48
#endif
LIEF::assembly::ebpf::operands::Register
This class represents a register operand.
Definition
ebpf/operands/Register.hpp:35
LIEF::assembly::ebpf::operands::Register::value
REG value() const
The effective REG wrapped by this operand.
LIEF::assembly::ebpf::operands::Register::classof
static bool classof(const Operand *op)
LIEF::assembly::ebpf::operands::Register::~Register
~Register() override=default
Operand.hpp
registers.hpp
LIEF::assembly::ebpf::operands
Namespace that wraps the different eBPF operands.
Definition
ebpf/operands/Immediate.hpp:21
LIEF::assembly::ebpf::REG
REG
Definition
ebpf/registers.hpp:23
LIEF_API
#define LIEF_API
Definition
visibility.h:45
Generated by
1.18.0