Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bgv-to-openfhe: populate ConvertAddPlainOp pattern #1128

Merged

Conversation

ZenithalHourlyRate
Copy link
Collaborator

Otherwise the following code would fail to --mlir-to-openfhe-bgv="entry-function=func ciphertext-degree=8"

func.func @func(%arg0: tensor<8xi16>) -> tensor<8xi16> {
  %c0 = arith.constant dense<10> : tensor<8xi16>
  %0 = arith.addi %arg0, %c0 : tensor<8xi16>
  return %0 : tensor<8xi16>
}

With

error: failed to legalize operation 'bgv.add_plain' that was explicitly marked illegal when bgv-to-openfhe.

@j2kun j2kun added the pull_ready Indicates whether a PR is ready to pull. The copybara worker will import for internal testing label Nov 30, 2024
@copybara-service copybara-service bot merged commit 43217e2 into google:main Dec 2, 2024
8 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pull_ready Indicates whether a PR is ready to pull. The copybara worker will import for internal testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants