[all-commits] [llvm/llvm-project] 32b994: [OpenCL] Defines helper function for OpenCL defaul...
Justas Janickas via All-commits
all-commits at lists.llvm.org
Tue Sep 21 07:12:56 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 32b994bca66641cdac8586f25315daf349921ebc
https://github.com/llvm/llvm-project/commit/32b994bca66641cdac8586f25315daf349921ebc
Author: Justas Janickas <Justas.Janickas at arm.com>
Date: 2021-09-21 (Tue, 21 Sep 2021)
Changed paths:
M clang/include/clang/AST/ASTContext.h
M clang/lib/AST/Expr.cpp
M clang/lib/Sema/Sema.cpp
M clang/lib/Sema/SemaTemplateDeduction.cpp
M clang/lib/Sema/SemaType.cpp
Log Message:
-----------
[OpenCL] Defines helper function for OpenCL default address space
Helper function `getDefaultOpenCLPointeeAddrSpace()` introduced to
`ASTContext` class. It returns default OpenCL address space
depending on language version and enabled features. If generic
address space is supported, the helper function returns value
`LangAS::opencl_generic`. Otherwise, value `LangAS::opencl_private`
is returned. Code refactoring changes performed in several suitable
places.
Differential Revision: https://reviews.llvm.org/D109874
More information about the All-commits
mailing list