We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
RegisterOperation
1 parent 757568b commit dbbf2caCopy full SHA for dbbf2ca
src/log_surgeon/finite_automata/RegisterOperation.hpp
@@ -24,6 +24,11 @@ class RegisterOperation {
24
Negate
25
};
26
27
+ bool operator==(RegisterOperation const& rhs) const {
28
+ return m_reg_id == rhs.m_reg_id && m_type == rhs.m_type
29
+ && m_copy_reg_id == rhs.m_copy_reg_id;
30
+ }
31
+
32
static auto create_set_operation(reg_id_t const reg_id) -> RegisterOperation {
33
return {reg_id, Type::Set};
34
}
@@ -43,6 +48,8 @@ class RegisterOperation {
43
48
44
49
[[nodiscard]] auto get_type() const -> Type { return m_type; }
45
50
51
+ [[nodiscard]] auto get_copy_reg_id() const -> std::optional<reg_id_t> { return m_copy_reg_id; }
52
46
53
/**
47
54
* Serializes the register operation into a string representation.
55
*
0 commit comments