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

chore: mark div/rem instructions as .impure, with Id monad #383

Open
tobiasgrosser opened this issue Jun 6, 2024 · 0 comments
Open

chore: mark div/rem instructions as .impure, with Id monad #383

tobiasgrosser opened this issue Jun 6, 2024 · 0 comments
Assignees

Comments

@tobiasgrosser
Copy link
Collaborator

This lets us say the following:

We accurately model all semantics in LLVM. For operations that are side-effectful (divisions and remainders), we mark them as such in our framework, which ensures that the peephole rewrite never rewrites such operations. We choose the side effecting monad to be $Id$, thereby effectively freezing undefined behaviour into poison, which is a safe semantic refinement to do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants