forked from OSchip/llvm-project
Introduce CLC_VERSION macros v2
Add these out-of-order in clc.h so we can use these in other headers. v2: Take into account the lack of a definition in OpenCL 1.0 Reviewed-by: Tom Stellard <tom@stellard.net> llvm-svn: 211578
This commit is contained in:
parent
985a1381b2
commit
046b47fbbe
|
@ -11,6 +11,9 @@
|
|||
/* Function Attributes */
|
||||
#include <clc/clcfunc.h>
|
||||
|
||||
/* 6.9 Preprocessor Directives and Macros */
|
||||
#include <clc/clcversion.h>
|
||||
|
||||
/* 6.1 Supported Data Types */
|
||||
#include <clc/clctypes.h>
|
||||
|
||||
|
|
|
@ -0,0 +1,8 @@
|
|||
#if __OPENCL_VERSION__ >= 110
|
||||
#define CLC_VERSION_1_0 100
|
||||
#define CLC_VERSION_1_1 110
|
||||
#endif
|
||||
|
||||
#if __OPENCL_VERSION__ >= 120
|
||||
#define CLC_VERSION_1_2 120
|
||||
#endif
|
Loading…
Reference in New Issue