When we compile a PCH cl_khr_fp64 is enabled by default.
And its support is imported alongside with the PCH.
With this patch we can disable features enabled in the PCH we import
Details
Details
Diff Detail
Diff Detail
- Build Status
Buildable 8723 Build 8723: arc lint + arc unit
Event Timeline
test/SemaOpenCL/extensions-import.cl | ||
---|---|---|
14 ↗ | (On Diff #108776) | You can use #ifdef cl_khr_fp64 to check if extension is supported. |
include/clang/Basic/OpenCLOptions.h | ||
---|---|---|
132 | May be the name could be setAll since it's doing both enable and disable too. | |
test/SemaOpenCL/extensions-import.cl | ||
6 ↗ | (On Diff #108776) | Do we need to test w/o PCH here? I think we have similar test coverage in test/SemaOpenCL/extensions.cl. Also we normally put RUN lines first. |
May be the name could be setAll since it's doing both enable and disable too.