clang  3.9.0
Classes | Namespaces | Macros
OpenCLOptions.h File Reference

Defines the clang::OpenCLOptions class. More...

#include <string>
#include <vector>
#include "clang/Basic/OpenCLExtensions.def"
Include dependency graph for OpenCLOptions.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  clang::OpenCLOptions
 OpenCL supported extensions and optional core features. More...
 

Namespaces

 clang
 Dataflow Directional Tag Classes.
 

Macros

#define OPENCLEXT(nm)   unsigned nm : 1;
 
#define OPENCLEXT(nm)   nm = 0;
 
#define OPENCLEXT(nm)   nm = 1;
 
#define OPENCLEXT_INTERNAL(Ext, Avail,...)
 
#define OPENCLEXT_INTERNAL(Ext, Avail, Core)
 
#define OPENCLEXT_INTERNAL(Ext, Avail, Core)
 

Detailed Description

Defines the clang::OpenCLOptions class.

Definition in file OpenCLOptions.h.

Macro Definition Documentation

#define OPENCLEXT (   nm)    unsigned nm : 1;

Definition at line 26 of file OpenCLOptions.h.

#define OPENCLEXT (   nm)    nm = 0;

Definition at line 26 of file OpenCLOptions.h.

#define OPENCLEXT (   nm)    nm = 1;

Definition at line 26 of file OpenCLOptions.h.

#define OPENCLEXT_INTERNAL (   Ext,
  Avail,
  ... 
)
Value:
bool is_##Ext##_supported(unsigned OCLVer) const { \
return Ext && OCLVer >= Avail; \
}
return(__x >> __y)|(__x<< (32-__y))

Definition at line 58 of file OpenCLOptions.h.

#define OPENCLEXT_INTERNAL (   Ext,
  Avail,
  Core 
)
Value:
bool is_##Ext##_supported_extension(unsigned CLVer) const { \
return is_##Ext##_supported(CLVer) && (Core == ~0U || CLVer < Core); \
}
return(__x >> __y)|(__x<< (32-__y))

Definition at line 58 of file OpenCLOptions.h.

#define OPENCLEXT_INTERNAL (   Ext,
  Avail,
  Core 
)
Value:
bool is_##Ext##_supported_core(unsigned CLVer) const { \
return is_##Ext##_supported(CLVer) && Core != ~0U && CLVer >= Core; \
}
return(__x >> __y)|(__x<< (32-__y))

Definition at line 58 of file OpenCLOptions.h.