clang  5.0.0
Classes | Public Member Functions | Friends | List of all members
clang::OpenCLOptions Class Reference

OpenCL supported extensions and optional core features. More...

#include "clang/Basic/OpenCLOptions.h"

Public Member Functions

bool isKnown (llvm::StringRef Ext) const
 
bool isEnabled (llvm::StringRef Ext) const
 
bool isSupported (llvm::StringRef Ext, unsigned CLVer) const
 
bool isSupportedCore (llvm::StringRef Ext, unsigned CLVer) const
 
bool isSupportedExtension (llvm::StringRef Ext, unsigned CLVer) const
 
void enable (llvm::StringRef Ext, bool V=true)
 
void support (llvm::StringRef Ext, bool V=true)
 Enable or disable support for OpenCL extensions. More...
 
 OpenCLOptions ()
 
void addSupport (const OpenCLOptions &Opts)
 
void copy (const OpenCLOptions &Opts)
 
void supportAll (bool On=true)
 
void disableAll ()
 
void enableSupportedCore (unsigned CLVer)
 

Friends

class ASTWriter
 
class ASTReader
 

Detailed Description

OpenCL supported extensions and optional core features.

Definition at line 23 of file OpenCLOptions.h.

Constructor & Destructor Documentation

clang::OpenCLOptions::OpenCLOptions ( )
inline

Definition at line 95 of file OpenCLOptions.h.

Member Function Documentation

void clang::OpenCLOptions::addSupport ( const OpenCLOptions Opts)
inline

Definition at line 102 of file OpenCLOptions.h.

References I.

Referenced by clang::Sema::Initialize().

void clang::OpenCLOptions::copy ( const OpenCLOptions Opts)
inline

Definition at line 108 of file OpenCLOptions.h.

void clang::OpenCLOptions::disableAll ( )
inline

Definition at line 119 of file OpenCLOptions.h.

References E, and I.

void clang::OpenCLOptions::enable ( llvm::StringRef  Ext,
bool  V = true 
)
inline

Definition at line 66 of file OpenCLOptions.h.

void clang::OpenCLOptions::enableSupportedCore ( unsigned  CLVer)
inline

Definition at line 125 of file OpenCLOptions.h.

References E, I, and isSupportedCore().

Referenced by clang::Sema::Initialize().

bool clang::OpenCLOptions::isEnabled ( llvm::StringRef  Ext) const
inline
bool clang::OpenCLOptions::isKnown ( llvm::StringRef  Ext) const
inline

Definition at line 35 of file OpenCLOptions.h.

bool clang::OpenCLOptions::isSupported ( llvm::StringRef  Ext,
unsigned  CLVer 
) const
inline

Definition at line 45 of file OpenCLOptions.h.

References I.

bool clang::OpenCLOptions::isSupportedCore ( llvm::StringRef  Ext,
unsigned  CLVer 
) const
inline

Definition at line 52 of file OpenCLOptions.h.

References I.

Referenced by enableSupportedCore().

bool clang::OpenCLOptions::isSupportedExtension ( llvm::StringRef  Ext,
unsigned  CLVer 
) const
inline

Definition at line 60 of file OpenCLOptions.h.

References I.

void clang::OpenCLOptions::support ( llvm::StringRef  Ext,
bool  V = true 
)
inline

Enable or disable support for OpenCL extensions.

Parameters
Extname of the extension optionally prefixed with '+' or '-'
Vused when Ext is not prefixed by '+' or '-'

Definition at line 74 of file OpenCLOptions.h.

References supportAll().

Referenced by clang::TargetInfo::setOpenCLExtensionOpts().

void clang::OpenCLOptions::supportAll ( bool  On = true)
inline

Definition at line 113 of file OpenCLOptions.h.

References E, and I.

Referenced by support().

Friends And Related Function Documentation

friend class ASTReader
friend

Definition at line 133 of file OpenCLOptions.h.

friend class ASTWriter
friend

Definition at line 132 of file OpenCLOptions.h.


The documentation for this class was generated from the following file: