clang  6.0.0svn
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

◆ OpenCLOptions()

clang::OpenCLOptions::OpenCLOptions ( )
inline

Definition at line 95 of file OpenCLOptions.h.

Member Function Documentation

◆ addSupport()

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

Definition at line 102 of file OpenCLOptions.h.

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

◆ copy()

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

Definition at line 108 of file OpenCLOptions.h.

◆ disableAll()

void clang::OpenCLOptions::disableAll ( )
inline

Definition at line 119 of file OpenCLOptions.h.

◆ enable()

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

Definition at line 66 of file OpenCLOptions.h.

◆ enableSupportedCore()

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

Definition at line 125 of file OpenCLOptions.h.

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

◆ isEnabled()

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

Definition at line 39 of file OpenCLOptions.h.

Referenced by DiagnoseBadFunctionCast().

◆ isKnown()

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

Definition at line 35 of file OpenCLOptions.h.

◆ isSupported()

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

Definition at line 45 of file OpenCLOptions.h.

◆ isSupportedCore()

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

Definition at line 52 of file OpenCLOptions.h.

◆ isSupportedExtension()

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

Definition at line 60 of file OpenCLOptions.h.

◆ support()

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().

◆ supportAll()

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

Definition at line 113 of file OpenCLOptions.h.

Referenced by support().

Friends And Related Function Documentation

◆ ASTReader

friend class ASTReader
friend

Definition at line 133 of file OpenCLOptions.h.

◆ ASTWriter

friend class ASTWriter
friend

Definition at line 132 of file OpenCLOptions.h.


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