class OMPInitClause
Declaration
class OMPInitClause : public OMPVarListClause, private TrailingObjects { /* full declaration omitted */ };
Description
This represents the 'init' clause in '#pragma omp ...' directives.
Declared at: clang/include/clang/AST/OpenMPClause.h:7717
Inherits from: OMPVarListClause, TrailingObjects
Member Variables
- private clang::SourceLocation VarLoc
- Location of interop variable.
- private bool IsTarget = false
- private bool IsTargetSync = false
Method Overview
- public static clang::OMPInitClause * Create(const clang::ASTContext & C, clang::Expr * InteropVar, ArrayRef<clang::Expr *> PrefExprs, bool IsTarget, bool IsTargetSync, clang::SourceLocation StartLoc, clang::SourceLocation LParenLoc, clang::SourceLocation VarLoc, clang::SourceLocation EndLoc)
- public static clang::OMPInitClause * CreateEmpty(const clang::ASTContext & C, unsigned int N)
- private OMPInitClause(bool IsTarget, bool IsTargetSync, clang::SourceLocation StartLoc, clang::SourceLocation LParenLoc, clang::SourceLocation VarLoc, clang::SourceLocation EndLoc, unsigned int N)
- private OMPInitClause(unsigned int N)
- public clang::OMPClause::const_child_range children() const
- public clang::OMPClause::child_range children()
- public static bool classof(const clang::OMPClause * T)
- public const clang::Expr * getInteropVar() const
- public clang::Expr * getInteropVar()
- public bool getIsTarget() const
- public bool getIsTargetSync() const
- public clang::SourceLocation getVarLoc() const
- public clang::OMPInitClause::prefs_range prefs()
- public clang::OMPInitClause::const_prefs_range prefs() const
- private void setInteropVar(clang::Expr * E)
- private void setIsTarget(bool V)
- private void setIsTargetSync(bool V)
- private void setVarLoc(clang::SourceLocation Loc)
- public clang::OMPClause::child_range used_children()
- public clang::OMPClause::const_child_range used_children() const
Methods
¶static clang::OMPInitClause* Create(
const clang::ASTContext& C,
clang::Expr* InteropVar,
ArrayRef<clang::Expr*> PrefExprs,
bool IsTarget,
bool IsTargetSync,
clang::SourceLocation StartLoc,
clang::SourceLocation LParenLoc,
clang::SourceLocation VarLoc,
clang::SourceLocation EndLoc)
static clang::OMPInitClause* Create(
const clang::ASTContext& C,
clang::Expr* InteropVar,
ArrayRef<clang::Expr*> PrefExprs,
bool IsTarget,
bool IsTargetSync,
clang::SourceLocation StartLoc,
clang::SourceLocation LParenLoc,
clang::SourceLocation VarLoc,
clang::SourceLocation EndLoc)
Description
Creates a fully specified clause.
Declared at: clang/include/clang/AST/OpenMPClause.h:7773
Parameters
- const clang::ASTContext& C
- AST context.
- clang::Expr* InteropVar
- The interop variable.
- ArrayRef<clang::Expr*> PrefExprs
- The list of preference expressions.
- bool IsTarget
- Uses the 'target' interop-type.
- bool IsTargetSync
- Uses the 'targetsync' interop-type.
- clang::SourceLocation StartLoc
- Starting location of the clause.
- clang::SourceLocation LParenLoc
- Location of '('.
- clang::SourceLocation VarLoc
- Location of the interop variable.
- clang::SourceLocation EndLoc
- Ending location of the clause.
¶static clang::OMPInitClause* CreateEmpty(
const clang::ASTContext& C,
unsigned int N)
static clang::OMPInitClause* CreateEmpty(
const clang::ASTContext& C,
unsigned int N)
Description
Creates an empty clause with \a N expressions.
Declared at: clang/include/clang/AST/OpenMPClause.h:7783
Parameters
- const clang::ASTContext& C
- AST context.
- unsigned int N
- Number of expression items.
¶OMPInitClause(bool IsTarget,
bool IsTargetSync,
clang::SourceLocation StartLoc,
clang::SourceLocation LParenLoc,
clang::SourceLocation VarLoc,
clang::SourceLocation EndLoc,
unsigned int N)
OMPInitClause(bool IsTarget,
bool IsTargetSync,
clang::SourceLocation StartLoc,
clang::SourceLocation LParenLoc,
clang::SourceLocation VarLoc,
clang::SourceLocation EndLoc,
unsigned int N)
Description
Build 'init' clause.
Declared at: clang/include/clang/AST/OpenMPClause.h:7748
Parameters
- bool IsTarget
- Uses the 'target' interop-type.
- bool IsTargetSync
- Uses the 'targetsync' interop-type.
- clang::SourceLocation StartLoc
- Starting location of the clause.
- clang::SourceLocation LParenLoc
- Location of '('.
- clang::SourceLocation VarLoc
- Location of the interop variable.
- clang::SourceLocation EndLoc
- Ending location of the clause.
- unsigned int N
- Number of expressions.
¶OMPInitClause(unsigned int N)
OMPInitClause(unsigned int N)
Description
Build an empty clause.
Declared at: clang/include/clang/AST/OpenMPClause.h:7756
Parameters
- unsigned int N
¶clang::OMPClause::const_child_range children()
const
clang::OMPClause::const_child_range children()
const
Declared at: clang/include/clang/AST/OpenMPClause.h:7803
¶clang::OMPClause::child_range children()
clang::OMPClause::child_range children()
Declared at: clang/include/clang/AST/OpenMPClause.h:7798
¶static bool classof(const clang::OMPClause* T)
static bool classof(const clang::OMPClause* T)
Declared at: clang/include/clang/AST/OpenMPClause.h:7830
Parameters
- const clang::OMPClause* T
¶const clang::Expr* getInteropVar() const
const clang::Expr* getInteropVar() const
Declared at: clang/include/clang/AST/OpenMPClause.h:7790
¶clang::Expr* getInteropVar()
clang::Expr* getInteropVar()
Description
Returns the interop variable.
Declared at: clang/include/clang/AST/OpenMPClause.h:7789
¶bool getIsTarget() const
bool getIsTarget() const
Description
Returns true is interop-type 'target' is used.
Declared at: clang/include/clang/AST/OpenMPClause.h:7793
¶bool getIsTargetSync() const
bool getIsTargetSync() const
Description
Returns true is interop-type 'targetsync' is used.
Declared at: clang/include/clang/AST/OpenMPClause.h:7796
¶clang::SourceLocation getVarLoc() const
clang::SourceLocation getVarLoc() const
Description
Returns the location of the interop variable.
Declared at: clang/include/clang/AST/OpenMPClause.h:7786
¶clang::OMPInitClause::prefs_range prefs()
clang::OMPInitClause::prefs_range prefs()
Declared at: clang/include/clang/AST/OpenMPClause.h:7820
¶clang::OMPInitClause::const_prefs_range prefs()
const
clang::OMPInitClause::const_prefs_range prefs()
const
Declared at: clang/include/clang/AST/OpenMPClause.h:7825
¶void setInteropVar(clang::Expr* E)
void setInteropVar(clang::Expr* E)
Declared at: clang/include/clang/AST/OpenMPClause.h:7730
Parameters
- clang::Expr* E
¶void setIsTarget(bool V)
void setIsTarget(bool V)
Declared at: clang/include/clang/AST/OpenMPClause.h:7732
Parameters
- bool V
¶void setIsTargetSync(bool V)
void setIsTargetSync(bool V)
Declared at: clang/include/clang/AST/OpenMPClause.h:7734
Parameters
- bool V
¶void setVarLoc(clang::SourceLocation Loc)
void setVarLoc(clang::SourceLocation Loc)
Description
Sets the location of the interop variable.
Declared at: clang/include/clang/AST/OpenMPClause.h:7737
Parameters
¶clang::OMPClause::child_range used_children()
clang::OMPClause::child_range used_children()
Declared at: clang/include/clang/AST/OpenMPClause.h:7808
¶clang::OMPClause::const_child_range
used_children() const
clang::OMPClause::const_child_range
used_children() const
Declared at: clang/include/clang/AST/OpenMPClause.h:7811