[llvm] r192361 - Implement AArch64 vector load/store multiple N-element structure class SIMD(lselem).

NAKAMURA Takumi geek4civic at gmail.com
Tue Nov 19 10:00:01 PST 2013


2013/10/11 Hao Liu <Hao.Liu at arm.com>:
> Author: haoliu
> Date: Thu Oct 10 12:00:52 2013
> New Revision: 192361
>
> URL: http://llvm.org/viewvc/llvm-project?rev=192361&view=rev
> Log:
> Implement AArch64 vector load/store multiple N-element structure class SIMD(lselem).
> Including following 14 instructions:
> 4 ld1 insts: load multiple 1-element structure to sequential 1/2/3/4 registers.
> ld2/ld3/ld4: load multiple N-element structure to sequential N registers (N=2,3,4).
> 4 st1 insts: store multiple 1-element structure from sequential 1/2/3/4 registers.
> st2/st3/st4: store multiple N-element structure from sequential N registers (N = 2,3,4).

> Modified: llvm/trunk/lib/Target/AArch64/Utils/AArch64BaseInfo.h
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AArch64/Utils/AArch64BaseInfo.h?rev=192361&r1=192360&r2=192361&view=diff
> ==============================================================================
> --- llvm/trunk/lib/Target/AArch64/Utils/AArch64BaseInfo.h (original)
> +++ llvm/trunk/lib/Target/AArch64/Utils/AArch64BaseInfo.h Thu Oct 10 12:00:52 2013
> @@ -306,6 +306,50 @@ namespace A64SE {
>      };
>  }
>
> +namespace A64Layout {
> +    enum VectorLayout {
> +        Invalid = -1,
> +        _8B,
> +        _4H,
> +        _2S,
> +        _1D,
> +
> +        _16B,
> +        _8H,
> +        _4S,
> +        _2D
> +    };
> +}

You should not use leading underscore. It is reserved by implementer
of compilers and libraries.

FYI, see also error log;
http://bb.pgr.jp/builders/clang-3stage-cygwin/builds/1316/steps/make_quick_again/logs/stdio

llvm/lib/Target/AArch64/Utils/AArch64BaseInfo.h:324:9: error: expected '}'
        _B,
        ^
/usr/include/ctype.h:40:12: note: expanded from macro '_B'
#define _B      0200
                ^



More information about the llvm-commits mailing list