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

Find a way to write tests for asserting certain LLVM output #781

Open
yorickpeterse opened this issue Nov 29, 2024 · 0 comments
Open

Find a way to write tests for asserting certain LLVM output #781

yorickpeterse opened this issue Nov 29, 2024 · 0 comments
Labels
compiler Changes related to the compiler

Comments

@yorickpeterse
Copy link
Collaborator

As we start adding LLVM attributes, enabling optimizations and so on, it would be nice if we could include a set of tests that assert that given Inko source code A we get LLVM output B.

While we have the ability to dump the LLVM IR, the IR itself is incredibly noisy and prone to random unrelated changes such that I suspect we'll run into frequent random test failures. We need something more stable, such that the tests only fail if in fact the output is different. I'm not yet sure what that something would be.

@yorickpeterse yorickpeterse added the compiler Changes related to the compiler label Nov 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler Changes related to the compiler
Projects
None yet
Development

No branches or pull requests

1 participant