llvm-6502/lib
Tom Stellard 425b76c231 TargetLowering: Add getVectorIdxTy() function v2
This virtual function can be implemented by targets to specify the type
to use for the index operand of INSERT_VECTOR_ELT, EXTRACT_VECTOR_ELT,
INSERT_SUBVECTOR, EXTRACT_SUBVECTOR.  The default implementation returns
the result from TargetLowering::getPointerTy()

The previous code was using TargetLowering::getPointerTy() for vector
indices, because this is guaranteed to be legal on all targets.  However,
using TargetLowering::getPointerTy() can be a problem for targets with
pointer sizes that differ across address spaces.  On such targets,
when vectors need to be loaded or stored to an address space other than the
default 'zero' address space (which is the address space assumed by
TargetLowering::getPointerTy()), having an index that
is a different size than the pointer can lead to inefficient
pointer calculations, (e.g. 64-bit adds for a 32-bit address space).

There is no intended functionality change with this patch.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187748 91177308-0d34-0410-b5e6-96231b3b80d8
2013-08-05 22:22:01 +00:00
..
Analysis Minor address space code simplification. 2013-08-03 01:03:12 +00:00
AsmParser
Bitcode
CodeGen TargetLowering: Add getVectorIdxTy() function v2 2013-08-05 22:22:01 +00:00
DebugInfo
ExecutionEngine LLVM Interpreter: This patch implements vector support for cast operations (zext, sext, uitofp, sitofp, trunc, fpext, fptosi, fptrunc, bitcast) and shift operations (shl, ashr, lshr) for integer and floating point data types. 2013-08-05 12:17:06 +00:00
IR Add a AttributeSetImpl::dump function. 2013-08-02 22:34:30 +00:00
IRReader
Linker
MC AsmParser: Store MacroLikeBodies on the side so they don't get leaked. 2013-08-04 09:06:29 +00:00
Object MachObjectFile: Don't leak on error. 2013-08-03 22:16:37 +00:00
Option Option parsing: recognize the special -- token 2013-08-02 21:20:27 +00:00
Support Introduce Regex::isLiteralERE function. 2013-08-05 17:47:59 +00:00
TableGen
Target Silencing an MSVC11 type conversion warning. 2013-08-05 13:47:03 +00:00
Transforms Introduce an optimisation for special case lists with large numbers of literal entries. 2013-08-05 17:48:04 +00:00
CMakeLists.txt
LLVMBuild.txt
Makefile