[all-commits] [llvm/llvm-project] a29aa4: [OpenCL] Move addr space deduction to Sema.
Anastasia Stulova via All-commits
all-commits at lists.llvm.org
Wed Nov 27 04:45:05 PST 2019
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: a29aa47106205ec95c12e0ebac4260c5de878a6a
https://github.com/llvm/llvm-project/commit/a29aa47106205ec95c12e0ebac4260c5de878a6a
Author: Anastasia Stulova <anastasia.stulova at arm.com>
Date: 2019-11-27 (Wed, 27 Nov 2019)
Changed paths:
M clang/include/clang/AST/Type.h
M clang/include/clang/Sema/Sema.h
M clang/lib/AST/Expr.cpp
M clang/lib/Sema/SemaDecl.cpp
M clang/lib/Sema/SemaTemplateInstantiate.cpp
M clang/lib/Sema/SemaTemplateInstantiateDecl.cpp
M clang/lib/Sema/SemaType.cpp
M clang/lib/Sema/TreeTransform.h
M clang/test/SemaOpenCL/event_t.cl
M clang/test/SemaOpenCL/invalid-block.cl
M clang/test/SemaOpenCL/invalid-pipes-cl2.0.cl
M clang/test/SemaOpenCL/sampler_t.cl
M clang/test/SemaOpenCLCXX/address-space-deduction.cl
A clang/test/SemaOpenCLCXX/addrspace-auto.cl
M clang/test/SemaOpenCLCXX/restricted.cl
Log Message:
-----------
[OpenCL] Move addr space deduction to Sema.
In order to simplify implementation we are moving add space
deduction into Sema while constructing variable declaration
and on template instantiation. Pointee are deduced to generic
addr space during creation of types.
This commit also
- fixed addr space dedution for auto type;
- factors out in a separate helper function OpenCL specific
logic from type diagnostics in var decl.
Tags: #clang
Differential Revision: https://reviews.llvm.org/D65744
More information about the All-commits
mailing list