Skip to content

Commit

Permalink
fix build error
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 707324509
  • Loading branch information
j2kun authored and copybara-github committed Dec 18, 2024
1 parent a23466e commit 9031113
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
6 changes: 2 additions & 4 deletions lib/Dialect/LWE/Conversions/LWEToOpenfhe/LWEToOpenfhe.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -209,8 +209,7 @@ struct ConvertEncodeOp : public OpConversionPattern<lwe::RLWEEncodeOp> {
op.getEncoding()));

return llvm::TypeSwitch<Attribute, LogicalResult>(op.getEncoding())
.Case<lwe::InverseCanonicalEncodingAttr,
lwe::InverseCanonicalEmbeddingEncodingAttr>([&](auto encoding) {
.Case<lwe::InverseCanonicalEncodingAttr>([&](auto encoding) {
rewriter.replaceOpWithNewOp<openfhe::MakeCKKSPackedPlaintextOp>(
op, plaintextType, cryptoContext, input);
return success();
Expand All @@ -221,8 +220,7 @@ struct ConvertEncodeOp : public OpConversionPattern<lwe::RLWEEncodeOp> {
" when targeting OpenFHE";
return failure();
})
.Case<lwe::PolynomialEvaluationEncodingAttr,
lwe::FullCRTPackingEncodingAttr>([&](auto encoding) {
.Case<lwe::FullCRTPackingEncodingAttr>([&](auto encoding) {
rewriter.replaceOpWithNewOp<openfhe::MakePackedPlaintextOp>(
op, plaintextType, cryptoContext, input);
return success();
Expand Down
8 changes: 0 additions & 8 deletions tests/Examples/openfhe/BUILD
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# See README.md for setup required to run these tests

load("@heir//tests/Examples/openfhe:test.bzl", "openfhe_end_to_end_test")
load("//tools/build_defs/testing:bzl_library.bzl", "bzl_library")

package(default_applicable_licenses = ["@heir//:license"])

Expand Down Expand Up @@ -96,10 +95,3 @@ openfhe_end_to_end_test(
tags = ["notap"],
test_src = "halevi_shoup_matmul_test.cpp",
)

bzl_library(
name = "test_bzl",
srcs = ["test.bzl"],
parse_tests = False,
visibility = ["//visibility:private"],
)

0 comments on commit 9031113

Please sign in to comment.