[PATCH] D20373: PR27799: [OpenCL] Clang fails to compile libclc
Yaxun Liu via cfe-commits
cfe-commits at lists.llvm.org
Wed May 18 08:48:10 PDT 2016
yaxunl created this revision.
yaxunl added a reviewer: Anastasia.
yaxunl added subscribers: cfe-commits, tstellarAMD.
libclc fails to build due to some supported OpenCL extensions are not added to nvptx target.
http://reviews.llvm.org/D20373
Files:
lib/Basic/Targets.cpp
Index: lib/Basic/Targets.cpp
===================================================================
--- lib/Basic/Targets.cpp
+++ lib/Basic/Targets.cpp
@@ -1840,6 +1840,12 @@
return GPU != GK_NONE;
}
+ void setSupportedOpenCLOpts() override {
+ auto &Opts = getSupportedOpenCLOpts();
+ Opts.cl_clang_storage_class_specifiers = 1;
+ Opts.cl_khr_byte_addressable_store = 1;
+ Opts.cl_khr_fp64 = 1;
+ }
};
const Builtin::Info NVPTXTargetInfo::BuiltinInfo[] = {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D20373.57636.patch
Type: text/x-patch
Size: 482 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160518/6b418440/attachment-0001.bin>
More information about the cfe-commits
mailing list