llvm-project/clang/lib
Pekka Jaaskelainen 2a1cc587bf [OpenCL] always use SPIR address spaces for kernel_arg_addr_space MD
It doesn't make sense to use the target's address space ids in this context as
this is metadata that should be referring to the "logical" OpenCL address spaces.
For flat AS machines like all "CPUs" in general, the logical AS info gets lost as
there's only one address space (0).

This commit changes the logic such that we always use the SPIR address space
ids for the argument metadata. It thus allows implementing the clGetKernelArgInfo()
and the other detection needs.

https://reviews.llvm.org/D26157

llvm-svn: 286819
2016-11-14 13:08:30 +00:00
..
ARCMigrate Fix Clang-tidy readability-redundant-string-cstr warnings 2016-11-02 10:39:27 +00:00
AST Fix PR28366: Handle variables from enclosing local scopes more gracefully during constant expression evaluation. 2016-11-13 06:09:16 +00:00
ASTMatchers [AST] Convert Marshallers to use unique_ptr. 2016-10-10 16:26:40 +00:00
Analysis [ReachableCode] Skip over ExprWithCleanups in isConfigurationValue 2016-11-01 00:19:04 +00:00
Basic Define __ANDROID_API__ when specified as part of an Android target. 2016-11-11 01:29:39 +00:00
CodeGen [OpenCL] always use SPIR address spaces for kernel_arg_addr_space MD 2016-11-14 13:08:30 +00:00
Driver Revert r286735 due to test failure 2016-11-13 00:16:21 +00:00
Edit [OpenCL] Generate opaque type for sampler_t and function call for the initializer 2016-07-28 19:26:30 +00:00
Format clang-format: Support ObjC selectors with unnamed parameters. 2016-11-12 07:38:22 +00:00
Frontend Add a new optimization option -Og 2016-11-11 17:29:56 +00:00
FrontendTool C++ Modules TS: add frontend support for building pcm files from module 2016-08-26 00:14:38 +00:00
Headers [AVX-512] Replace masked dword and qword variable shift builtins with unmasked builtins and a select. 2016-11-13 07:26:34 +00:00
Index [index] Rename SymbolSubKind -> SymbolProperty, NFC. 2016-11-11 23:49:55 +00:00
Lex Accept nullability qualifiers on array parameters. 2016-11-10 23:28:17 +00:00
Parse Accept nullability qualifiers on array parameters. 2016-11-10 23:28:17 +00:00
Rewrite [analyzer] Re-apply r283092, attempt no.4, chunk no.4 (last) 2016-10-07 19:25:10 +00:00
Sema Revert "Improve handling of floating point literals in OpenCL to only use double precision if the target supports fp64." 2016-11-14 12:19:18 +00:00
Serialization [VFS] Replace TimeValue usage with std::chrono 2016-11-09 10:52:22 +00:00
StaticAnalyzer [analyzer] Update 'Automated' to 'Automatic' from r286694. 2016-11-12 01:50:04 +00:00
Tooling Deduplicate replacements by FileEntry instead of file names. 2016-11-07 06:08:23 +00:00
CMakeLists.txt