[LLVMdev] example of language with vector as first class type

Leon Sit wing1127aishi at gmail.com
Wed Dec 15 09:08:25 PST 2010


When you say vector in GCC, do you mean vector in the mathematical sense or
the low level array sense?

Leon



On Wed, Dec 15, 2010 at 11:06 AM, John McCall <rjmccall at apple.com> wrote:

> On Dec 15, 2010, at 8:37 AM, Leon Sit wrote:
> > 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?
>
> 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.
>
> John.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20101215/00fbb194/attachment.html>


More information about the llvm-dev mailing list