]> granicus.if.org Git - clang/commit
[OpenCL] Make OpenCL Builtins added according to the right version.
authorAnastasia Stulova <anastasia.stulova@arm.com>
Mon, 4 Jul 2016 16:07:18 +0000 (16:07 +0000)
committerAnastasia Stulova <anastasia.stulova@arm.com>
Mon, 4 Jul 2016 16:07:18 +0000 (16:07 +0000)
commitd0cac52466b00f3a94a0df1e53f3df4f422e03e6
tree7f8e6f6c3652fc9fd0834064ed79b4a4b18978bb
parent4fa1f773ded58f1d018a863e213e3de6a8ee08ed
[OpenCL] Make OpenCL Builtins added according to the right version.

Currently we only have OpenCL 2.0 Builtins i.e. pipes or address space conversions.

They have to be added only in the version 2.0 compilation mode to make the identifiers
available for use in the other versions.

Review: http://reviews.llvm.org/D20249

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@274509 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/Builtins.def
include/clang/Basic/Builtins.h
include/clang/Basic/DiagnosticSemaKinds.td
lib/Basic/Builtins.cpp
lib/CodeGen/CGBuiltin.cpp
lib/Sema/SemaChecking.cpp
test/SemaOpenCL/clang-builtin-version.cl [new file with mode: 0644]
test/SemaOpenCL/to_addr_builtin.cl