class AtomicScopeOpenCLModel
Declaration
class AtomicScopeOpenCLModel : public AtomicScopeModel { /* full declaration omitted */ };
Description
Defines the synch scope model for OpenCL.
Declared at: clang/include/clang/Basic/SyncScope.h:109
Inherits from: AtomicScopeModel
Method Overview
- public AtomicScopeOpenCLModel()
- public unsigned int getFallBackValue() const
- public ArrayRef<unsigned int> getRuntimeValues() const
- public bool isValid(unsigned int S) const
- public clang::SyncScope map(unsigned int S) const
Inherited from AtomicScopeModel:
Methods
¶AtomicScopeOpenCLModel()
AtomicScopeOpenCLModel()
Declared at: clang/include/clang/Basic/SyncScope.h:122
¶unsigned int getFallBackValue() const
unsigned int getFallBackValue() const
Description
If atomic builtin function is called with invalid synch scope value at runtime, it will fall back to a valid synch scope value returned by this function.
Declared at: clang/include/clang/Basic/SyncScope.h:151
¶ArrayRef<unsigned int> getRuntimeValues() const
ArrayRef<unsigned int> getRuntimeValues() const
Description
Get all possible synch scope values that might be encountered at runtime for the current language.
Declared at: clang/include/clang/Basic/SyncScope.h:143
¶bool isValid(unsigned int S) const
bool isValid(unsigned int S) const
Description
Check if the compile-time constant synch scope value is valid.
Declared at: clang/include/clang/Basic/SyncScope.h:138
Parameters
- unsigned int S
¶clang::SyncScope map(unsigned int S) const
clang::SyncScope map(unsigned int S) const
Description
Maps language specific synch scope values to internal SyncScope enum.
Declared at: clang/include/clang/Basic/SyncScope.h:124
Parameters
- unsigned int S