Displaying 2 results from an estimated 2 matches for "yourexample".
2010 Jul 05
0
[LLVMdev] How to test my pass
...s or bench-marks to test a pass. Please
> suggest accordingly.
Use the LLVM nightly test suite:
http://llvm.org/docs/TestingGuide.html#testsuiterun
Make a copy of an existing test like TEST.example.Makefile and modify it
to run 'opt -yourpass -time-passes -stats', then 'make TEST=yourexample
report' and read the report.raw.out it produces. Look for crashes first
and foremost, then look at how many times it actually modified the user
code, then finally make sure it didn't take show absurd compile-time
problems. Fix all the crashers and O(n^2) behaviour.
Now you're ready...
2010 Jul 05
3
[LLVMdev] How to test my pass
Hi there,
I have written a PRE pass using LLVM. How can I test my pass? Is
there any standard test-cases or bench-marks to test a pass. Please
suggest accordingly.
Regards,
Chayan