Skip to content

Commit

Permalink
refactor: removed zero_var from common paramters struct
Browse files Browse the repository at this point in the history
  • Loading branch information
0xThemis committed Feb 15, 2024
1 parent d91fb31 commit 1e6c64b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ namespace nil {
template<typename VarType>
struct common_component_parameters {
std::uint32_t start_row;
VarType zero_var;
generation_mode gen_mode;
};

Expand Down
4 changes: 2 additions & 2 deletions mlir-assigner/include/mlir-assigner/parser/evaluator.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#include <cstdint>
#include <limits>
#include <optional>
// #define TEST_WITHOUT_LOOKUP_TABLES
#define TEST_WITHOUT_LOOKUP_TABLES

#include "mlir-assigner/helper/asserts.hpp"
#include "mlir-assigner/helper/logger.hpp"
Expand Down Expand Up @@ -958,7 +958,7 @@ namespace zk_ml_toolchain {
logger.error("Encountered an unregistered Dialect");
exit(-1);
}
ComponentParameters compParams = {assignmnt.allocated_rows(), zero_var, gen_mode};
ComponentParameters compParams = {assignmnt.allocated_rows(), gen_mode};
if (llvm::isa<mlir::arith::ArithDialect>(dial)) {
handleArithOperation(op, compParams);
return;
Expand Down

0 comments on commit 1e6c64b

Please sign in to comment.