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

Experiment with comparison branch splitting LLVM pass #18

Open
jryans opened this issue Aug 28, 2019 · 0 comments
Open

Experiment with comparison branch splitting LLVM pass #18

jryans opened this issue Aug 28, 2019 · 0 comments

Comments

@jryans
Copy link
Contributor

jryans commented Aug 28, 2019

Based on this article we could implement a LLVM pass that breaks up comparison instructions into byte comparison instructions.

The difficulty here is how to get this pass into JFS's compilation pipeline. I don't really want to use a modified version of LLVM so ideally we'd build this as a clang or opt plug-in. If we do this we can either

  • Have Clang run the pass before coverage instrumentation is added but as late as possible.
  • Just emit LLVM IR with clang, run the passes we want using the opt tool and then run clang again on the object file to link everything together.

... or another idea?

A question is also whether we want to perform transformation to the runtime library too.

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

No branches or pull requests

1 participant