class OMPSizesClause

Declaration

class OMPSizesClause : public OMPClause, private TrailingObjects { /* full declaration omitted */ };

Description

This represents the 'sizes' clause in the '#pragma omp tile' directive.

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

Inherits from: OMPClause, TrailingObjects

Member Variables

private clang::SourceLocation LParenLoc
Location of '('.
private unsigned int NumSizes
Number of tile sizes in the clause.

Method Overview

  • public static clang::OMPSizesClause * Create(const clang::ASTContext & C, clang::SourceLocation StartLoc, clang::SourceLocation LParenLoc, clang::SourceLocation EndLoc, ArrayRef<clang::Expr *> Sizes)
  • public static clang::OMPSizesClause * CreateEmpty(const clang::ASTContext & C, unsigned int NumSizes)
  • private OMPSizesClause(int NumSizes)
  • 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 getLParenLoc() const
  • public unsigned int getNumSizes() const
  • public MutableArrayRef<clang::Expr *> getSizesRefs()
  • public ArrayRef<clang::Expr *> getSizesRefs() const
  • public void setLParenLoc(clang::SourceLocation Loc)
  • public void setSizesRefs(ArrayRef<clang::Expr *> VL)
  • public clang::OMPClause::child_range used_children()
  • public clang::OMPClause::const_child_range used_children() const

Inherited from OMPClause:

Methods

static clang::OMPSizesClause* Create(
    const clang::ASTContext& C,
    clang::SourceLocation StartLoc,
    clang::SourceLocation LParenLoc,
    clang::SourceLocation EndLoc,
    ArrayRef<clang::Expr*> Sizes)

Description

Build a 'sizes' AST node.

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

Parameters

const clang::ASTContext& C
Context of the AST.
clang::SourceLocation StartLoc
Location of the 'sizes' identifier.
clang::SourceLocation LParenLoc
Location of '('.
clang::SourceLocation EndLoc
Location of ')'.
ArrayRef<clang::Expr*> Sizes
Content of the clause.

static clang::OMPSizesClause* CreateEmpty(
    const clang::ASTContext& C,
    unsigned int NumSizes)

Description

Build an empty 'sizes' AST node for deserialization.

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

Parameters

const clang::ASTContext& C
Context of the AST.
unsigned int NumSizes
Number of items in the clause.

OMPSizesClause(int NumSizes)

Description

Build an empty clause.

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

Parameters

int NumSizes

clang::OMPClause::child_range children()

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

clang::OMPClause::const_child_range children()
    const

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

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

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

Parameters

const clang::OMPClause* T

clang::SourceLocation getLParenLoc() const

Description

Returns the location of '('.

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

unsigned int getNumSizes() const

Description

Returns the number of list items.

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

MutableArrayRef<clang::Expr*> getSizesRefs()

Description

Returns the tile size expressions.

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

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

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

void setLParenLoc(clang::SourceLocation Loc)

Description

Sets the location of '('.

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

Parameters

clang::SourceLocation Loc

void setSizesRefs(ArrayRef<clang::Expr*> VL)

Description

Sets the tile size expressions.

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

Parameters

ArrayRef<clang::Expr*> VL

clang::OMPClause::child_range used_children()

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

clang::OMPClause::const_child_range
used_children() const

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