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

Leon Sit wing1127aishi at gmail.com
Wed Dec 15 10:10:13 PST 2010


To state my objective again because I was unclear about it. I want to write
a interpretor/compiler that can handles mathematical vector/matrix with
linear algebra operation on llvm. Something like matlab/R. I am thinking at
a higher level like performing type, and shape inference on matrix/vector
type, unrolling the inner loop of matrix operation of full algebraic
expression instead of computing the terms eagerly. Do people think llvm is
suitable for this context?

Thanks.

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

> On Dec 15, 2010, at 9:08 AM, Leon Sit wrote:
> > When you say vector in GCC, do you mean vector in the mathematical sense
> or the low level array sense?
>
> In the approximately mathematical sense of "the sort of object manipulated
> by a processor with vector extensions", i.e. a generally small, fixed-size
> tuple of integer or floating-point element type.  I don't mean the C++
> resizable-array type.
>
> John.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20101215/b57c6d06/attachment.html>


More information about the llvm-dev mailing list