class OMPDeclareTargetDeclAttr

Declaration

class OMPDeclareTargetDeclAttr : public InheritableAttr { /* full declaration omitted */ };

Description

Attr - This represents one attribute.

Declared at: build/tools/clang/include/clang/AST/Attrs.inc:7146

Inherits from: InheritableAttr

Member Variables

private clang::OMPDeclareTargetDeclAttr::MapTypeTy mapType
private clang::OMPDeclareTargetDeclAttr::DevTypeTy devType
private clang::Expr* indirectExpr
private bool indirect
private unsigned int level

Inherited from Attr:

protected Inherited
protected IsPackExpansion
protected Implicit
protected IsLateParsed
protected InheritEvenIfAlreadyPresent

Inherited from AttributeCommonInfo:

protected static SpellingNotCalculated = 15

Method Overview

  • public static const char * ConvertDevTypeTyToStr(clang::OMPDeclareTargetDeclAttr::DevTypeTy Val)
  • public static const char * ConvertMapTypeTyToStr(clang::OMPDeclareTargetDeclAttr::MapTypeTy Val)
  • public static bool ConvertStrToDevTypeTy(llvm::StringRef Val, clang::OMPDeclareTargetDeclAttr::DevTypeTy & Out)
  • public static bool ConvertStrToMapTypeTy(llvm::StringRef Val, clang::OMPDeclareTargetDeclAttr::MapTypeTy & Out)
  • public static clang::OMPDeclareTargetDeclAttr * Create(clang::ASTContext & Ctx, clang::OMPDeclareTargetDeclAttr::MapTypeTy MapType, clang::OMPDeclareTargetDeclAttr::DevTypeTy DevType, clang::Expr * IndirectExpr, bool Indirect, unsigned int Level, const clang::AttributeCommonInfo & CommonInfo)
  • public static clang::OMPDeclareTargetDeclAttr * Create(clang::ASTContext & Ctx, clang::OMPDeclareTargetDeclAttr::MapTypeTy MapType, clang::OMPDeclareTargetDeclAttr::DevTypeTy DevType, clang::Expr * IndirectExpr, bool Indirect, unsigned int Level, clang::SourceRange Range, AttributeCommonInfo::Syntax Syntax)
  • public static clang::OMPDeclareTargetDeclAttr * CreateImplicit(clang::ASTContext & Ctx, clang::OMPDeclareTargetDeclAttr::MapTypeTy MapType, clang::OMPDeclareTargetDeclAttr::DevTypeTy DevType, clang::Expr * IndirectExpr, bool Indirect, unsigned int Level, clang::SourceRange Range, AttributeCommonInfo::Syntax Syntax)
  • public static clang::OMPDeclareTargetDeclAttr * CreateImplicit(clang::ASTContext & Ctx, clang::OMPDeclareTargetDeclAttr::MapTypeTy MapType, clang::OMPDeclareTargetDeclAttr::DevTypeTy DevType, clang::Expr * IndirectExpr, bool Indirect, unsigned int Level, const clang::AttributeCommonInfo & CommonInfo = {clang::SourceRange{}})
  • public OMPDeclareTargetDeclAttr(clang::ASTContext & Ctx, const clang::AttributeCommonInfo & CommonInfo, clang::OMPDeclareTargetDeclAttr::MapTypeTy MapType, clang::OMPDeclareTargetDeclAttr::DevTypeTy DevType, clang::Expr * IndirectExpr, bool Indirect, unsigned int Level)
  • public static bool classof(const clang::Attr * A)
  • public clang::OMPDeclareTargetDeclAttr * clone(clang::ASTContext & C) const
  • public static llvm::Optional<OMPDeclareTargetDeclAttr *> getActiveAttr(const clang::ValueDecl * VD)
  • public clang::OMPDeclareTargetDeclAttr::DevTypeTy getDevType() const
  • public static llvm::Optional<DevTypeTy> getDeviceType(const clang::ValueDecl * VD)
  • public bool getIndirect() const
  • public clang::Expr * getIndirectExpr() const
  • public unsigned int getLevel() const
  • public static llvm::Optional<SourceLocation> getLocation(const clang::ValueDecl * VD)
  • public clang::OMPDeclareTargetDeclAttr::MapTypeTy getMapType() const
  • public const char * getSpelling() const
  • public static llvm::Optional<MapTypeTy> isDeclareTargetDeclaration(const clang::ValueDecl * VD)
  • public void printPretty(llvm::raw_ostream & OS, const clang::PrintingPolicy & Policy) const
  • public void printPrettyPragma(llvm::raw_ostream & OS, const clang::PrintingPolicy & Policy) const

Inherited from InheritableAttr:

Inherited from Attr:

Inherited from AttributeCommonInfo:

Methods

static const char* ConvertDevTypeTyToStr(
    clang::OMPDeclareTargetDeclAttr::DevTypeTy
        Val)

Declared at: build/tools/clang/include/clang/AST/Attrs.inc:7201

Parameters

clang::OMPDeclareTargetDeclAttr::DevTypeTy Val

static const char* ConvertMapTypeTyToStr(
    clang::OMPDeclareTargetDeclAttr::MapTypeTy
        Val)

Declared at: build/tools/clang/include/clang/AST/Attrs.inc:7195

Parameters

clang::OMPDeclareTargetDeclAttr::MapTypeTy Val

static bool ConvertStrToDevTypeTy(
    llvm::StringRef Val,
    clang::OMPDeclareTargetDeclAttr::DevTypeTy&
        Out)

Declared at: build/tools/clang/include/clang/AST/Attrs.inc:7200

Parameters

llvm::StringRef Val
clang::OMPDeclareTargetDeclAttr::DevTypeTy& Out

static bool ConvertStrToMapTypeTy(
    llvm::StringRef Val,
    clang::OMPDeclareTargetDeclAttr::MapTypeTy&
        Out)

Declared at: build/tools/clang/include/clang/AST/Attrs.inc:7194

Parameters

llvm::StringRef Val
clang::OMPDeclareTargetDeclAttr::MapTypeTy& Out

static clang::OMPDeclareTargetDeclAttr* Create(
    clang::ASTContext& Ctx,
    clang::OMPDeclareTargetDeclAttr::MapTypeTy
        MapType,
    clang::OMPDeclareTargetDeclAttr::DevTypeTy
        DevType,
    clang::Expr* IndirectExpr,
    bool Indirect,
    unsigned int Level,
    const clang::AttributeCommonInfo& CommonInfo)

Declared at: build/tools/clang/include/clang/AST/Attrs.inc:7173

Parameters

clang::ASTContext& Ctx
clang::OMPDeclareTargetDeclAttr::MapTypeTy MapType
clang::OMPDeclareTargetDeclAttr::DevTypeTy DevType
clang::Expr* IndirectExpr
bool Indirect
unsigned int Level
const clang::AttributeCommonInfo& CommonInfo

static clang::OMPDeclareTargetDeclAttr* Create(
    clang::ASTContext& Ctx,
    clang::OMPDeclareTargetDeclAttr::MapTypeTy
        MapType,
    clang::OMPDeclareTargetDeclAttr::DevTypeTy
        DevType,
    clang::Expr* IndirectExpr,
    bool Indirect,
    unsigned int Level,
    clang::SourceRange Range,
    AttributeCommonInfo::Syntax Syntax)

Declared at: build/tools/clang/include/clang/AST/Attrs.inc:7175

Parameters

clang::ASTContext& Ctx
clang::OMPDeclareTargetDeclAttr::MapTypeTy MapType
clang::OMPDeclareTargetDeclAttr::DevTypeTy DevType
clang::Expr* IndirectExpr
bool Indirect
unsigned int Level
clang::SourceRange Range
AttributeCommonInfo::Syntax Syntax

static clang::OMPDeclareTargetDeclAttr*
CreateImplicit(
    clang::ASTContext& Ctx,
    clang::OMPDeclareTargetDeclAttr::MapTypeTy
        MapType,
    clang::OMPDeclareTargetDeclAttr::DevTypeTy
        DevType,
    clang::Expr* IndirectExpr,
    bool Indirect,
    unsigned int Level,
    clang::SourceRange Range,
    AttributeCommonInfo::Syntax Syntax)

Declared at: build/tools/clang/include/clang/AST/Attrs.inc:7174

Parameters

clang::ASTContext& Ctx
clang::OMPDeclareTargetDeclAttr::MapTypeTy MapType
clang::OMPDeclareTargetDeclAttr::DevTypeTy DevType
clang::Expr* IndirectExpr
bool Indirect
unsigned int Level
clang::SourceRange Range
AttributeCommonInfo::Syntax Syntax

static clang::OMPDeclareTargetDeclAttr*
CreateImplicit(
    clang::ASTContext& Ctx,
    clang::OMPDeclareTargetDeclAttr::MapTypeTy
        MapType,
    clang::OMPDeclareTargetDeclAttr::DevTypeTy
        DevType,
    clang::Expr* IndirectExpr,
    bool Indirect,
    unsigned int Level,
    const clang::AttributeCommonInfo& CommonInfo =
        {clang::SourceRange{}})

Declared at: build/tools/clang/include/clang/AST/Attrs.inc:7172

Parameters

clang::ASTContext& Ctx
clang::OMPDeclareTargetDeclAttr::MapTypeTy MapType
clang::OMPDeclareTargetDeclAttr::DevTypeTy DevType
clang::Expr* IndirectExpr
bool Indirect
unsigned int Level
const clang::AttributeCommonInfo& CommonInfo = {clang::SourceRange{}}

OMPDeclareTargetDeclAttr(
    clang::ASTContext& Ctx,
    const clang::AttributeCommonInfo& CommonInfo,
    clang::OMPDeclareTargetDeclAttr::MapTypeTy
        MapType,
    clang::OMPDeclareTargetDeclAttr::DevTypeTy
        DevType,
    clang::Expr* IndirectExpr,
    bool Indirect,
    unsigned int Level)

Declared at: build/tools/clang/include/clang/AST/Attrs.inc:7178

Parameters

clang::ASTContext& Ctx
const clang::AttributeCommonInfo& CommonInfo
clang::OMPDeclareTargetDeclAttr::MapTypeTy MapType
clang::OMPDeclareTargetDeclAttr::DevTypeTy DevType
clang::Expr* IndirectExpr
bool Indirect
unsigned int Level

static bool classof(const clang::Attr* A)

Declared at: build/tools/clang/include/clang/AST/Attrs.inc:7223

Parameters

const clang::Attr* A

clang::OMPDeclareTargetDeclAttr* clone(
    clang::ASTContext& C) const

Declared at: build/tools/clang/include/clang/AST/Attrs.inc:7186

Parameters

clang::ASTContext& C

static llvm::Optional<OMPDeclareTargetDeclAttr*>
getActiveAttr(const clang::ValueDecl* VD)

Declared at: build/tools/clang/include/clang/AST/Attrs.inc:7218

Parameters

const clang::ValueDecl* VD

clang::OMPDeclareTargetDeclAttr::DevTypeTy
getDevType() const

Declared at: build/tools/clang/include/clang/AST/Attrs.inc:7196

static llvm::Optional<DevTypeTy> getDeviceType(
    const clang::ValueDecl* VD)

Declared at: build/tools/clang/include/clang/AST/Attrs.inc:7219

Parameters

const clang::ValueDecl* VD

bool getIndirect() const

Declared at: build/tools/clang/include/clang/AST/Attrs.inc:7206

clang::Expr* getIndirectExpr() const

Declared at: build/tools/clang/include/clang/AST/Attrs.inc:7202

unsigned int getLevel() const

Declared at: build/tools/clang/include/clang/AST/Attrs.inc:7210

static llvm::Optional<SourceLocation> getLocation(
    const clang::ValueDecl* VD)

Declared at: build/tools/clang/include/clang/AST/Attrs.inc:7220

Parameters

const clang::ValueDecl* VD

clang::OMPDeclareTargetDeclAttr::MapTypeTy
getMapType() const

Declared at: build/tools/clang/include/clang/AST/Attrs.inc:7190

const char* getSpelling() const

Declared at: build/tools/clang/include/clang/AST/Attrs.inc:7189

static llvm::Optional<MapTypeTy>
isDeclareTargetDeclaration(
    const clang::ValueDecl* VD)

Declared at: build/tools/clang/include/clang/AST/Attrs.inc:7217

Parameters

const clang::ValueDecl* VD

void printPretty(
    llvm::raw_ostream& OS,
    const clang::PrintingPolicy& Policy) const

Declared at: build/tools/clang/include/clang/AST/Attrs.inc:7187

Parameters

llvm::raw_ostream& OS
const clang::PrintingPolicy& Policy

void printPrettyPragma(
    llvm::raw_ostream& OS,
    const clang::PrintingPolicy& Policy) const

Declared at: build/tools/clang/include/clang/AST/Attrs.inc:7215

Parameters

llvm::raw_ostream& OS
const clang::PrintingPolicy& Policy