<div dir="ltr">Hi <span style="font-size:12.8px">Matthias,</span><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">Thanks a lot for the explanation. </span></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Aug 11, 2016 at 11:45 AM, Matthias Braun <span dir="ltr"><<a href="mailto:mbraun@apple.com" target="_blank">mbraun@apple.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Yes the test-suite can be run without lnt (you can always just look at the LNT logfiles to see what commands it is running and run those yourself).<br>
<br>
Currently I would recommend using the cmake/lit version of the test-suite. You typically do something like:<br>
<br>
mkdir build && cd build<br>
cmake -GNinja -DCMAKE_C_COMPILER=/path/to/<wbr>my/clang -DTEST_SUITE_ARCH_FLAGS="-arch arm64" /path/to/test-suite<br>
ninja      # to build the benchmarks<br>
llvm-lit   # to run the benchmarks<br>
<br>
You should check "ccmake"/"cmake -LA" to learn about the available options as well as llvm-lit. You can either use llvm-lit from an llvm build or use the pypy packaged version (pip install lit). The cmake/lit version has no support to run custom backends through llc at the moment, you need to have a clang version that accepts -arch XXX for your target.<br></blockquote><div>Sorry I didn't explain well. Here I want to use testsuite to test a customized compilation flow like:</div><div><br></div><div>clang -> opt-> <some other optimization tool> -> llc.</div><div><br></div><div>Is this possible by changing some of the makefile of llvm testsuite? </div><div><br></div><div>Thanks </div><div>Hongbin</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
- Matthias<br>
<div><div class="h5"><br>
> On Aug 10, 2016, at 7:47 PM, Hongbin Zheng via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>> wrote:<br>
><br>
> Hi llvm-dev,<br>
><br>
> Are we still able to run llvm test-suite without LNT?<br>
><br>
> Also, is there any example of configuring test-suite to run against 3rd party backend rather than llc?<br>
><br>
><br>
> Thanks<br>
> Hongbin<br>
</div></div>> ______________________________<wbr>_________________<br>
> LLVM Developers mailing list<br>
> <a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a><br>
> <a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/llvm-dev</a><br>
<br>
</blockquote></div><br></div></div>