diff options
author | Anastasia Stulova <anastasia.stulova@arm.com> | 2017-01-27 15:11:34 +0000 |
---|---|---|
committer | Anastasia Stulova <anastasia.stulova@arm.com> | 2017-01-27 15:11:34 +0000 |
commit | af0a7bbbe2ab749b08a78e6095d573e2ab23f4be (patch) | |
tree | 5d2f959991720eb2187d511c2da3b2cb4476af7d /llvm/lib/Bitcode/Reader/MetadataLoader.cpp | |
parent | 9e962add708d450230cfa2d754082f1eaf95a2ec (diff) | |
download | llvm-af0a7bbbe2ab749b08a78e6095d573e2ab23f4be.zip llvm-af0a7bbbe2ab749b08a78e6095d573e2ab23f4be.tar.gz llvm-af0a7bbbe2ab749b08a78e6095d573e2ab23f4be.tar.bz2 |
[OpenCL] Add missing address spaces in IR generation of blocks
Modify ObjC blocks impl wrt address spaces as follows:
- keep default private address space for blocks generated
as local variables (with captures);
- add global address space for global block literals (no captures);
- make the block invoke function and enqueue_kernel prototype with
the generic AS block pointer parameter to accommodate both
private and global AS cases from above;
- add block handling into default AS because it's implemented as
a special pointer type (BlockPointer) in the frontend and therefore
it is used as a pointer everywhere. This is also needed to accommodate
both private and global AS blocks for the two cases above.
- removes ObjC RT specific symbols (NSConcreteStackBlock and
NSConcreteGlobalBlock) in the OpenCL mode.
Review: https://reviews.llvm.org/D28814
llvm-svn: 293286
Diffstat (limited to 'llvm/lib/Bitcode/Reader/MetadataLoader.cpp')
0 files changed, 0 insertions, 0 deletions