[llvm-dev] Testing End-To-End Functionality of Specific Optimization

Sean Silva via llvm-dev llvm-dev at lists.llvm.org
Wed Jan 3 20:17:09 PST 2018


Typically this would be tested alongside the runtime component in
compiler-rt.
For example, PGO instrumentation has its "end-to-end" tests in
https://github.com/llvm-mirror/compiler-rt/tree/master/test/profile

-- Sean Silva

On Tue, Jan 2, 2018 at 11:16 AM, Eli Davis via llvm-dev <
llvm-dev at lists.llvm.org> wrote:

> Hello!
>
> I am writing an instrumentation pass using LLVM. I have unit tests using
> llvm-lit in the style of the tests in llvm/test to make sure the IR changes
> show up in the correct place. I would also like to have some end-to-end
> tests that start from a .c file, compile the program, run it, and check the
> output.
>
> I imagine I could do this as a test in the same style, but I'm wondering
> if that's the llvm-correct way of doing it. Can anyone advise?
>
> Thank you!
>
> Eli
>
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20180103/7a689e75/attachment.html>


More information about the llvm-dev mailing list