llvm/test/CodeGen
Elena Demikhovsky 43afab3bdb Extended syntax of vector version of getelementptr instruction.
The justification of this change is here: http://lists.cs.uiuc.edu/pipermail/llvmdev/2015-March/082989.html

According to the current GEP syntax, vector GEP requires that each index must be a vector with the same number of elements.

%A = getelementptr i8, <4 x i8*> %ptrs, <4 x i64> %offsets

In this implementation I let each index be or vector or scalar. All vector indices must have the same number of elements. The scalar value will mean the splat vector value.

(1) %A = getelementptr i8, i8* %ptr, <4 x i64> %offsets
or
(2) %A = getelementptr i8, <4 x i8*> %ptrs, i64 %offset

In all cases the %A type is <4 x i8*>

In the case (2) we add the same offset to all pointers.

The case (1) covers C[B[i]] case, when we have the same base C and different offsets B[i].

The documentation is updated.

http://reviews.llvm.org/D10496




git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@241788 91177308-0d34-0410-b5e6-96231b3b80d8
2015-07-09 07:42:48 +00:00
..
AArch64 Add more nvcasts 2015-07-07 23:13:18 +00:00
AMDGPU AMDGPU/SI: Add debugging subtarget feature for DS offsets 2015-07-06 16:01:58 +00:00
ARM Fix test case to unbreak build. 2015-07-07 14:45:12 +00:00
BPF
CPP
Generic llc: Add a 'run-pass' option. 2015-07-06 17:44:26 +00:00
Hexagon [Hexagon] Implement commoning of GetElementPtr instructions 2015-07-08 19:22:28 +00:00
Inputs
Mips
MIR MIR Serialization: Serialize the 'undef' register machine operand flag. 2015-07-08 23:58:31 +00:00
MSP430
NVPTX Add tests for the NVPTXLowerAggrCopies pass. 2015-07-08 21:29:28 +00:00
PowerPC Add missing builtins to the PPC back end for ABI compliance (vol. 2) 2015-07-05 06:03:51 +00:00
SPARC [SPARC] Cleanup handling of the Y/ASR registers. 2015-07-08 16:25:12 +00:00
SystemZ
Thumb
Thumb2
WebAssembly [WebAssembly] Create a CodeGen unittest directory. 2015-07-06 23:14:57 +00:00
WinEH [SEH] Ensure that empty __except blocks have their own BB 2015-07-08 18:08:52 +00:00
X86 Extended syntax of vector version of getelementptr instruction. 2015-07-09 07:42:48 +00:00
XCore