Skip to content

Commit

Permalink
delete unused test support function which prompts a compiler warning (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
mars-risc0 authored Aug 26, 2024
1 parent 21dbf4d commit 004f942
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
11 changes: 0 additions & 11 deletions zirgen/circuit/bigint/op_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,6 @@

namespace zirgen::BigInt {

void makeConstZeroTest(mlir::OpBuilder builder, mlir::Location loc, size_t bits) {
auto inp = builder.create<BigInt::DefOp>(
loc, bits, 0, true); // Ignored, but not allowed to have no-input BigInt op

mlir::Type zeroType = builder.getIntegerType(8, false); // unsigned 8 bit
auto zeroAttr = builder.getIntegerAttr(zeroType, 0); // value 0
auto zero = builder.create<BigInt::ConstOp>(loc, zeroAttr);

builder.create<BigInt::EqualZeroOp>(loc, zero);
}

void makeConstOneTest(mlir::OpBuilder builder, mlir::Location loc, size_t bits) {
auto expected = builder.create<BigInt::DefOp>(loc, bits, 0, true);

Expand Down
1 change: 0 additions & 1 deletion zirgen/circuit/bigint/op_tests.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ void makeConstAddTest(mlir::OpBuilder builder, mlir::Location loc, size_t bits);
void makeConstAddAltTest(mlir::OpBuilder builder, mlir::Location loc, size_t bits);
void makeConstMulTest(mlir::OpBuilder builder, mlir::Location loc, size_t bits);
void makeAddTest(mlir::OpBuilder builder, mlir::Location loc, size_t bits);
void makeConstZeroTest(mlir::OpBuilder builder, mlir::Location loc, size_t bits);
void makeConstOneTest(mlir::OpBuilder builder, mlir::Location loc, size_t bits);
void makeConstTwoByteTest(mlir::OpBuilder builder, mlir::Location loc, size_t bits);
void makeSubTest(mlir::OpBuilder builder, mlir::Location loc, size_t bits);
Expand Down

0 comments on commit 004f942

Please sign in to comment.