llvm-project/llvm/test/Transforms/SROA
Matt Arsenault 3c1fc768ed Allow DataLayout to specify addrspace for allocas.
LLVM makes several assumptions about address space 0. However,
alloca is presently constrained to always return this address space.
There's no real way to avoid using alloca, so without this
there is no way to opt out of these assumptions.

The problematic assumptions include:
- That the pointer size used for the stack is the same size as
  the code size pointer, which is also the maximum sized pointer.

- That 0 is an invalid, non-dereferencable pointer value.

These are problems for AMDGPU because alloca is used to
implement the private address space, which uses a 32-bit
index as the pointer value. Other pointers are 64-bit
and behave more like LLVM's notion of generic address
space. By changing the address space used for allocas,
we can change our generic pointer type to be LLVM's generic
pointer type which does have similar properties.

llvm-svn: 299888
2017-04-10 22:27:50 +00:00
..
address-spaces.ll
alignment.ll
alloca-address-space.ll Allow DataLayout to specify addrspace for allocas. 2017-04-10 22:27:50 +00:00
basictest.ll Add address space mangling to lifetime intrinsics 2017-04-10 20:18:21 +00:00
big-endian.ll
dbg-single-piece.ll [DIExpression] Introduce a dedicated DW_OP_LLVM_fragment operation 2016-12-05 18:04:47 +00:00
fca.ll
mem-par-metadata-sroa.ll Fix revision 281960 2016-09-22 07:56:23 +00:00
phi-and-select.ll
ppcf128-no-fold.ll
pr26972.ll Add address space mangling to lifetime intrinsics 2017-04-10 20:18:21 +00:00
preserve-nonnull.ll Preserve nonnull metadata on Loads through SROA & mem2reg. 2017-03-22 19:16:39 +00:00
slice-order-independence.ll
slice-width.ll
vector-conversion.ll
vector-lifetime-intrinsic.ll Add address space mangling to lifetime intrinsics 2017-04-10 20:18:21 +00:00
vector-promotion.ll
vectors-of-pointers.ll