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

Support preserving attributes in various lowering #1426

Open
ZenithalHourlyRate opened this issue Feb 18, 2025 · 0 comments · May be fixed by #1430
Open

Support preserving attributes in various lowering #1426

ZenithalHourlyRate opened this issue Feb 18, 2025 · 0 comments · May be fixed by #1430

Comments

@ZenithalHourlyRate
Copy link
Collaborator

For debugging, it is especially useful to preserve some attribute during lowering, like comparing the noise analysis result with real bound that can only be obtained in runtime in debug function

(validate-noise annotate the result)
arith.add {bound = 50}
(lowered to)
bgv.add {bound = 50}
(lowered to)
lwe.radd {bound = 50}
(then passed to the lwe debug function)

Technically, we need to copy the attribute in all the lowering code.

This generally falls in the category of Attribute (lifetime) management. Related issues are #1414, #1415

There is also an issue related to refactoring secret.generic op lowering #1413. I might make a quick change to these lowerings if these refactoring is not on the way now.

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 a pull request may close this issue.

1 participant