[OpenCL] Enable address spaces for references in C++
authorAnastasia Stulova <anastasia.stulova@arm.com>
Fri, 16 Nov 2018 16:22:56 +0000 (16:22 +0000)
committerAnastasia Stulova <anastasia.stulova@arm.com>
Fri, 16 Nov 2018 16:22:56 +0000 (16:22 +0000)
commit04307941e2b16cd78347b90418204d84b584c49e
treedfb78277dc0ca94755a685eb50a059ddc42731a4
parentd12531677188252af597fbb2af4646cf2cbe25ed
[OpenCL] Enable address spaces for references in C++

Added references to the addr spaces deduction and enabled
CL2.0 features (program scope variables and storage class
qualifiers) to work in C++ mode too.

Fixed several address space conversion issues in CodeGen
for references.

Differential Revision: https://reviews.llvm.org/D53764

llvm-svn: 347059
clang/include/clang/Sema/Sema.h
clang/lib/AST/Expr.cpp
clang/lib/CodeGen/CGExpr.cpp
clang/lib/Sema/DeclSpec.cpp
clang/lib/Sema/SemaDecl.cpp
clang/lib/Sema/SemaExprCXX.cpp
clang/lib/Sema/SemaInit.cpp
clang/lib/Sema/SemaType.cpp
clang/test/CodeGenOpenCLCXX/address-space-deduction.cl [new file with mode: 0644]