<div dir="ltr">The only precedent I have seen in recent years for shell scripts is the (absolutely insanely amazingly well-written) utils/TableGen/tdtags. <div><br></div><div>Ignoring the issue of whether this kind of tool belongs in the repo, IMO it would be nice if you used tdtags as a "template" for this script; there's a large amount of shell-fu (not clever "tricks", but actual "how to make a robust, readable, portable shell script"-fu) in there that you will want to imitate.<div>
<br></div><div><div>> LLVMHOME=/home/projects/llvm/upstream/llvm-trunk-build/Release+Asserts/bin</div><div>> SOPTS="-generate-ppc-fp128"</div><div>> TOPTS="-mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr7"</div>
<div><br></div><div>Hardcoding these seems a bit "wrong". Are there any reasonable defaults we can use? ((pwd, empty, host triple) for the three options, respectively, might be reasonable?). </div><div><br></div>
<div>-- Sean Silva</div><div><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jul 10, 2013 at 7:14 PM, Hal Finkel <span dir="ltr"><<a href="mailto:hfinkel@anl.gov" target="_blank">hfinkel@anl.gov</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">A few people have requested features; I've implemented them in this updated version (attached). Do you think this is worth putting in the repo somewhere?<br>

<br>
 -Hal<br>
<div><div class="h5"><br>
----- Original Message -----<br>
> Hi,<br>
><br>
> I wrote a small script in order to stress test llc using test cases<br>
> generated by llvm-stress. When it finds a case where llc seems to<br>
> have crashed, it greps the output for Assertion, LLVM ERROR, etc.,<br>
> removes things that look like hex numbers and ID numbers, and then<br>
> checksums the resulting text. In this way, it can automatically<br>
> categorize different bugs into different subdirectories.<br>
><br>
> I found this useful, and maybe you will too :)<br>
><br>
>  -Hal<br>
><br>
> --<br>
> Hal Finkel<br>
> Assistant Computational Scientist<br>
> Leadership Computing Facility<br>
> Argonne National Laboratory<br>
><br>
</div></div>> _______________________________________________<br>
> LLVM Developers mailing list<br>
> <a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
> <a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
<div class=""><div class="h5">><br>
<br>
--<br>
Hal Finkel<br>
Assistant Computational Scientist<br>
Leadership Computing Facility<br>
Argonne National Laboratory<br>
</div></div><br>_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
<br></blockquote></div><br></div></div></div></div>