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

Trying to use WhiteFox on LLVM optimizations #9

Open
zitongzhoueric opened this issue Oct 28, 2024 · 1 comment
Open

Trying to use WhiteFox on LLVM optimizations #9

zitongzhoueric opened this issue Oct 28, 2024 · 1 comment

Comments

@zitongzhoueric
Copy link

Hi I'm trying to use WhiteFox on LLVM optimizations.

Please correct me if I'm wrong, I don't seem to see the code that executes LLVM and refines prompts using its feedback? Can you provide some instructions on how to run Whitefox with feedback on LLVM?
My understanding is that python starcoder_gen.py --prompt-dir=Prompts/llvm/req2test --output-dir=starcoder-generated-llvm --num=... is one-shot and doesn't use any feedback?

Also there are only prompts for 21 LLVM optimizations in WhiteFox/Prompts/llvm/req2test. Is it possible to include the prompts for other Transform passes in https://llvm.org/docs/Passes.html that you have tested?

Thank you!

@YangChenyuan
Copy link
Member

Thanks for your interest in WhiteFox!

Can you provide some instructions on how to run Whitefox with feedback on LLVM?

Sure! First, you need to instrument the LLVM. I will upload the patch later.

In the meantime, you can use the pre-generated one-shot results from the req2test directory as the WhiteFox output for LLVM.

Also there are only prompts for 21 LLVM optimizations in WhiteFox/Prompts/llvm/req2test

I just uploaded all prompts for LLVM by PR #11

If you have any further questions, feel free to ask me!

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

2 participants