1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 19:12:56 +02:00
llvm-mirror/test
Matt Arsenault 204d4c1d7b 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
..
Analysis Add address space mangling to lifetime intrinsics 2017-04-10 20:18:21 +00:00
Assembler Allow DataLayout to specify addrspace for allocas. 2017-04-10 22:27:50 +00:00
Bindings
Bitcode Bitcode: Do not create FNENTRYs for aliases of functions. 2017-04-06 19:39:24 +00:00
BugPoint
CodeGen Add address space mangling to lifetime intrinsics 2017-04-10 20:18:21 +00:00
DebugInfo [llvm-pdbdump] Display padding bytes on record layout 2017-04-10 19:33:29 +00:00
Examples
ExecutionEngine
Feature
FileCheck
Instrumentation Revert "[asan] Put ctor/dtor in comdat." 2017-04-10 20:36:36 +00:00
Integer
JitListener
LibDriver
Linker
LTO
MC AMDGPU: Fix crash when disassembling VOP3 mac 2017-04-10 17:58:06 +00:00
Object [llvm-ar] errors go on stderr and not on stdout. 2017-04-05 14:52:17 +00:00
ObjectYAML
Other
SymbolRewriter
TableGen [globalisel][tablegen] Fix patterns involving multiple ComplexPatterns. 2017-04-05 13:14:03 +00:00
ThinLTO/X86
tools [llvm-pdbdump] Display padding bytes on record layout 2017-04-10 19:33:29 +00:00
Transforms Allow DataLayout to specify addrspace for allocas. 2017-04-10 22:27:50 +00:00
Unit
Verifier Verifier: Check some amdgpu calling convention restrictions 2017-04-04 18:43:11 +00:00
YAMLParser
.clang-format
CMakeLists.txt
lit.cfg
lit.site.cfg.in
TestRunner.sh