heir
heir copied to clipboard
Generate a helper that configures OpenFHE crypto context based on the IR content
Right now the user must manually call functions like EvalMultKeyGen
if the IR contains EvalMult
, and EvalRotateKeyGen
with known rotation shifts (which requires looking at the generated code to determine), as well as SetMultiplicativeDepth
and SetPlaintextModulus
.
We should have a pass in the OpenFHE dialect that generates a function that configures the cryptoContext
appropriately.