Allow -cl-std and other standard -cl- options from cc1 to driver.
Added a test for the options moved.
Paths
| Differential D21031
[OpenCL] Allow -cl-std and other standard -cl- options in driver ClosedPublic Authored by ashi1 on Jun 6 2016, 10:29 AM.
Details Summary Allow -cl-std and other standard -cl- options from cc1 to driver. Added a test for the options moved.
Diff Detail Event Timeline
ashi1 marked 2 inline comments as done. Comment ActionsRevised with Anastasia's comments. Please take a look at the diagnostic to see if it is what we want.
ashi1 marked 2 inline comments as done. Comment ActionsRevised based on Anastasia's comments. Also clang-test run passes, the testcases should be working correctly.
This revision is now accepted and ready to land.Jun 23 2016, 3:35 AM Closed by commit rL274150: [OpenCL] Allow -cl-std and other standard -cl- options in driver (authored by yaxunl). · Explain WhyJun 29 2016, 12:46 PM This revision was automatically updated to reflect the committed changes. ashi1 added inline comments.
Revision Contents
Diff 61275 include/clang/Basic/DiagnosticFrontendKinds.tdinclude/clang/Driver/CC1Options.td
include/clang/Driver/Options.td
lib/Driver/Tools.cpp
lib/Frontend/CompilerInvocation.cpptest/Driver/opencl.cl |
Looks good. If we could output the current OpenCL version as well to match the diagnostic style from http://reviews.llvm.org/D19780, it would be nice.