[llvm-dev] Testing an LLVM pass
Wehrli Johan via llvm-dev
llvm-dev at lists.llvm.org
Fri Jan 22 04:35:04 PST 2016
Hi all,
Thank you for the answers, I will check that.
Greetings,
Johan
> On 22 Jan 2016, at 11:11, Arnaud De Grandmaison <Arnaud.DeGrandmaison at arm.com> wrote:
>
> For testing your pass, you might want to have a look at the tutorial presented by Serge (and Adrien) at the US dev meeting:
> http://www.llvm.org/devmtg/2015-10/slides/GueltonGuinet-BuildingTestingDebuggingASimpleOutOfTreePass.pdf
>
> Cheers,
> --
> Arnaud
>
>> -----Original Message-----
>> From: llvm-dev [mailto:llvm-dev-bounces at lists.llvm.org] On Behalf Of serge
>> guelton via llvm-dev
>> Sent: 22 January 2016 10:06
>> To: Wehrli Johan
>> Cc: llvm-dev at lists.llvm.org
>> Subject: Re: [llvm-dev] Testing an LLVM pass
>>
>> On Fri, Jan 22, 2016 at 09:55:46AM +0000, Wehrli Johan via llvm-dev wrote:
>>> Hi all,
>>>
>>> I’m currently writing an LLVM function pass and I want to know how can I
>> test it?
>>>
>>> Currently, I try to compile some crypto library and check if the test suite are
>> working but I don’t think this is very efficient.
>>>
>>> Does anyone has a leads?
>>
>> Hi there,
>>
>> what we do here at Quarkslab is a combination of:
>>
>> - unittesting the pass (through lit)
>> - fuzzing the passes (through csmith & through various optimization flag
>> combination)
>> - running the test suite of various open source project compiled with
>> our pass activated (as you do)
>>
>> hope it helps,
>>
>> serge
>> _______________________________________________
>> LLVM Developers mailing list
>> llvm-dev at lists.llvm.org
>> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 842 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160122/6371cae5/attachment.sig>
More information about the llvm-dev
mailing list