From 1c20b818530c1472db7f5ba6c30e896b53683122 Mon Sep 17 00:00:00 2001 From: Yaxun Liu Date: Mon, 16 May 2016 17:06:34 +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. Re-commit after fixing build error due to missing override attribute. Differential Revision: http://reviews.llvm.org/D19484 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@269670 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