class OMPUseDevicePtrClause

Declaration

class OMPUseDevicePtrClause : public OMPMappableExprListClause,
                              private TrailingObjects { /* full declaration omitted */ };

Description

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

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

Inherits from: OMPMappableExprListClause, TrailingObjects

Method Overview

  • public static clang::OMPUseDevicePtrClause * Create(const clang::ASTContext & C, const clang::OMPVarListLocTy & Locs, ArrayRef<clang::Expr *> Vars, ArrayRef<clang::Expr *> PrivateVars, ArrayRef<clang::Expr *> Inits, ArrayRef<clang::ValueDecl *> Declarations, clang::OMPClauseMappableExprCommon::MappableExprComponentListsRef ComponentLists)
  • public static clang::OMPUseDevicePtrClause * CreateEmpty(const clang::ASTContext & C, const clang::OMPMappableExprListSizeTy & Sizes)
  • private OMPUseDevicePtrClause(const clang::OMPMappableExprListSizeTy & Sizes)
  • private OMPUseDevicePtrClause(const clang::OMPVarListLocTy & Locs, const clang::OMPMappableExprListSizeTy & Sizes)
  • public clang::OMPClause::const_child_range children() const
  • public clang::OMPClause::child_range children()
  • public static bool classof(const clang::OMPClause * T)
  • private MutableArrayRef<clang::Expr *> getInits()
  • private ArrayRef<const clang::Expr *> getInits() const
  • private ArrayRef<const clang::Expr *> getPrivateCopies() const
  • private MutableArrayRef<clang::Expr *> getPrivateCopies()
  • public clang::OMPUseDevicePtrClause::inits_range inits()
  • public clang::OMPUseDevicePtrClause::inits_const_range inits() const
  • private size_t numTrailingObjects(OverloadToken<clang::Expr *>) const
  • private size_t numTrailingObjects(OverloadToken<unsigned int>) const
  • private size_t numTrailingObjects(OverloadToken<clang::ValueDecl *>) const
  • public clang::OMPUseDevicePtrClause::private_copies_range private_copies()
  • public clang::OMPUseDevicePtrClause::private_copies_const_range private_copies() const
  • private void setInits(ArrayRef<clang::Expr *> VL)
  • private void setPrivateCopies(ArrayRef<clang::Expr *> VL)
  • public clang::OMPClause::child_range used_children()
  • public clang::OMPClause::const_child_range used_children() const

Methods

static clang::OMPUseDevicePtrClause* Create(
    const clang::ASTContext& C,
    const clang::OMPVarListLocTy& Locs,
    ArrayRef<clang::Expr*> Vars,
    ArrayRef<clang::Expr*> PrivateVars,
    ArrayRef<clang::Expr*> Inits,
    ArrayRef<clang::ValueDecl*> Declarations,
    clang::OMPClauseMappableExprCommon::
        MappableExprComponentListsRef
            ComponentLists)

Description

Creates clause with a list of variables \a Vars.

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

Parameters

const clang::ASTContext& C
AST context.
const clang::OMPVarListLocTy& Locs
Locations needed to build a mappable clause. It includes 1) StartLoc: starting location of the clause (the clause keyword); 2) LParenLoc: location of '('; 3) EndLoc: ending location of the clause.
ArrayRef<clang::Expr*> Vars
The original expression used in the clause.
ArrayRef<clang::Expr*> PrivateVars
Expressions referring to private copies.
ArrayRef<clang::Expr*> Inits
Expressions referring to private copy initializers.
ArrayRef<clang::ValueDecl*> Declarations
Declarations used in the clause.
clang::OMPClauseMappableExprCommon:: MappableExprComponentListsRef ComponentLists
Component lists used in the clause.

static clang::OMPUseDevicePtrClause* CreateEmpty(
    const clang::ASTContext& C,
    const clang::OMPMappableExprListSizeTy& Sizes)

Description

Creates an empty clause with the place for \a NumVars variables.

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

Parameters

const clang::ASTContext& C
AST context.
const clang::OMPMappableExprListSizeTy& Sizes
All required sizes to build a mappable clause. It includes 1) NumVars: number of expressions listed in this clause; 2) NumUniqueDeclarations: number of unique base declarations in this clause; 3) NumComponentLists: number of component lists in this clause; and 4) NumComponents: total number of expression components in the clause.

OMPUseDevicePtrClause(
    const clang::OMPMappableExprListSizeTy& Sizes)

Description

Build an empty clause.

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

Parameters

const clang::OMPMappableExprListSizeTy& Sizes
All required sizes to build a mappable clause. It includes 1) NumVars: number of expressions listed in this clause; 2) NumUniqueDeclarations: number of unique base declarations in this clause; 3) NumComponentLists: number of component lists in this clause; and 4) NumComponents: total number of expression components in the clause.

OMPUseDevicePtrClause(
    const clang::OMPVarListLocTy& Locs,
    const clang::OMPMappableExprListSizeTy& Sizes)

Description

Build clause with number of variables \a NumVars.

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

Parameters

const clang::OMPVarListLocTy& Locs
Locations needed to build a mappable clause. It includes 1) StartLoc: starting location of the clause (the clause keyword); 2) LParenLoc: location of '('; 3) EndLoc: ending location of the clause.
const clang::OMPMappableExprListSizeTy& Sizes
All required sizes to build a mappable clause. It includes 1) NumVars: number of expressions listed in this clause; 2) NumUniqueDeclarations: number of unique base declarations in this clause; 3) NumComponentLists: number of component lists in this clause; and 4) NumComponents: total number of expression components in the clause.

clang::OMPClause::const_child_range children()
    const

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

clang::OMPClause::child_range children()

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

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

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

Parameters

const clang::OMPClause* T

MutableArrayRef<clang::Expr*> getInits()

Description

Gets the list of references to initializer variables for new private variables.

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

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

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

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

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

MutableArrayRef<clang::Expr*> getPrivateCopies()

Description

Gets the list of references to private copies with initializers for new private variables.

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

clang::OMPUseDevicePtrClause::inits_range inits()

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

clang::OMPUseDevicePtrClause::inits_const_range
inits() const

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

size_t numTrailingObjects(
    OverloadToken<clang::Expr*>) const

Description

Define the sizes of each trailing object array except the last one. This is required for TrailingObjects to work properly.

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

Parameters

OverloadToken<clang::Expr*>

size_t numTrailingObjects(
    OverloadToken<unsigned int>) const

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

Parameters

OverloadToken<unsigned int>

size_t numTrailingObjects(
    OverloadToken<clang::ValueDecl*>) const

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

Parameters

OverloadToken<clang::ValueDecl*>

clang::OMPUseDevicePtrClause::private_copies_range
private_copies()

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

clang::OMPUseDevicePtrClause::
    private_copies_const_range
    private_copies() const

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

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

Description

Sets the list of references to initializer variables for new private variables.

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

Parameters

ArrayRef<clang::Expr*> VL
List of references.

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

Description

Sets the list of references to private copies with initializers for new private variables.

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

Parameters

ArrayRef<clang::Expr*> VL
List of references.

clang::OMPClause::child_range used_children()

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

clang::OMPClause::const_child_range
used_children() const

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