Leon Sit
2010-Dec-15 16:37 UTC
[LLVMdev] example of language with vector as first class type
Hi All 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? Thanks Leon -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20101215/92febead/attachment.html>
John McCall
2010-Dec-15 17:06 UTC
[LLVMdev] example of language with vector as first class type
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.
Leon Sit
2010-Dec-15 17:08 UTC
[LLVMdev] example of language with vector as first class type
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>
Duncan Sands
2010-Dec-15 17:23 UTC
[LLVMdev] example of language with vector as first class type
Hi Leon,> 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?llvm-gcc and dragonegg support Ada which has first class vector and matrix types. They can have variable size. Ciao, Duncan.
Cyrille Berger Skott
2010-Dec-15 17:23 UTC
[LLVMdev] example of language with vector as first class type
Hi, On Wednesday 15 December 2010, 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?There is a llvm backend in freemat (see http://freemat- blog.blogspot.com/2008/02/why-jit-how-to-jit.html) and I think there was one developed for octave (I will let you google for that :) ). -- Cyrille Berger Skott
Possibly Parallel Threads
- [LLVMdev] example of language with vector as first class type
- [LLVMdev] example of language with vector as first class type
- [LLVMdev] example of language with vector as first class type
- [LLVMdev] example of language with vector as first class type
- No subject