Skip to content

Commit

Permalink
chore(avm): avoid including flavor where possible (#7361)
Browse files Browse the repository at this point in the history
The Flavor is difficult for the compiler to process.
  • Loading branch information
fcarreiro authored Jul 8, 2024
1 parent 6329833 commit dbdffd6
Show file tree
Hide file tree
Showing 19 changed files with 589 additions and 456 deletions.
1 change: 1 addition & 0 deletions barretenberg/cpp/src/barretenberg/bb/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#ifndef DISABLE_AZTEC_VM
#include "barretenberg/vm/avm_trace/avm_common.hpp"
#include "barretenberg/vm/avm_trace/avm_execution.hpp"
#include "barretenberg/vm/avm_trace/stats.hpp"
#endif
#include "config.hpp"
#include "get_bn254_crs.hpp"
Expand Down
8 changes: 4 additions & 4 deletions barretenberg/cpp/src/barretenberg/vm/avm_trace/avm_common.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
#include "barretenberg/common/throw_or_abort.hpp"
#include "barretenberg/serialize/msgpack.hpp"
#include "barretenberg/vm/avm_trace/constants.hpp"
#include "barretenberg/vm/avm_trace/stats.hpp"
#include "barretenberg/vm/generated/avm_flavor.hpp"

#include "barretenberg/vm/generated/avm_flavor_settings.hpp"
#include "barretenberg/vm/generated/avm_full_row.hpp"

#include <array>
#include <cstdint>
Expand All @@ -13,8 +14,7 @@

namespace bb::avm_trace {

using Flavor = bb::AvmFlavor;
using FF = Flavor::FF;
using FF = AvmFlavorSettings::FF;

// To toggle all relevant unit tests with proving, set the env variable "AVM_ENABLE_FULL_PROVING".
static const bool ENABLE_PROVING = std::getenv("AVM_ENABLE_FULL_PROVING") != nullptr;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
#include "barretenberg/vm/avm_trace/constants.hpp"
#include "barretenberg/vm/generated/avm_circuit_builder.hpp"
#include "barretenberg/vm/generated/avm_composer.hpp"
#include "barretenberg/vm/generated/avm_flavor.hpp"

#include <cassert>
#include <cstddef>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#include "barretenberg/vm/avm_trace/avm_common.hpp"
#include "barretenberg/vm/avm_trace/avm_instructions.hpp"
#include "barretenberg/vm/avm_trace/avm_trace.hpp"
#include "barretenberg/vm/generated/avm_flavor.hpp"

#include <cstddef>
#include <cstdint>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
#include "barretenberg/vm/avm_trace/gadgets/avm_pedersen.hpp"
#include "barretenberg/vm/avm_trace/gadgets/avm_poseidon2.hpp"
#include "barretenberg/vm/avm_trace/gadgets/avm_sha256.hpp"
#include "barretenberg/vm/generated/avm_circuit_builder.hpp"

namespace bb::avm_trace {

Expand Down
Loading

0 comments on commit dbdffd6

Please sign in to comment.