Fix a regression which forbids using -std=cl|CL1.1|CL1.2|CL2.0 in driver.
Allow -std and -cl-std={cl|CL}{|1.1|1.2|2.0}.
Paths
| Differential D20630
[OpenCL] Allow -std={cl|CL}{|1.1|1.2|2.0} in driver ClosedPublic Authored by yaxunl on May 25 2016, 9:13 AM.
Details Summary Fix a regression which forbids using -std=cl|CL1.1|CL1.2|CL2.0 in driver. Allow -std and -cl-std={cl|CL}{|1.1|1.2|2.0}.
Diff Detail Event Timelineyaxunl updated this object. Comment Actions I will fix that. Thanks. Sam From: metafoo@gmail.com [mailto:metafoo@gmail.com] On Behalf Of Richard Smith yaxunl retitled this revision from [OpenCL] Allow -std=CL|CL1.1|CL1.2|CL2.0 in driver to [OpenCL] Allow -std=cl|CL1.1|CL1.2|CL2.0 in driver. yaxunl updated this object. Comment ActionsRevised as Richard suggested.
yaxunl retitled this revision from [OpenCL] Allow -std=cl|CL1.1|CL1.2|CL2.0 in driver to [OpenCL] Allow -std={cl|CL}{|1.1|1.2|2.0} in driver. yaxunl updated this object. Comment ActionsRevised as Richard suggested. This revision is now accepted and ready to land.Jun 1 2016, 8:49 AM Closed by commit rL273015: [OpenCL] Allow -std={cl|CL}{|1.1|1.2|2.0} in driver (authored by yaxunl). · Explain WhyJun 17 2016, 10:26 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 58978 include/clang/Frontend/LangStandards.def
lib/Frontend/CompilerInvocation.cpp
test/Driver/opencl.cl
test/Frontend/stdlang.c
|
How about changing these to the lowercase form too, and treating the uppercase versions as (deprecated) synonyms? (And likewise changing LangStandards.def to list the lowercase versions, perhaps with the uppercase versions as aliases.)