diff options
author | Anastasia Stulova <anastasia.stulova@arm.com> | 2014-11-26 14:10:06 +0000 |
---|---|---|
committer | Anastasia Stulova <anastasia.stulova@arm.com> | 2014-11-26 14:10:06 +0000 |
commit | 2c8dcfbae60319053cc2e65388f294e8aaf52fc1 (patch) | |
tree | 72c718ef7b73b48f5be7009a977e0fb54736aef0 /clang/lib/AST/ASTContext.cpp | |
parent | c53ead03ced44970c461dbf24e7442e9ac310fd0 (diff) | |
download | bcm5719-llvm-2c8dcfbae60319053cc2e65388f294e8aaf52fc1.tar.gz bcm5719-llvm-2c8dcfbae60319053cc2e65388f294e8aaf52fc1.zip |
[OpenCL] Generic address space has been added in OpenCL v2.0.
To support it in the frontend, the following has been added:
- generic address space type attribute;
- documentation for the OpenCL address space attributes;
- parsing of __generic(generic) keyword;
- test code for the parser and diagnostics.
llvm-svn: 222831
Diffstat (limited to 'clang/lib/AST/ASTContext.cpp')
-rw-r--r-- | clang/lib/AST/ASTContext.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/clang/lib/AST/ASTContext.cpp b/clang/lib/AST/ASTContext.cpp index 1804c006476..a0b80174882 100644 --- a/clang/lib/AST/ASTContext.cpp +++ b/clang/lib/AST/ASTContext.cpp @@ -699,9 +699,10 @@ static const LangAS::Map *getAddressSpaceMap(const TargetInfo &T, 1, // opencl_global 2, // opencl_local 3, // opencl_constant - 4, // cuda_device - 5, // cuda_constant - 6 // cuda_shared + 4, // opencl_generic + 5, // cuda_device + 6, // cuda_constant + 7 // cuda_shared }; return &FakeAddrSpaceMap; } else { |