clang  9.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, LangOptions LO) const
 
bool isSupportedCore (llvm::StringRef Ext, LangOptions LO) const
 
bool isSupportedExtension (llvm::StringRef Ext, LangOptions LO) 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 (LangOptions LO)
 

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 99 of file OpenCLOptions.h.

Member Function Documentation

◆ addSupport()

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

Definition at line 106 of file OpenCLOptions.h.

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

◆ copy()

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

Definition at line 112 of file OpenCLOptions.h.

◆ disableAll()

void clang::OpenCLOptions::disableAll ( )
inline

Definition at line 123 of file OpenCLOptions.h.

◆ enable()

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

Definition at line 70 of file OpenCLOptions.h.

◆ enableSupportedCore()

void clang::OpenCLOptions::enableSupportedCore ( LangOptions  LO)
inline

Definition at line 129 of file OpenCLOptions.h.

References isSupportedCore().

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

◆ isEnabled()

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

◆ 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,
LangOptions  LO 
) const
inline

Definition at line 45 of file OpenCLOptions.h.

◆ isSupportedCore()

bool clang::OpenCLOptions::isSupportedCore ( llvm::StringRef  Ext,
LangOptions  LO 
) const
inline

Definition at line 54 of file OpenCLOptions.h.

Referenced by enableSupportedCore().

◆ isSupportedExtension()

bool clang::OpenCLOptions::isSupportedExtension ( llvm::StringRef  Ext,
LangOptions  LO 
) const
inline

Definition at line 63 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 78 of file OpenCLOptions.h.

References supportAll().

◆ supportAll()

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

Definition at line 117 of file OpenCLOptions.h.

Referenced by support().

Friends And Related Function Documentation

◆ ASTReader

friend class ASTReader
friend

Definition at line 137 of file OpenCLOptions.h.

◆ ASTWriter

friend class ASTWriter
friend

Definition at line 136 of file OpenCLOptions.h.


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