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

Introduce IR frontend #938

Merged
merged 1 commit into from
Jan 12, 2022
Merged

Introduce IR frontend #938

merged 1 commit into from
Jan 12, 2022

Conversation

AlexDenisov
Copy link
Member

@AlexDenisov AlexDenisov commented Jan 10, 2022

This PR introduces an IR Frontend: a shared library that can be directly integrated into the build system.
Example:

> clang++ -fexperimental-new-pass-manager -fpass-plugin=/usr/lib/mull-ir-frontend-12 main.cpp
> mull-runner-12 a.out # a.out has all the mutations

Notes:

  • it doesn't work with Clang 8 (and earlier)
  • Clang 9/10/11 requires optimization level to be not -O0 (e.g. -O1, -O2). Any newer version of Clang work without optimizations as well
  • with the plugin in place we can deprecate and remove mull-cxx, thus simplifying Mull
  • most of the tests were extended to replicate mull-cxx behaviour

TODO:

  • rewrite Hacking on Mull doc
  • rewrite the tutorials to use the new approach
  • add a deprecation notice to the mull-cxx
  • add docs for the configuration

@AlexDenisov AlexDenisov merged commit ff41302 into main Jan 12, 2022
@AlexDenisov AlexDenisov deleted the alexdenisov/ir-frontend branch January 12, 2022 19:40
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