Recently I’ve considering using LIT for my benchmark testing framework, and the only reference for LLVM-LIT is the man page and some READMEs. I don’t find any documentations on config, which seems to be quite important to the tool. If I use lit outside LLVM source tree and use on my own test files, LIT marks them as ‘unresolved’.
So are there any documentations I can find about using LIT for my own benchmarks? Thanks in advance.
I ran into a similar problem a while ago and fixed it mostly by taking bits from the existing lit.cfg and some info from the LIT command guide .
From this I found that this is a somewhat minimal lit.cfg could look like:
You can have a look to the lit config we setup for our llvm dev tutorial last year:
It's slightly more complicated than the one above, but there's a decent
ratio of comments in it too
So are there any documentations I can find about using LIT for my own
benchmarks? Thanks in advance.
I use lit for several non LLVM projects. Hopefully these will be useful to you.
and also for KLEE
You can also take a look at lit's own test cases too
I wish I had time to write good documentation for it because its a
fantastic tool but alas I dont.
Thanks very much for the pointers. This is very helpful and I’ll keep researching them.