class OMPCopyinClause

Declaration

class OMPCopyinClause : public OMPVarListClause,
                        private TrailingObjects { /* full declaration omitted */ };

Description

This represents clause 'copyin' in the '#pragma omp ...' directives. In this example directive '#pragma omp parallel' has clause 'copyin' with the variables 'a' and 'b'.

Declared at: clang/include/clang/AST/OpenMPClause.h:4237

Inherits from: OMPVarListClause, TrailingObjects

Method Overview

  • public static clang::OMPCopyinClause * Create(const clang::ASTContext & C, clang::SourceLocation StartLoc, clang::SourceLocation LParenLoc, clang::SourceLocation EndLoc, ArrayRef<clang::Expr *> VL, ArrayRef<clang::Expr *> SrcExprs, ArrayRef<clang::Expr *> DstExprs, ArrayRef<clang::Expr *> AssignmentOps)
  • public static clang::OMPCopyinClause * CreateEmpty(const clang::ASTContext & C, unsigned int N)
  • private OMPCopyinClause(unsigned int N)
  • private OMPCopyinClause(clang::SourceLocation StartLoc, clang::SourceLocation LParenLoc, clang::SourceLocation EndLoc, unsigned int N)
  • public clang::OMPCopyinClause::helper_expr_range assignment_ops()
  • public clang::OMPCopyinClause::helper_expr_const_range assignment_ops() const
  • public clang::OMPClause::const_child_range children() const
  • public clang::OMPClause::child_range children()
  • public static bool classof(const clang::OMPClause * T)
  • public clang::OMPCopyinClause::helper_expr_range destination_exprs()
  • public clang::OMPCopyinClause::helper_expr_const_range destination_exprs() const
  • private MutableArrayRef<clang::Expr *> getAssignmentOps()
  • private ArrayRef<const clang::Expr *> getAssignmentOps() const
  • private MutableArrayRef<clang::Expr *> getDestinationExprs()
  • private ArrayRef<const clang::Expr *> getDestinationExprs() const
  • private ArrayRef<const clang::Expr *> getSourceExprs() const
  • private MutableArrayRef<clang::Expr *> getSourceExprs()
  • private void setAssignmentOps(ArrayRef<clang::Expr *> AssignmentOps)
  • private void setDestinationExprs(ArrayRef<clang::Expr *> DstExprs)
  • private void setSourceExprs(ArrayRef<clang::Expr *> SrcExprs)
  • public clang::OMPCopyinClause::helper_expr_range source_exprs()
  • public clang::OMPCopyinClause::helper_expr_const_range source_exprs() const
  • public clang::OMPClause::child_range used_children()
  • public clang::OMPClause::const_child_range used_children() const

Methods

static clang::OMPCopyinClause* Create(
    const clang::ASTContext& C,
    clang::SourceLocation StartLoc,
    clang::SourceLocation LParenLoc,
    clang::SourceLocation EndLoc,
    ArrayRef<clang::Expr*> VL,
    ArrayRef<clang::Expr*> SrcExprs,
    ArrayRef<clang::Expr*> DstExprs,
    ArrayRef<clang::Expr*> AssignmentOps)

Description

Creates clause with a list of variables \a VL. Required for proper codegen of propagation of master's thread values of threadprivate variables to local instances of that variables in other implicit threads.

Declared at: clang/include/clang/AST/OpenMPClause.h:4339

Parameters

const clang::ASTContext& C
AST context.
clang::SourceLocation StartLoc
Starting location of the clause.
clang::SourceLocation LParenLoc
Location of '('.
clang::SourceLocation EndLoc
Ending location of the clause.
ArrayRef<clang::Expr*> VL
List of references to the variables.
ArrayRef<clang::Expr*> SrcExprs
List of helper expressions for proper generation of assignment operation required for copyin clause. This list represents sources.
ArrayRef<clang::Expr*> DstExprs
List of helper expressions for proper generation of assignment operation required for copyin clause. This list represents destinations.
ArrayRef<clang::Expr*> AssignmentOps
List of helper expressions that represents assignment operation:

static clang::OMPCopyinClause* CreateEmpty(
    const clang::ASTContext& C,
    unsigned int N)

Description

Creates an empty clause with \a N variables.

Declared at: clang/include/clang/AST/OpenMPClause.h:4347

Parameters

const clang::ASTContext& C
AST context.
unsigned int N
The number of variables.

OMPCopyinClause(unsigned int N)

Description

Build an empty clause.

Declared at: clang/include/clang/AST/OpenMPClause.h:4271

Parameters

unsigned int N
Number of variables.

OMPCopyinClause(clang::SourceLocation StartLoc,
                clang::SourceLocation LParenLoc,
                clang::SourceLocation EndLoc,
                unsigned int N)

Description

Build clause with number of variables \a N.

Declared at: clang/include/clang/AST/OpenMPClause.h:4263

Parameters

clang::SourceLocation StartLoc
Starting location of the clause.
clang::SourceLocation LParenLoc
Location of '('.
clang::SourceLocation EndLoc
Ending location of the clause.
unsigned int N
Number of the variables in the clause.

clang::OMPCopyinClause::helper_expr_range
assignment_ops()

Declared at: clang/include/clang/AST/OpenMPClause.h:4379

clang::OMPCopyinClause::helper_expr_const_range
assignment_ops() const

Declared at: clang/include/clang/AST/OpenMPClause.h:4374

clang::OMPClause::const_child_range children()
    const

Declared at: clang/include/clang/AST/OpenMPClause.h:4389

clang::OMPClause::child_range children()

Declared at: clang/include/clang/AST/OpenMPClause.h:4384

static bool classof(const clang::OMPClause* T)

Declared at: clang/include/clang/AST/OpenMPClause.h:4401

Parameters

const clang::OMPClause* T

clang::OMPCopyinClause::helper_expr_range
destination_exprs()

Declared at: clang/include/clang/AST/OpenMPClause.h:4369

clang::OMPCopyinClause::helper_expr_const_range
destination_exprs() const

Declared at: clang/include/clang/AST/OpenMPClause.h:4364

MutableArrayRef<clang::Expr*> getAssignmentOps()

Description

Get the list of helper assignment expressions.

Declared at: clang/include/clang/AST/OpenMPClause.h:4309

ArrayRef<const clang::Expr*> getAssignmentOps()
    const

Declared at: clang/include/clang/AST/OpenMPClause.h:4312

MutableArrayRef<clang::Expr*>
getDestinationExprs()

Description

Get the list of helper destination expressions.

Declared at: clang/include/clang/AST/OpenMPClause.h:4295

ArrayRef<const clang::Expr*> getDestinationExprs()
    const

Declared at: clang/include/clang/AST/OpenMPClause.h:4298

ArrayRef<const clang::Expr*> getSourceExprs()
    const

Declared at: clang/include/clang/AST/OpenMPClause.h:4285

MutableArrayRef<clang::Expr*> getSourceExprs()

Description

Get the list of helper source expressions.

Declared at: clang/include/clang/AST/OpenMPClause.h:4282

void setAssignmentOps(
    ArrayRef<clang::Expr*> AssignmentOps)

Description

Set list of helper assignment expressions, required for proper codegen of the clause. These expressions are assignment expressions that assign source helper expressions to destination helper expressions correspondingly.

Declared at: clang/include/clang/AST/OpenMPClause.h:4306

Parameters

ArrayRef<clang::Expr*> AssignmentOps

void setDestinationExprs(
    ArrayRef<clang::Expr*> DstExprs)

Description

Set list of helper expressions, required for proper codegen of the clause. These expressions represent destination expression in the final assignment statement performed by the copyin clause.

Declared at: clang/include/clang/AST/OpenMPClause.h:4292

Parameters

ArrayRef<clang::Expr*> DstExprs

void setSourceExprs(
    ArrayRef<clang::Expr*> SrcExprs)

Description

Set list of helper expressions, required for proper codegen of the clause. These expressions represent source expression in the final assignment statement performed by the copyin clause.

Declared at: clang/include/clang/AST/OpenMPClause.h:4279

Parameters

ArrayRef<clang::Expr*> SrcExprs

clang::OMPCopyinClause::helper_expr_range
source_exprs()

Declared at: clang/include/clang/AST/OpenMPClause.h:4360

clang::OMPCopyinClause::helper_expr_const_range
source_exprs() const

Declared at: clang/include/clang/AST/OpenMPClause.h:4355

clang::OMPClause::child_range used_children()

Declared at: clang/include/clang/AST/OpenMPClause.h:4394

clang::OMPClause::const_child_range
used_children() const

Declared at: clang/include/clang/AST/OpenMPClause.h:4397