mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-05 23:52:45 +00:00
[OpenCL] Add "cles_khr_int64" extension.
Summary: For OpenCL 1.1 embedded profile 64 bit integers i.e. long, ulong including the appropriate vector data types and operations on 64-bit integers are optional. The "cles_khr_int64" extension string will be reported if the embedded profile implementation supports 64-bit integers. Reviewers: Anastasia, bader Reviewed By: Anastasia, bader Subscribers: bader, yaxunl, Anastasia, cfe-commits Differential Revision: https://reviews.llvm.org/D42532 llvm-svn: 323522
This commit is contained in:
parent
e4718e84e8
commit
d2c67a75b0
@ -53,6 +53,9 @@ OPENCLEXT_INTERNAL(cl_khr_icd, 100, ~0U)
|
||||
OPENCLEXT_INTERNAL(cl_khr_gl_event, 110, ~0U)
|
||||
OPENCLEXT_INTERNAL(cl_khr_d3d10_sharing, 110, ~0U)
|
||||
|
||||
// EMBEDDED_PROFILE
|
||||
OPENCLEXT_INTERNAL(cles_khr_int64, 110, ~0U)
|
||||
|
||||
// OpenCL 1.2.
|
||||
OPENCLEXT_INTERNAL(cl_khr_context_abort, 120, ~0U)
|
||||
OPENCLEXT_INTERNAL(cl_khr_d3d11_sharing, 120, ~0U)
|
||||
|
@ -131,6 +131,15 @@
|
||||
#endif
|
||||
#pragma OPENCL EXTENSION cl_khr_d3d10_sharing: enable
|
||||
|
||||
#if (__OPENCL_C_VERSION__ >= 110)
|
||||
#ifndef cles_khr_int64
|
||||
#error "Missing cles_khr_int64 define"
|
||||
#endif
|
||||
#else
|
||||
// expected-warning@+2{{unsupported OpenCL extension 'cles_khr_int64' - ignoring}}
|
||||
#endif
|
||||
#pragma OPENCL EXTENSION cles_khr_int64: enable
|
||||
|
||||
#if (__OPENCL_C_VERSION__ >= 120)
|
||||
#ifndef cl_khr_context_abort
|
||||
#error "Missing cl_context_abort define"
|
||||
|
Loading…
Reference in New Issue
Block a user