LIEF: Library to Instrument Executable Formats
Version 1.0.0
Toggle main menu visibility
Loading...
Searching...
No Matches
lief-install
x86_64
static
include
LIEF
asm
aarch64
operands
aarch64/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_AARCH64_OPERAND_REG_H
16
#define LIEF_ASM_AARCH64_OPERAND_REG_H
17
18
#include "
LIEF/asm/aarch64/Operand.hpp
"
19
#include "
LIEF/asm/aarch64/registers.hpp
"
20
21
namespace
LIEF
{
22
namespace
assembly
{
23
namespace
aarch64
{
24
namespace
operands
{
25
36
class
LIEF_API
Register
:
public
Operand {
37
public
:
38
using
Operand::Operand;
39
40
struct
reg_t
{
42
enum class
TYPE
{
43
NONE = 0,
45
SYSREG
,
47
REG
,
48
};
49
50
union
{
51
REG
reg
=
REG::NoRegister
;
52
SYSREG
sysreg
;
53
};
54
TYPE
type
=
TYPE::NONE
;
55
};
56
58
reg_t
value
()
const
;
59
60
static
bool
classof
(
const
Operand* op);
61
~Register
()
override
=
default
;
62
};
63
}
64
}
65
}
66
}
67
#endif
Operand.hpp
registers.hpp
LIEF::assembly::aarch64::operands::Register
This class represents a register operand.
Definition
aarch64/operands/Register.hpp:36
LIEF::assembly::aarch64::operands::Register::value
reg_t value() const
The effective register as either: a REG or a SYSREG.
LIEF::assembly::aarch64::operands::Register::classof
static bool classof(const Operand *op)
LIEF::assembly::aarch64::operands::Register::~Register
~Register() override=default
LIEF::assembly::aarch64::operands
Namespace that wraps the different aarch64 operands.
Definition
aarch64/operands/Immediate.hpp:23
LIEF::assembly::aarch64
AArch64 architecture-related namespace.
Definition
aarch64/Instruction.hpp:27
LIEF::assembly::aarch64::SYSREG
SYSREG
Definition
aarch64/registers.hpp:924
LIEF::assembly::aarch64::REG
REG
Definition
aarch64/registers.hpp:25
LIEF::assembly::aarch64::REG::NoRegister
@ NoRegister
Definition
aarch64/registers.hpp:26
LIEF::assembly
Namespace related to assembly/disassembly support.
Definition
Abstract/Binary.hpp:47
LIEF
LIEF namespace.
Definition
Abstract/Binary.hpp:40
LIEF::assembly::aarch64::operands::Register::reg_t
Definition
aarch64/operands/Register.hpp:40
LIEF::assembly::aarch64::operands::Register::reg_t::type
TYPE type
Definition
aarch64/operands/Register.hpp:54
LIEF::assembly::aarch64::operands::Register::reg_t::reg
REG reg
Definition
aarch64/operands/Register.hpp:51
LIEF::assembly::aarch64::operands::Register::reg_t::sysreg
SYSREG sysreg
Definition
aarch64/operands/Register.hpp:52
LIEF::assembly::aarch64::operands::Register::reg_t::TYPE
TYPE
Enum type used to discriminate the anonymous union.
Definition
aarch64/operands/Register.hpp:42
LIEF::assembly::aarch64::operands::Register::reg_t::TYPE::NONE
@ NONE
Definition
aarch64/operands/Register.hpp:43
LIEF_API
#define LIEF_API
Definition
visibility.h:41
Generated by
1.17.0