When you say vector in GCC, do you mean vector in the mathematical sense or the low level array sense?<div><br></div><div>Leon<br><br>
<br><br><div class="gmail_quote">On Wed, Dec 15, 2010 at 11:06 AM, John McCall <span dir="ltr"><<a href="mailto:rjmccall@apple.com">rjmccall@apple.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On Dec 15, 2010, at 8:37 AM, Leon Sit wrote:<br>
> Does anyone know any example compiler where it has vector/matrix as first class type like matlab using llvm? If not, does anyone have idea how that should be done on llvm?<br>
<br>
</div>Any GCC-compatible frontend — i.e. llvm-gcc, clang, or dragonegg — has vectors as a first-class type. I wouldn't exactly laud any of GCC's various vector extensions as a sterling example of good language design, but if you're just looking for demonstrations of how to generate vector IR, that's where I'd start.<br>
<font color="#888888"><br>
John.</font></blockquote></div><br></div>