Matt Arsenault
e0b3c335a2
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@299888 91177308-0d34-0410-b5e6-96231b3b80d8
2017-04-10 22:27:50 +00:00
..
2014-08-19 21:08:27 +00:00
2014-08-19 21:08:27 +00:00
2014-08-19 21:08:27 +00:00
2014-08-19 21:08:27 +00:00
2015-02-27 21:17:42 +00:00
2014-08-19 21:08:27 +00:00
2014-08-19 21:08:27 +00:00
2014-08-19 21:08:27 +00:00
2015-04-16 23:24:18 +00:00
2014-08-19 21:08:27 +00:00
2014-08-19 21:08:27 +00:00
2015-03-13 18:20:45 +00:00
2015-03-13 18:20:45 +00:00
2015-03-13 18:20:45 +00:00
2015-02-27 21:17:42 +00:00
2014-08-19 21:08:27 +00:00
2014-08-19 21:08:27 +00:00
2014-08-19 21:08:27 +00:00
2014-08-19 21:08:27 +00:00
2014-08-19 21:08:27 +00:00
2016-05-10 18:22:45 +00:00
2014-08-19 21:08:27 +00:00
2014-08-19 21:08:27 +00:00
2014-08-19 21:08:27 +00:00
2015-04-16 23:24:18 +00:00
2014-08-19 21:08:27 +00:00
2016-05-10 18:22:45 +00:00
2014-08-19 21:08:27 +00:00
2016-05-10 18:22:45 +00:00
2016-05-10 18:22:45 +00:00
2015-03-13 18:20:45 +00:00
2016-05-10 18:22:45 +00:00
2014-08-19 21:08:27 +00:00
2014-08-19 21:08:27 +00:00
2012-07-02 18:37:59 +00:00
2015-03-13 18:20:45 +00:00
2016-05-10 18:22:45 +00:00
2016-05-10 18:22:45 +00:00
2014-08-19 21:08:27 +00:00
2014-08-19 21:08:27 +00:00
2012-07-02 18:37:59 +00:00
2015-02-27 19:29:02 +00:00
2015-02-27 21:17:42 +00:00
2014-08-19 21:08:27 +00:00
2014-11-06 15:05:51 +00:00
2014-11-06 15:05:51 +00:00
2014-08-19 21:08:27 +00:00
2014-08-19 21:08:27 +00:00
2014-08-19 21:08:27 +00:00
2012-07-02 12:23:19 +00:00
2014-08-19 21:08:27 +00:00
2014-11-06 15:05:51 +00:00
2015-03-13 18:20:45 +00:00
2012-07-02 18:37:59 +00:00
2012-07-02 18:37:59 +00:00
2012-07-02 12:23:19 +00:00
2014-11-06 15:05:51 +00:00
2015-02-27 21:17:42 +00:00
2014-08-19 21:08:27 +00:00
2014-11-06 15:05:51 +00:00
2014-08-19 21:08:27 +00:00
2014-08-19 21:08:27 +00:00
2012-07-02 12:23:19 +00:00
2015-09-11 03:22:04 +00:00
2014-11-06 15:05:51 +00:00
2015-03-13 18:20:45 +00:00
2015-04-16 23:24:18 +00:00
2012-07-02 18:37:59 +00:00
2014-08-19 21:08:27 +00:00
2012-10-09 20:11:19 +00:00
2014-08-19 21:08:27 +00:00
2014-08-19 21:08:27 +00:00
2014-08-19 21:08:27 +00:00
2016-05-10 18:22:45 +00:00
2014-08-19 21:08:27 +00:00
2014-08-19 21:08:27 +00:00
2014-08-19 21:08:27 +00:00
2015-03-13 18:20:45 +00:00
2016-04-15 15:57:41 +00:00
2015-09-11 03:22:04 +00:00
2014-08-19 21:08:27 +00:00
2014-08-19 21:08:27 +00:00
2015-11-25 02:54:07 +00:00
2015-09-11 03:22:04 +00:00
2015-02-27 21:17:42 +00:00
2015-02-27 21:17:42 +00:00
2014-08-19 21:08:27 +00:00
2017-04-10 22:27:50 +00:00
2017-04-10 22:27:50 +00:00
2017-04-10 22:27:50 +00:00
2015-02-16 08:38:03 +00:00
2015-02-16 08:38:03 +00:00
2015-03-13 19:30:44 +00:00
2015-09-11 03:22:04 +00:00
2015-02-27 21:17:42 +00:00
2013-09-07 00:25:48 +00:00
2017-04-10 20:18:21 +00:00
2017-01-21 01:00:32 +00:00
2016-04-19 20:51:05 +00:00
2014-08-19 21:08:27 +00:00
2015-02-23 00:01:32 +00:00
2014-08-19 21:08:27 +00:00
2016-05-10 18:22:45 +00:00
2016-05-21 00:14:04 +00:00
2014-08-19 21:08:27 +00:00
2015-09-11 03:22:04 +00:00
2017-04-10 22:27:50 +00:00
2017-04-10 22:27:50 +00:00
2017-04-10 22:27:50 +00:00
2017-04-10 22:27:50 +00:00
2017-03-08 23:55:44 +00:00
2016-08-24 18:29:49 +00:00
2016-04-23 21:08:00 +00:00
2017-03-08 00:28:57 +00:00
2015-06-02 17:13:25 +00:00
2016-12-20 02:09:43 +00:00
2016-12-20 02:09:43 +00:00
2016-04-15 15:57:41 +00:00
2016-04-15 15:57:41 +00:00
2016-04-15 15:57:41 +00:00
2016-10-20 00:13:12 +00:00
2016-04-15 15:57:41 +00:00
2016-12-22 00:29:00 +00:00
2015-06-29 23:03:47 +00:00
2016-11-03 19:42:02 +00:00
2015-06-02 17:13:25 +00:00
2015-01-08 22:38:29 +00:00
2016-08-17 16:02:43 +00:00
2015-06-02 17:13:25 +00:00
2016-06-08 20:34:29 +00:00
2015-06-02 17:13:25 +00:00
2016-10-18 14:31:22 +00:00
2016-04-15 15:57:41 +00:00
2014-08-19 21:08:27 +00:00
2012-07-02 18:37:59 +00:00
2015-02-16 09:18:13 +00:00
2017-03-28 20:11:52 +00:00
2015-03-13 18:20:45 +00:00
2015-04-29 16:38:44 +00:00
2015-03-09 23:08:44 +00:00
2015-02-27 19:29:02 +00:00
2016-12-21 18:29:47 +00:00
2016-12-21 18:29:47 +00:00
2015-07-09 07:42:48 +00:00
2015-07-09 07:42:48 +00:00
2015-07-09 07:42:48 +00:00
2016-05-10 18:22:45 +00:00
2015-02-27 19:29:02 +00:00
2016-11-10 22:34:55 +00:00
2014-01-13 22:37:35 +00:00
2015-09-03 18:06:44 +00:00
2015-02-16 08:41:08 +00:00
2015-02-27 21:17:42 +00:00
2015-02-27 21:17:42 +00:00
2014-08-19 21:08:27 +00:00
2014-08-19 21:08:27 +00:00
2016-04-08 06:45:19 +00:00
2016-04-07 12:32:19 +00:00
2014-12-15 19:07:53 +00:00
2015-09-03 22:27:42 +00:00
2014-09-05 22:30:32 +00:00
2015-02-27 21:17:42 +00:00
2012-07-02 18:37:59 +00:00
2015-02-23 07:13:52 +00:00
2015-02-11 07:43:58 +00:00
2015-09-11 03:22:04 +00:00
2014-05-07 22:57:20 +00:00
2014-05-07 22:57:20 +00:00
2015-09-11 03:22:04 +00:00
2014-05-07 22:57:20 +00:00
2014-05-07 22:57:20 +00:00
2012-07-02 18:37:59 +00:00
2014-01-22 19:21:33 +00:00
2016-05-10 18:22:45 +00:00
2012-07-02 18:37:59 +00:00
2015-09-11 03:22:04 +00:00
2014-12-09 18:33:57 +00:00
2014-06-27 18:19:56 +00:00
2015-01-06 22:55:16 +00:00
2014-12-10 01:17:08 +00:00
2014-12-10 01:17:08 +00:00
2014-12-10 01:17:08 +00:00
2014-12-10 01:17:08 +00:00
2014-12-10 01:17:08 +00:00
2014-12-10 01:38:28 +00:00
2014-12-10 01:38:28 +00:00
2014-12-10 01:38:28 +00:00
2014-12-10 01:38:28 +00:00
2014-12-10 02:36:41 +00:00
2014-12-10 02:36:41 +00:00
2014-12-10 02:36:41 +00:00
2014-12-10 02:36:41 +00:00
2015-02-11 09:13:09 +00:00
2015-02-16 05:41:53 +00:00
2015-02-16 05:41:53 +00:00
2015-02-16 05:41:53 +00:00
2015-02-16 05:41:55 +00:00
2015-03-02 06:00:02 +00:00
2015-03-02 06:33:51 +00:00
2015-03-02 06:33:51 +00:00
2015-03-02 09:34:59 +00:00
2015-03-02 09:35:03 +00:00
2015-03-02 09:35:03 +00:00
2017-04-10 22:27:50 +00:00
2015-02-16 06:04:53 +00:00
2016-03-31 23:56:58 +00:00
2015-08-03 17:26:41 +00:00
2015-08-03 17:26:41 +00:00
2015-08-03 17:26:41 +00:00
2015-08-03 17:26:41 +00:00
2015-08-03 17:26:41 +00:00
2015-06-02 17:13:25 +00:00
2015-06-02 17:13:25 +00:00
2015-06-02 17:13:25 +00:00
2015-06-02 17:13:25 +00:00
2015-06-02 17:13:25 +00:00
2015-06-02 17:13:25 +00:00
2015-06-02 17:13:25 +00:00
2015-06-02 17:13:25 +00:00
2015-06-02 17:13:25 +00:00
2015-06-02 17:13:25 +00:00
2015-06-02 17:13:25 +00:00
2015-06-02 17:13:25 +00:00
2015-06-02 17:13:25 +00:00
2015-06-02 17:13:25 +00:00
2015-06-02 17:13:25 +00:00
2015-06-02 17:13:25 +00:00
2015-06-02 17:13:25 +00:00
2015-06-02 17:13:25 +00:00
2015-07-31 18:58:39 +00:00
2015-07-31 18:58:39 +00:00
2015-07-31 18:58:39 +00:00
2015-06-02 17:13:25 +00:00
2015-06-02 17:13:25 +00:00
2015-06-02 17:13:25 +00:00
2015-06-02 17:13:25 +00:00
2015-06-02 17:13:25 +00:00
2015-06-02 17:13:25 +00:00
2015-06-02 17:13:25 +00:00
2015-06-02 17:13:25 +00:00
2015-06-02 17:13:25 +00:00
2015-08-28 20:26:49 +00:00
2015-06-02 17:13:25 +00:00
2015-06-02 17:13:25 +00:00
2015-06-02 17:13:25 +00:00
2015-06-02 17:13:25 +00:00
2015-06-02 17:13:25 +00:00
2015-06-02 17:13:25 +00:00
2015-06-02 17:13:25 +00:00
2015-06-02 17:13:25 +00:00
2015-08-31 21:36:14 +00:00
2012-10-11 00:38:25 +00:00
2015-09-11 03:22:04 +00:00
2015-04-29 16:38:44 +00:00
2015-04-29 16:38:44 +00:00
2015-04-29 16:38:44 +00:00
2015-04-29 16:38:44 +00:00
2015-02-27 19:29:02 +00:00
2015-02-27 19:29:02 +00:00
2016-05-10 18:22:45 +00:00
2015-09-03 15:41:38 +00:00
2016-10-04 12:43:46 +00:00
2015-03-02 05:25:09 +00:00
2015-06-17 20:52:32 +00:00
2015-02-27 21:17:42 +00:00
2015-02-27 21:17:42 +00:00
2016-04-06 02:06:40 +00:00
2014-12-15 19:07:53 +00:00
2014-12-15 19:07:53 +00:00
2014-12-15 19:07:53 +00:00
2014-12-11 01:34:46 +00:00
2014-12-15 19:07:53 +00:00
2014-12-15 19:07:53 +00:00
2014-12-15 19:07:53 +00:00
2014-12-15 19:07:53 +00:00
2014-12-10 02:10:35 +00:00
2014-12-10 00:43:17 +00:00
2015-06-15 22:16:51 +00:00
2015-06-15 22:16:51 +00:00
2015-01-13 21:10:44 +00:00
2015-09-03 16:18:32 +00:00
2014-08-19 21:30:15 +00:00
2014-08-19 21:30:15 +00:00
2014-08-19 21:30:15 +00:00
2014-08-19 21:30:15 +00:00
2014-08-19 21:30:15 +00:00
2014-08-19 21:30:15 +00:00
2014-08-19 21:30:15 +00:00
2014-08-19 21:30:15 +00:00
2014-08-19 21:30:15 +00:00
2014-08-19 21:30:15 +00:00
2015-09-11 03:22:04 +00:00
2014-08-19 21:30:15 +00:00
2015-09-11 03:22:04 +00:00
2015-09-11 03:22:04 +00:00
2015-09-11 03:22:04 +00:00
2015-09-11 03:22:04 +00:00
2015-09-11 03:22:04 +00:00
2014-08-19 21:30:15 +00:00
2015-01-14 18:25:45 +00:00
2016-06-14 21:01:22 +00:00
2016-10-04 12:43:46 +00:00
2016-06-21 23:42:48 +00:00
2015-03-15 00:45:51 +00:00
2015-04-29 16:38:44 +00:00
2016-06-21 23:42:48 +00:00
2016-04-06 02:06:40 +00:00
2014-08-19 21:08:27 +00:00
2015-04-16 23:24:18 +00:00
2015-04-16 23:24:18 +00:00
2015-04-16 23:24:18 +00:00
2014-12-15 19:07:53 +00:00
2016-03-25 00:56:13 +00:00
2015-02-27 21:17:42 +00:00
2015-09-11 03:22:04 +00:00
2014-05-07 22:57:20 +00:00
2014-05-07 22:57:20 +00:00
2015-09-11 03:22:04 +00:00
2014-05-07 22:57:20 +00:00
2014-05-07 22:57:20 +00:00
2014-08-19 21:08:27 +00:00
2014-12-09 19:10:03 +00:00
2016-03-30 22:17:28 +00:00
2016-03-30 18:15:08 +00:00
2014-08-19 21:08:27 +00:00
2015-11-11 21:57:16 +00:00
2014-08-19 21:08:27 +00:00
2015-11-25 02:54:07 +00:00
2015-01-06 22:55:16 +00:00
2015-02-27 21:17:42 +00:00
2015-03-10 06:34:57 +00:00
2015-03-13 18:20:45 +00:00
2015-09-11 03:22:04 +00:00
2014-08-19 21:08:27 +00:00
2016-05-10 18:22:45 +00:00
2014-08-19 21:08:27 +00:00
2014-08-19 21:08:27 +00:00
2014-08-19 21:08:27 +00:00