class OMPAffinityClause

Declaration

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

Description

This represents clause 'affinity' in the '#pragma omp task'-based directives. In this example directive '#pragma omp task' has clause 'affinity' with the affinity modifer 'iterator(i = 0:n)' and locator items '([3][n])a', 'b[:n]' and 'c[i]'.

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

Inherits from: OMPVarListClause, TrailingObjects

Member Variables

private clang::SourceLocation ColonLoc
Location of ':' symbol.

Method Overview

  • public static clang::OMPAffinityClause * Create(const clang::ASTContext & C, clang::SourceLocation StartLoc, clang::SourceLocation LParenLoc, clang::SourceLocation ColonLoc, clang::SourceLocation EndLoc, clang::Expr * Modifier, ArrayRef<clang::Expr *> Locators)
  • public static clang::OMPAffinityClause * CreateEmpty(const clang::ASTContext & C, unsigned int N)
  • private OMPAffinityClause(clang::SourceLocation StartLoc, clang::SourceLocation LParenLoc, clang::SourceLocation ColonLoc, clang::SourceLocation EndLoc, unsigned int N)
  • private OMPAffinityClause(unsigned int N)
  • public clang::OMPClause::child_range children()
  • public clang::OMPClause::const_child_range children() const
  • public static bool classof(const clang::OMPClause * T)
  • public clang::SourceLocation getColonLoc() const
  • public clang::Expr * getModifier()
  • public clang::Expr * getModifier() const
  • private void setColonLoc(clang::SourceLocation Loc)
  • private void setModifier(clang::Expr * E)
  • public clang::OMPClause::child_range used_children()
  • public clang::OMPClause::const_child_range used_children() const

Methods

static clang::OMPAffinityClause* Create(
    const clang::ASTContext& C,
    clang::SourceLocation StartLoc,
    clang::SourceLocation LParenLoc,
    clang::SourceLocation ColonLoc,
    clang::SourceLocation EndLoc,
    clang::Expr* Modifier,
    ArrayRef<clang::Expr*> Locators)

Description

Creates clause with a modifier a list of locator items.

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

Parameters

const clang::ASTContext& C
AST context.
clang::SourceLocation StartLoc
Starting location of the clause.
clang::SourceLocation LParenLoc
Location of '('.
clang::SourceLocation ColonLoc
Location of ':'.
clang::SourceLocation EndLoc
Ending location of the clause.
clang::Expr* Modifier
ArrayRef<clang::Expr*> Locators
List of locator items.

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

Description

Creates an empty clause with the place for \p N locator items.

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

Parameters

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

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

Description

Build clause.

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

Parameters

clang::SourceLocation StartLoc
Starting location of the clause.
clang::SourceLocation LParenLoc
Location of '('.
clang::SourceLocation ColonLoc
Location of ':'.
clang::SourceLocation EndLoc
Ending location of the clause.
unsigned int N
Number of locators asssociated with the clause.

OMPAffinityClause(unsigned int N)

Description

Build an empty clause.

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

Parameters

unsigned int N
Number of locators asssociated with the clause.

clang::OMPClause::child_range children()

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

clang::OMPClause::const_child_range children()
    const

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

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

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

Parameters

const clang::OMPClause* T

clang::SourceLocation getColonLoc() const

Description

Gets the location of ':' symbol.

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

clang::Expr* getModifier()

Description

Gets affinity modifier.

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

clang::Expr* getModifier() const

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

void setColonLoc(clang::SourceLocation Loc)

Description

Sets the location of ':' symbol.

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

Parameters

clang::SourceLocation Loc

void setModifier(clang::Expr* E)

Description

Sets the affinity modifier for the clause, if any.

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

Parameters

clang::Expr* E

clang::OMPClause::child_range used_children()

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

clang::OMPClause::const_child_range
used_children() const

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