[LLVMdev] Vectors in structures

Renato Golin rengolin at systemcall.org
Mon Sep 27 02:58:49 PDT 2010


On 22 September 2010 03:43, Bob Wilson <bob.wilson at apple.com> wrote:
> But regardless they are still structures, right?  What does it mean for them to map onto other types?  Is the parser supposed to treat them as if they _were_ those other types?  If so, I think you need to define a type system for those fundamental vector types.  I had read those statements to say something about the data types used in the generated code.

Hi Bob,

Just tested with plain vectors and LLVM's back-end seems to get them
all right. Plain instructions (add, mul, sub) and intrinsics (adds,
subs, muls). Haven't seen any compatibility issues so far, not to
mention that the IR is a fifth of what Clang generates... ;)


-- 
cheers,
--renato

http://systemcall.org/

Reclaim your digital rights, eliminate DRM, learn more at
http://www.defectivebydesign.org/what_is_drm




More information about the llvm-dev mailing list