llvm-project/clang/lib
Yaxun Liu a53d48b7f4 [OpenCL] Fix file-scope const sampler variable for 2.0
OpenCL spec v2.0 s6.13.14:

Samplers can also be declared as global constants in the program
source using the following syntax.

   const sampler_t <sampler name> = <value>
This works fine for OpenCL 1.2 but fails for 2.0, because clang duduces
address space of file-scope const sampler variable to be in global address
space whereas spec v2.0 s6.9.b forbids file-scope sampler variable to be
in global address space.

The fix is not to deduce address space for file-scope sampler variables.

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

llvm-svn: 361757
2019-05-27 11:19:07 +00:00
..
ARCMigrate Recommit r359859 "[Attribute/Diagnostics] Print macro if definition is an attribute declaration" 2019-05-07 03:20:17 +00:00
AST [ASTImporter] Added visibility context check for CXXRecordDecl. 2019-05-27 09:36:00 +00:00
ASTMatchers Move TraversalKind enum to ast_type_traits 2019-05-16 17:57:38 +00:00
Analysis [CFG] Add branch to skip vbase inits when they're handled by superclass. 2019-05-24 23:37:08 +00:00
Basic [X86] Split multi-line chained assignments into single lines to avoid making clang-format create triangle shaped indentation. Simplify one if statement to remove a bunch of string matches. NFCI 2019-05-23 21:34:36 +00:00
CodeGen [NewPassManager] Add tuning option: LoopUnrolling [clang-change] 2019-05-24 17:40:52 +00:00
CrossTU [ASTImporter] Use llvm::Expected and Error in the importer API 2019-05-15 10:29:48 +00:00
Driver [Driver][RISCV] Simplify. NFC 2019-05-26 07:43:45 +00:00
Edit Range-style std::find{,_if} -> llvm::find{,_if}. NFC 2019-03-31 08:48:19 +00:00
Format [clang-format] Fixed self assignment 2019-05-15 20:29:33 +00:00
Frontend Do not resolve directory junctions for `-fdiagnostics-absolute-paths` on Windows. 2019-05-24 04:46:22 +00:00
FrontendTool [analyzer] List checker/plugin options in 3 categories: released, alpha, developer 2019-05-23 22:52:09 +00:00
Headers [OpenCL] Add support for the cl_arm_integer_dot_product extensions 2019-05-24 14:53:52 +00:00
Index [Index] Fix reported references in presence of template type aliases 2019-05-23 16:48:47 +00:00
Lex [PragmaHandler] Expose `#pragma` location 2019-05-21 23:51:38 +00:00
Parse [OpenCL] Support pipe keyword in C++ mode 2019-05-22 13:12:20 +00:00
Rewrite [Lex] Allow to consume tokens while preprocessing 2019-05-17 09:32:05 +00:00
Sema [OpenCL] Fix file-scope const sampler variable for 2.0 2019-05-27 11:19:07 +00:00
Serialization Permit static local structured bindings to be named from arbitrary scopes inside their declaring scope. 2019-05-25 01:04:17 +00:00
StaticAnalyzer [analyzer] Add a prunable note for skipping vbase inits in subclasses. 2019-05-24 23:37:11 +00:00
Tooling Rename clangToolingRefactor to clangToolingRefactoring for consistency with its directory 2019-05-25 00:27:19 +00:00
CMakeLists.txt Add Cross Translation Unit support library 2017-09-22 11:11:01 +00:00