[llvm-dev] Testing an LLVM pass

Arnaud De Grandmaison via llvm-dev llvm-dev at lists.llvm.org
Fri Jan 22 02:11:01 PST 2016


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


More information about the llvm-dev mailing list