diff options
author | Anastasia Stulova <anastasia.stulova@arm.com> | 2016-07-04 16:07:18 +0000 |
---|---|---|
committer | Anastasia Stulova <anastasia.stulova@arm.com> | 2016-07-04 16:07:18 +0000 |
commit | 7f8d6dc0efc43577f64e1f2ebb39a0366820c51a (patch) | |
tree | 76075898874412cc9f6efb577db84b81eee10100 /clang/lib/CodeGen | |
parent | 5e37aeaf6a55f654dd72b6af08209d10cb17d990 (diff) | |
download | bcm5719-llvm-7f8d6dc0efc43577f64e1f2ebb39a0366820c51a.tar.gz bcm5719-llvm-7f8d6dc0efc43577f64e1f2ebb39a0366820c51a.zip |
[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
llvm-svn: 274509
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r-- | clang/lib/CodeGen/CGBuiltin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGBuiltin.cpp b/clang/lib/CodeGen/CGBuiltin.cpp index 57628f0f44c..c86c420c944 100644 --- a/clang/lib/CodeGen/CGBuiltin.cpp +++ b/clang/lib/CodeGen/CGBuiltin.cpp @@ -2127,7 +2127,7 @@ RValue CodeGenFunction::EmitBuiltinExpr(const FunctionDecl *FD, return RValue::get( Builder.CreateCall(CGM.CreateRuntimeFunction(FTy, Name), {Arg0, Arg1})); } - // OpenCL v2.0 s6.13.16 ,s9.17.3.5 - Built-in pipe commit read and write + // OpenCL v2.0 s6.13.16, s9.17.3.5 - Built-in pipe commit read and write // functions case Builtin::BIcommit_read_pipe: case Builtin::BIcommit_write_pipe: |