Skip to content

Conversation

@copybara-service
Copy link
Contributor

Use opaque ciphertext/plaintext type for openfhe

The main motivation here is to implement an alloc-to-inplace
pass for OpenFHE. There are some ops in OpenFHE like relinearize
which can be done in place but (hidden by OpenFHE's opaque ciphertext type)
modify the underlying LWE type in a way that would invalidate our IR.

By making openfhe types opaque, we can write a much simpler transform
for alloc-to-inplace. However, this also requires passing along relevant
configuration information to OpenFHE from something besides the LWE types.

The main motivation here is to implement an alloc-to-inplace
pass for OpenFHE. There are some ops in OpenFHE like relinearize
which can be done in place but (hidden by OpenFHE's opaque ciphertext type)
modify the underlying LWE type in a way that would invalidate our IR.

By making openfhe types opaque, we can write a much simpler transform
for alloc-to-inplace. However, this also requires passing along relevant
configuration information to OpenFHE from something besides the LWE types.

PiperOrigin-RevId: 844158883
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant