LIEF: Library to Instrument Executable Formats Version 2.0.0
Loading...
Searching...
No Matches
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
20
21
23
34class LIEF_API Register : public Operand {
35 public:
36 using Operand::Operand;
37
38 struct reg_t {
40 enum class TYPE {
41 NONE = 0,
46 };
47
48 union {
51 };
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
This class represents a register operand.
Definition aarch64/operands/Register.hpp:34
reg_t value() const
The effective register as either: a REG or a SYSREG.
static bool classof(const Operand *op)
Namespace that wraps the different aarch64 operands.
Definition aarch64/operands/Immediate.hpp:21
SYSREG
Definition aarch64/registers.hpp:924
REG
Definition aarch64/registers.hpp:25
@ NoRegister
Definition aarch64/registers.hpp:26
Definition aarch64/operands/Register.hpp:38
TYPE type
Definition aarch64/operands/Register.hpp:52
REG reg
Definition aarch64/operands/Register.hpp:49
SYSREG sysreg
Definition aarch64/operands/Register.hpp:50
TYPE
Enum type used to discriminate the anonymous union.
Definition aarch64/operands/Register.hpp:40
@ NONE
Definition aarch64/operands/Register.hpp:41
#define LIEF_API
Definition visibility.h:45