Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
bb::avm2::ExecInstructionSpec::RegisterInfo Class Reference

#include <instruction_spec.hpp>

Public Member Functions

RegisterInfoadd_input (std::optional< ValueTag > tag=std::nullopt)
 
RegisterInfoadd_inputs (const std::vector< std::optional< ValueTag > > &tags)
 
RegisterInfoadd_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< ValueTagexpected_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
 

Detailed Description

Definition at line 28 of file instruction_spec.hpp.

Member Function Documentation

◆ add_input()

RegisterInfo & bb::avm2::RegisterInfo::add_input ( std::optional< ValueTag tag = std::nullopt)

Definition at line 388 of file instruction_spec.cpp.

◆ add_inputs()

RegisterInfo & bb::avm2::RegisterInfo::add_inputs ( const std::vector< std::optional< ValueTag > > &  tags)

Definition at line 394 of file instruction_spec.cpp.

◆ add_output()

RegisterInfo & bb::avm2::RegisterInfo::add_output ( )

Definition at line 400 of file instruction_spec.cpp.

◆ expected_tag()

std::optional< ValueTag > bb::avm2::RegisterInfo::expected_tag ( size_t  index) const

Definition at line 421 of file instruction_spec.cpp.

◆ is_active()

bool bb::avm2::RegisterInfo::is_active ( size_t  index) const

Definition at line 406 of file instruction_spec.cpp.

◆ is_write()

bool bb::avm2::RegisterInfo::is_write ( size_t  index) const

Definition at line 411 of file instruction_spec.cpp.

◆ need_tag_check()

bool bb::avm2::RegisterInfo::need_tag_check ( size_t  index) const

Definition at line 416 of file instruction_spec.cpp.

◆ num_inputs()

size_t bb::avm2::ExecInstructionSpec::RegisterInfo::num_inputs ( ) const
inline

Definition at line 34 of file instruction_spec.hpp.

◆ num_outputs()

size_t bb::avm2::ExecInstructionSpec::RegisterInfo::num_outputs ( ) const
inline

Definition at line 35 of file instruction_spec.hpp.

◆ operator==()

bool bb::avm2::ExecInstructionSpec::RegisterInfo::operator== ( const RegisterInfo other) const
default

◆ total_registers()

size_t bb::avm2::ExecInstructionSpec::RegisterInfo::total_registers ( ) const
inline

Definition at line 36 of file instruction_spec.hpp.

Member Data Documentation

◆ ANY_TAG

constexpr auto bb::avm2::ExecInstructionSpec::RegisterInfo::ANY_TAG = std::nullopt
staticconstexpr

Definition at line 47 of file instruction_spec.hpp.

◆ has_output

bool bb::avm2::ExecInstructionSpec::RegisterInfo::has_output = false
private

Definition at line 53 of file instruction_spec.hpp.

◆ inputs

std::vector<std::optional<ValueTag> > bb::avm2::ExecInstructionSpec::RegisterInfo::inputs
private

Definition at line 52 of file instruction_spec.hpp.


The documentation for this class was generated from the following files: