[PATCH] D19484: [OpenCL] Add supported OpenCL extensions to target info.

Yaxun Liu via cfe-commits cfe-commits at lists.llvm.org
Mon Apr 25 08:51:09 PDT 2016


yaxunl created this revision.
yaxunl added reviewers: Anastasia, bader.
yaxunl added subscribers: cfe-commits, pxli168, tstellarAMD.

Add supported OpenCL extensions to target info. It serves as default values to save the users of the burden setting each supported extensions and optional core features in command line.

In the future a command line option may be added to allow enable/disable each supported extension or optional core feature individually.

http://reviews.llvm.org/D19484

Files:
  include/clang/Basic/LangOptions.h
  include/clang/Basic/OpenCLOptions.h
  include/clang/Basic/TargetInfo.h
  include/clang/Basic/TargetOptions.h
  lib/Basic/Targets.cpp
  lib/Parse/ParsePragma.cpp
  lib/Sema/Sema.cpp
  test/CodeGenOpenCL/builtins-r600.cl
  test/Parser/opencl-atomics-cl20.cl
  test/SemaOpenCL/extension-fp64-cl1.1.cl
  test/SemaOpenCL/extension-fp64.cl
  test/SemaOpenCL/extensions.cl

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D19484.54862.patch
Type: text/x-patch
Size: 12028 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160425/ea3ec672/attachment-0001.bin>


More information about the cfe-commits mailing list