class OMPDeviceClause
Declaration
class OMPDeviceClause : public OMPClause, public OMPClauseWithPreInit { /* full declaration omitted */ };
Description
This represents 'device' clause in the '#pragma omp ...' directive. In this example directive '#pragma omp target' has clause 'device' with single expression 'a'.
Declared at: clang/include/clang/AST/OpenMPClause.h:4896
Inherits from: OMPClause, OMPClauseWithPreInit
Member Variables
- private clang::SourceLocation LParenLoc
- Location of '('.
- private clang::OpenMPDeviceClauseModifier Modifier = OMPC_DEVICE_unknown
- Device clause modifier.
- private clang::SourceLocation ModifierLoc
- Location of the modifier.
- private clang::Stmt* Device = nullptr
- Device number.
Method Overview
- public OMPDeviceClause(clang::OpenMPDeviceClauseModifier Modifier, clang::Expr * E, clang::Stmt * HelperE, clang::OpenMPDirectiveKind CaptureRegion, clang::SourceLocation StartLoc, clang::SourceLocation LParenLoc, clang::SourceLocation ModifierLoc, clang::SourceLocation EndLoc)
- public OMPDeviceClause()
- public clang::OMPClause::child_range children()
- public clang::OMPClause::const_child_range children() const
- public static bool classof(const clang::OMPClause * T)
- public clang::Expr * getDevice()
- public clang::Expr * getDevice() const
- public clang::SourceLocation getLParenLoc() const
- public clang::OpenMPDeviceClauseModifier getModifier() const
- public clang::SourceLocation getModifierLoc() const
- private void setDevice(clang::Expr * E)
- public void setLParenLoc(clang::SourceLocation Loc)
- private void setModifier(clang::OpenMPDeviceClauseModifier M)
- private void setModifierLoc(clang::SourceLocation Loc)
- public clang::OMPClause::child_range used_children()
- public clang::OMPClause::const_child_range used_children() const
Inherited from OMPClauseWithPreInit:
- public get
- public get
- public getCaptureRegion
- public getPreInitStmt
- public getPreInitStmt
- protected setPreInitStmt
Inherited from OMPClause:
- public children
- public children
- public classof
- public getBeginLoc
- public getClauseKind
- public getEndLoc
- public isImplicit
- public setLocEnd
- public setLocStart
- public used_children
- public used_children
Methods
¶OMPDeviceClause(
clang::OpenMPDeviceClauseModifier Modifier,
clang::Expr* E,
clang::Stmt* HelperE,
clang::OpenMPDirectiveKind CaptureRegion,
clang::SourceLocation StartLoc,
clang::SourceLocation LParenLoc,
clang::SourceLocation ModifierLoc,
clang::SourceLocation EndLoc)
OMPDeviceClause(
clang::OpenMPDeviceClauseModifier Modifier,
clang::Expr* E,
clang::Stmt* HelperE,
clang::OpenMPDirectiveKind CaptureRegion,
clang::SourceLocation StartLoc,
clang::SourceLocation LParenLoc,
clang::SourceLocation ModifierLoc,
clang::SourceLocation EndLoc)
Description
Build 'device' clause.
Declared at: clang/include/clang/AST/OpenMPClause.h:4933
Parameters
- clang::OpenMPDeviceClauseModifier Modifier
- Clause modifier.
- clang::Expr* E
- Expression associated with this clause.
- clang::Stmt* HelperE
- clang::OpenMPDirectiveKind CaptureRegion
- Innermost OpenMP region where expressions in this clause must be captured.
- clang::SourceLocation StartLoc
- Starting location of the clause.
- clang::SourceLocation LParenLoc
- Location of '('.
- clang::SourceLocation ModifierLoc
- Modifier location.
- clang::SourceLocation EndLoc
- Ending location of the clause.
¶OMPDeviceClause()
OMPDeviceClause()
Description
Build an empty clause.
Declared at: clang/include/clang/AST/OpenMPClause.h:4944
¶clang::OMPClause::child_range children()
clang::OMPClause::child_range children()
Declared at: clang/include/clang/AST/OpenMPClause.h:4966
¶clang::OMPClause::const_child_range children()
const
clang::OMPClause::const_child_range children()
const
Declared at: clang/include/clang/AST/OpenMPClause.h:4968
¶static bool classof(const clang::OMPClause* T)
static bool classof(const clang::OMPClause* T)
Declared at: clang/include/clang/AST/OpenMPClause.h:4979
Parameters
- const clang::OMPClause* T
¶clang::Expr* getDevice()
clang::Expr* getDevice()
Description
Return device number.
Declared at: clang/include/clang/AST/OpenMPClause.h:4955
¶clang::Expr* getDevice() const
clang::Expr* getDevice() const
Description
Return device number.
Declared at: clang/include/clang/AST/OpenMPClause.h:4958
¶clang::SourceLocation getLParenLoc() const
clang::SourceLocation getLParenLoc() const
Description
Returns the location of '('.
Declared at: clang/include/clang/AST/OpenMPClause.h:4952
¶clang::OpenMPDeviceClauseModifier getModifier()
const
clang::OpenMPDeviceClauseModifier getModifier()
const
Description
Gets modifier.
Declared at: clang/include/clang/AST/OpenMPClause.h:4961
¶clang::SourceLocation getModifierLoc() const
clang::SourceLocation getModifierLoc() const
Description
Gets modifier location.
Declared at: clang/include/clang/AST/OpenMPClause.h:4964
¶void setDevice(clang::Expr* E)
void setDevice(clang::Expr* E)
Description
Set the device number.
Declared at: clang/include/clang/AST/OpenMPClause.h:4914
Parameters
- clang::Expr* E
- Device number.
¶void setLParenLoc(clang::SourceLocation Loc)
void setLParenLoc(clang::SourceLocation Loc)
Description
Sets the location of '('.
Declared at: clang/include/clang/AST/OpenMPClause.h:4949
Parameters
¶void setModifier(
clang::OpenMPDeviceClauseModifier M)
void setModifier(
clang::OpenMPDeviceClauseModifier M)
Description
Sets modifier.
Declared at: clang/include/clang/AST/OpenMPClause.h:4917
Parameters
- clang::OpenMPDeviceClauseModifier M
¶void setModifierLoc(clang::SourceLocation Loc)
void setModifierLoc(clang::SourceLocation Loc)
Description
Setst modifier location.
Declared at: clang/include/clang/AST/OpenMPClause.h:4920
Parameters
¶clang::OMPClause::child_range used_children()
clang::OMPClause::child_range used_children()
Declared at: clang/include/clang/AST/OpenMPClause.h:4972
¶clang::OMPClause::const_child_range
used_children() const
clang::OMPClause::const_child_range
used_children() const
Declared at: clang/include/clang/AST/OpenMPClause.h:4975