[PATCH] D45363: [OpenCL] Added -std/-cl-std=CL2.2/CLC++
Anastasia Stulova via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Apr 6 04:41:00 PDT 2018
Anastasia created this revision.
Anastasia added reviewers: rjmccall, bader, yaxunl.
Added std option for OpenCL C++, see cfe-dev thread for more details:
http://lists.llvm.org/pipermail/cfe-dev/2018-April/057535.html
Examples:
`clang -std=CL2.2 test.cl`
`clang -std=cl2.2 test.cl`
`clang -std=CLC++ test.cl`
`clang -std=clc++ test.cl`
I am not sure if we need a separate language mode. Right now I am reusing OpenCL. We can discuss.
https://reviews.llvm.org/D45363
Files:
include/clang/Basic/DiagnosticSemaKinds.td
include/clang/Driver/Options.td
include/clang/Frontend/LangStandards.def
lib/Frontend/CompilerInvocation.cpp
lib/Frontend/InitPreprocessor.cpp
test/Driver/autocomplete.c
test/Driver/opencl.cl
test/Driver/unknown-std.cl
test/Frontend/opencl.cl
test/Frontend/stdlang.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D45363.141310.patch
Type: text/x-patch
Size: 10808 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180406/df78683f/attachment.bin>
More information about the cfe-commits
mailing list