llvm-6502/lib/IR
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
..
AsmWriter.cpp Add a DIModule metadata node to the IR. 2015-06-29 23:03:47 +00:00
AttributeImpl.h
Attributes.cpp
AutoUpgrade.cpp Remove always-true comparison, NFC. 2015-07-03 20:12:01 +00:00
BasicBlock.cpp Revert "Revert r241570, it caused PR24053" 2015-07-07 18:49:41 +00:00
CMakeLists.txt
Comdat.cpp
ConstantFold.cpp
ConstantFold.h
ConstantRange.cpp
Constants.cpp Devirtualize Constant::replaceUsesOfWithOnConstant. 2015-06-24 18:55:24 +00:00
ConstantsContext.h
Core.cpp
DataLayout.cpp
DebugInfo.cpp Add a DIModule metadata node to the IR. 2015-06-29 23:03:47 +00:00
DebugInfoMetadata.cpp Add a DIModule metadata node to the IR. 2015-06-29 23:03:47 +00:00
DebugLoc.cpp
DiagnosticInfo.cpp
DiagnosticPrinter.cpp
DIBuilder.cpp DIBuilder: Don't rauw null pointers with empty arrays in finalize(). 2015-07-06 16:36:02 +00:00
Dominators.cpp
Function.cpp
GCOV.cpp
Globals.cpp Devirtualize Constant::replaceUsesOfWithOnConstant. 2015-06-24 18:55:24 +00:00
GVMaterializer.cpp
InlineAsm.cpp
Instruction.cpp Devirtualize Instruction::clone_impl 2015-06-24 20:22:23 +00:00
Instructions.cpp Add functions for adding and testing string attributes to CallInst. NFC. 2015-07-02 22:08:48 +00:00
IntrinsicInst.cpp
IRBuilder.cpp
IRPrintingPasses.cpp
LegacyPassManager.cpp
LLVMBuild.txt
LLVMContext.cpp
LLVMContextImpl.cpp
LLVMContextImpl.h Add a DIModule metadata node to the IR. 2015-06-29 23:03:47 +00:00
Makefile
Mangler.cpp Remove unused arguments and move ManglerPrefixTy to the implementation. 2015-06-23 14:11:09 +00:00
MDBuilder.cpp
Metadata.cpp
MetadataImpl.h
MetadataTracking.cpp
Module.cpp
module.modulemap
Operator.cpp
Pass.cpp
PassManager.cpp
PassRegistry.cpp
Statepoint.cpp
SymbolTableListTraitsImpl.h
Type.cpp
TypeFinder.cpp
Use.cpp
User.cpp
Value.cpp Devirtualize Constant::replaceUsesOfWithOnConstant. 2015-06-24 18:55:24 +00:00
ValueSymbolTable.cpp
ValueTypes.cpp
Verifier.cpp Extended syntax of vector version of getelementptr instruction. 2015-07-09 07:42:48 +00:00