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
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
22
namespace
LIEF::assembly::aarch64::operands
{
23
34
class
LIEF_API
Register
:
public
Operand {
35
public
:
36
using
Operand::Operand;
37
38
struct
reg_t
{
40
enum class
TYPE
{
41
NONE = 0,
43
SYSREG
,
45
REG
,
46
};
47
48
union
{
49
REG
reg
=
REG::NoRegister
;
50
SYSREG
sysreg
;
51
};
52
TYPE
type
=
TYPE::NONE
;
53
};
54
56
reg_t
value
()
const
;
57
58
static
bool
classof
(
const
Operand* op);
59
~Register
()
override
=
default
;
60
};
61
}
62
63
64
#endif
Operand.hpp
registers.hpp
LIEF::assembly::aarch64::operands::Register
This class represents a register operand.
Definition
aarch64/operands/Register.hpp:34
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:21
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::aarch64::operands::Register::reg_t
Definition
aarch64/operands/Register.hpp:38
LIEF::assembly::aarch64::operands::Register::reg_t::type
TYPE type
Definition
aarch64/operands/Register.hpp:52
LIEF::assembly::aarch64::operands::Register::reg_t::reg
REG reg
Definition
aarch64/operands/Register.hpp:49
LIEF::assembly::aarch64::operands::Register::reg_t::sysreg
SYSREG sysreg
Definition
aarch64/operands/Register.hpp:50
LIEF::assembly::aarch64::operands::Register::reg_t::TYPE
TYPE
Enum type used to discriminate the anonymous union.
Definition
aarch64/operands/Register.hpp:40
LIEF::assembly::aarch64::operands::Register::reg_t::TYPE::NONE
@ NONE
Definition
aarch64/operands/Register.hpp:41
LIEF_API
#define LIEF_API
Definition
visibility.h:45
Generated by
1.18.0