|
Barretenberg
The ZK-SNARK library at the core of Aztec
|
#include <instruction_spec.hpp>
Public Member Functions | |
| RegisterInfo & | add_input (std::optional< ValueTag > tag=std::nullopt) |
| RegisterInfo & | add_inputs (const std::vector< std::optional< ValueTag > > &tags) |
| RegisterInfo & | add_output () |
| size_t | num_inputs () const |
| size_t | num_outputs () const |
| size_t | total_registers () const |
| bool | is_active (size_t index) const |
| bool | is_write (size_t index) const |
| bool | need_tag_check (size_t index) const |
| std::optional< ValueTag > | expected_tag (size_t index) const |
| bool | operator== (const RegisterInfo &other) const =default |
Static Public Attributes | |
| static constexpr auto | ANY_TAG = std::nullopt |
Private Attributes | |
| std::vector< std::optional< ValueTag > > | inputs |
| bool | has_output = false |
Definition at line 34 of file instruction_spec.hpp.
| RegisterInfo & bb::avm2::RegisterInfo::add_input | ( | std::optional< ValueTag > | tag = std::nullopt | ) |
Definition at line 428 of file instruction_spec.cpp.
| RegisterInfo & bb::avm2::RegisterInfo::add_inputs | ( | const std::vector< std::optional< ValueTag > > & | tags | ) |
Definition at line 434 of file instruction_spec.cpp.
| RegisterInfo & bb::avm2::RegisterInfo::add_output | ( | ) |
Definition at line 440 of file instruction_spec.cpp.
| std::optional< ValueTag > bb::avm2::RegisterInfo::expected_tag | ( | size_t | index | ) | const |
Definition at line 461 of file instruction_spec.cpp.
| bool bb::avm2::RegisterInfo::is_active | ( | size_t | index | ) | const |
Definition at line 446 of file instruction_spec.cpp.
| bool bb::avm2::RegisterInfo::is_write | ( | size_t | index | ) | const |
Definition at line 451 of file instruction_spec.cpp.
| bool bb::avm2::RegisterInfo::need_tag_check | ( | size_t | index | ) | const |
Definition at line 456 of file instruction_spec.cpp.
|
inline |
Definition at line 40 of file instruction_spec.hpp.
|
inline |
Definition at line 41 of file instruction_spec.hpp.
|
default |
|
inline |
Definition at line 42 of file instruction_spec.hpp.
|
staticconstexpr |
Definition at line 53 of file instruction_spec.hpp.
|
private |
Definition at line 59 of file instruction_spec.hpp.
|
private |
Definition at line 58 of file instruction_spec.hpp.