From 1ae52775b1ad7cad31ddfbd2cd2a60a61afb888c Mon Sep 17 00:00:00 2001 From: Yaxun Liu Date: Fri, 13 May 2016 15:44:37 +0000 Subject: [OpenCL] Add supported OpenCL extensions to target info. 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. Differential Revision: http://reviews.llvm.org/D19484 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@269431 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/Basic/TargetOptions.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/clang/Basic/TargetOptions.h') diff --git a/include/clang/Basic/TargetOptions.h b/include/clang/Basic/TargetOptions.h index 81fb7b2117..fde294c922 100644 --- a/include/clang/Basic/TargetOptions.h +++ b/include/clang/Basic/TargetOptions.h @@ -17,6 +17,7 @@ #include #include +#include "clang/Basic/OpenCLOptions.h" namespace clang { @@ -54,6 +55,9 @@ public: std::vector Features; std::vector Reciprocals; + + /// Supported OpenCL extensions and optional core features. + OpenCLOptions SupportedOpenCLOptions; }; } // end namespace clang -- cgit v1.2.3