[PATCH] D21698: [OpenCL] Allow user to add supported OpenCL extensions by pragma
Yaxun Liu via cfe-commits
cfe-commits at lists.llvm.org
Fri Jun 24 13:54:53 PDT 2016
yaxunl created this revision.
yaxunl added a reviewer: Anastasia.
yaxunl added subscribers: cfe-commits, bader, pxli168, tstellarAMD.
Allow user to use pragma to add supported extensions:
#pragma OPENCL EXTENSION the_new_extension_name : register
After that, users can use
#pragma OPENCL EXTENSION the_new_extension_name : enable/disable
in subsequent code.
http://reviews.llvm.org/D21698
Files:
include/clang/Basic/DiagnosticParseKinds.td
include/clang/Basic/OpenCLOptions.h
include/clang/Serialization/ASTReader.h
lib/Basic/Targets.cpp
lib/Frontend/InitPreprocessor.cpp
lib/Parse/ParsePragma.cpp
lib/Sema/DeclSpec.cpp
lib/Sema/Sema.cpp
lib/Sema/SemaCast.cpp
lib/Sema/SemaDecl.cpp
lib/Sema/SemaExpr.cpp
lib/Sema/SemaType.cpp
lib/Serialization/ASTReader.cpp
lib/Serialization/ASTWriter.cpp
test/PCH/opencl-extensions.cl
test/Parser/opencl-pragma.cl
test/SemaOpenCL/extension-register.cl
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D21698.61829.patch
Type: text/x-patch
Size: 26488 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160624/57341fd4/attachment-0001.bin>
More information about the cfe-commits
mailing list