class OMPDeclareVariantAttr

Declaration

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

Description

Attr - This represents one attribute.

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

Inherits from: InheritableAttr

Member Variables

private clang::Expr* variantFuncRef
private clang::OMPTraitInfo* traitInfos
private unsigned int adjustArgsNothing_Size
private clang::Expr** adjustArgsNothing_
private unsigned int adjustArgsNeedDevicePtr_Size
private clang::Expr** adjustArgsNeedDevicePtr_
private unsigned int appendArgs_Size
private clang::OMPDeclareVariantAttr::InteropType* appendArgs_

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 * ConvertInteropTypeToStr(clang::OMPDeclareVariantAttr::InteropType Val)
  • public static bool ConvertStrToInteropType(llvm::StringRef Val, clang::OMPDeclareVariantAttr::InteropType & Out)
  • public static clang::OMPDeclareVariantAttr * Create(clang::ASTContext & Ctx, clang::Expr * VariantFuncRef, clang::OMPTraitInfo * TraitInfos, clang::Expr ** AdjustArgsNothing, unsigned int AdjustArgsNothingSize, clang::Expr ** AdjustArgsNeedDevicePtr, unsigned int AdjustArgsNeedDevicePtrSize, clang::OMPDeclareVariantAttr::InteropType * AppendArgs, unsigned int AppendArgsSize, const clang::AttributeCommonInfo & CommonInfo)
  • public static clang::OMPDeclareVariantAttr * Create(clang::ASTContext & Ctx, clang::Expr * VariantFuncRef, clang::OMPTraitInfo * TraitInfos, clang::Expr ** AdjustArgsNothing, unsigned int AdjustArgsNothingSize, clang::Expr ** AdjustArgsNeedDevicePtr, unsigned int AdjustArgsNeedDevicePtrSize, clang::OMPDeclareVariantAttr::InteropType * AppendArgs, unsigned int AppendArgsSize, clang::SourceRange Range, AttributeCommonInfo::Syntax Syntax)
  • public static clang::OMPDeclareVariantAttr * CreateImplicit(clang::ASTContext & Ctx, clang::Expr * VariantFuncRef, clang::OMPTraitInfo * TraitInfos, clang::Expr ** AdjustArgsNothing, unsigned int AdjustArgsNothingSize, clang::Expr ** AdjustArgsNeedDevicePtr, unsigned int AdjustArgsNeedDevicePtrSize, clang::OMPDeclareVariantAttr::InteropType * AppendArgs, unsigned int AppendArgsSize, clang::SourceRange Range, AttributeCommonInfo::Syntax Syntax)
  • public static clang::OMPDeclareVariantAttr * CreateImplicit(clang::ASTContext & Ctx, clang::Expr * VariantFuncRef, clang::OMPTraitInfo * TraitInfos, clang::Expr ** AdjustArgsNothing, unsigned int AdjustArgsNothingSize, clang::Expr ** AdjustArgsNeedDevicePtr, unsigned int AdjustArgsNeedDevicePtrSize, clang::OMPDeclareVariantAttr::InteropType * AppendArgs, unsigned int AppendArgsSize, const clang::AttributeCommonInfo & CommonInfo = {clang::SourceRange{}})
  • public OMPDeclareVariantAttr(clang::ASTContext & Ctx, const clang::AttributeCommonInfo & CommonInfo, clang::Expr * VariantFuncRef, clang::OMPTraitInfo * TraitInfos, clang::Expr ** AdjustArgsNothing, unsigned int AdjustArgsNothingSize, clang::Expr ** AdjustArgsNeedDevicePtr, unsigned int AdjustArgsNeedDevicePtrSize, clang::OMPDeclareVariantAttr::InteropType * AppendArgs, unsigned int AppendArgsSize)
  • public OMPDeclareVariantAttr(clang::ASTContext & Ctx, const clang::AttributeCommonInfo & CommonInfo, clang::Expr * VariantFuncRef, clang::OMPTraitInfo * TraitInfos)
  • public llvm::iterator_range<adjustArgsNeedDevicePtr_iterator> adjustArgsNeedDevicePtr() const
  • public clang::OMPDeclareVariantAttr::adjustArgsNeedDevicePtr_iterator adjustArgsNeedDevicePtr_begin() const
  • public clang::OMPDeclareVariantAttr::adjustArgsNeedDevicePtr_iterator adjustArgsNeedDevicePtr_end() const
  • public unsigned int adjustArgsNeedDevicePtr_size() const
  • public llvm::iterator_range<adjustArgsNothing_iterator> adjustArgsNothing() const
  • public clang::OMPDeclareVariantAttr::adjustArgsNothing_iterator adjustArgsNothing_begin() const
  • public clang::OMPDeclareVariantAttr::adjustArgsNothing_iterator adjustArgsNothing_end() const
  • public unsigned int adjustArgsNothing_size() const
  • public llvm::iterator_range<appendArgs_iterator> appendArgs() const
  • public clang::OMPDeclareVariantAttr::appendArgs_iterator appendArgs_begin() const
  • public clang::OMPDeclareVariantAttr::appendArgs_iterator appendArgs_end() const
  • public unsigned int appendArgs_size() const
  • public static bool classof(const clang::Attr * A)
  • public clang::OMPDeclareVariantAttr * clone(clang::ASTContext & C) const
  • public const char * getSpelling() const
  • public clang::OMPTraitInfo & getTraitInfo()
  • public clang::OMPTraitInfo * getTraitInfos() const
  • public clang::Expr * getVariantFuncRef() const
  • 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* ConvertInteropTypeToStr(
    clang::OMPDeclareVariantAttr::InteropType Val)

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

Parameters

clang::OMPDeclareVariantAttr::InteropType Val

static bool ConvertStrToInteropType(
    llvm::StringRef Val,
    clang::OMPDeclareVariantAttr::InteropType&
        Out)

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

Parameters

llvm::StringRef Val
clang::OMPDeclareVariantAttr::InteropType& Out

static clang::OMPDeclareVariantAttr* Create(
    clang::ASTContext& Ctx,
    clang::Expr* VariantFuncRef,
    clang::OMPTraitInfo* TraitInfos,
    clang::Expr** AdjustArgsNothing,
    unsigned int AdjustArgsNothingSize,
    clang::Expr** AdjustArgsNeedDevicePtr,
    unsigned int AdjustArgsNeedDevicePtrSize,
    clang::OMPDeclareVariantAttr::InteropType*
        AppendArgs,
    unsigned int AppendArgsSize,
    const clang::AttributeCommonInfo& CommonInfo)

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

Parameters

clang::ASTContext& Ctx
clang::Expr* VariantFuncRef
clang::OMPTraitInfo* TraitInfos
clang::Expr** AdjustArgsNothing
unsigned int AdjustArgsNothingSize
clang::Expr** AdjustArgsNeedDevicePtr
unsigned int AdjustArgsNeedDevicePtrSize
clang::OMPDeclareVariantAttr::InteropType* AppendArgs
unsigned int AppendArgsSize
const clang::AttributeCommonInfo& CommonInfo

static clang::OMPDeclareVariantAttr* Create(
    clang::ASTContext& Ctx,
    clang::Expr* VariantFuncRef,
    clang::OMPTraitInfo* TraitInfos,
    clang::Expr** AdjustArgsNothing,
    unsigned int AdjustArgsNothingSize,
    clang::Expr** AdjustArgsNeedDevicePtr,
    unsigned int AdjustArgsNeedDevicePtrSize,
    clang::OMPDeclareVariantAttr::InteropType*
        AppendArgs,
    unsigned int AppendArgsSize,
    clang::SourceRange Range,
    AttributeCommonInfo::Syntax Syntax)

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

Parameters

clang::ASTContext& Ctx
clang::Expr* VariantFuncRef
clang::OMPTraitInfo* TraitInfos
clang::Expr** AdjustArgsNothing
unsigned int AdjustArgsNothingSize
clang::Expr** AdjustArgsNeedDevicePtr
unsigned int AdjustArgsNeedDevicePtrSize
clang::OMPDeclareVariantAttr::InteropType* AppendArgs
unsigned int AppendArgsSize
clang::SourceRange Range
AttributeCommonInfo::Syntax Syntax

static clang::OMPDeclareVariantAttr*
CreateImplicit(
    clang::ASTContext& Ctx,
    clang::Expr* VariantFuncRef,
    clang::OMPTraitInfo* TraitInfos,
    clang::Expr** AdjustArgsNothing,
    unsigned int AdjustArgsNothingSize,
    clang::Expr** AdjustArgsNeedDevicePtr,
    unsigned int AdjustArgsNeedDevicePtrSize,
    clang::OMPDeclareVariantAttr::InteropType*
        AppendArgs,
    unsigned int AppendArgsSize,
    clang::SourceRange Range,
    AttributeCommonInfo::Syntax Syntax)

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

Parameters

clang::ASTContext& Ctx
clang::Expr* VariantFuncRef
clang::OMPTraitInfo* TraitInfos
clang::Expr** AdjustArgsNothing
unsigned int AdjustArgsNothingSize
clang::Expr** AdjustArgsNeedDevicePtr
unsigned int AdjustArgsNeedDevicePtrSize
clang::OMPDeclareVariantAttr::InteropType* AppendArgs
unsigned int AppendArgsSize
clang::SourceRange Range
AttributeCommonInfo::Syntax Syntax

static clang::OMPDeclareVariantAttr*
CreateImplicit(
    clang::ASTContext& Ctx,
    clang::Expr* VariantFuncRef,
    clang::OMPTraitInfo* TraitInfos,
    clang::Expr** AdjustArgsNothing,
    unsigned int AdjustArgsNothingSize,
    clang::Expr** AdjustArgsNeedDevicePtr,
    unsigned int AdjustArgsNeedDevicePtrSize,
    clang::OMPDeclareVariantAttr::InteropType*
        AppendArgs,
    unsigned int AppendArgsSize,
    const clang::AttributeCommonInfo& CommonInfo =
        {clang::SourceRange{}})

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

Parameters

clang::ASTContext& Ctx
clang::Expr* VariantFuncRef
clang::OMPTraitInfo* TraitInfos
clang::Expr** AdjustArgsNothing
unsigned int AdjustArgsNothingSize
clang::Expr** AdjustArgsNeedDevicePtr
unsigned int AdjustArgsNeedDevicePtrSize
clang::OMPDeclareVariantAttr::InteropType* AppendArgs
unsigned int AppendArgsSize
const clang::AttributeCommonInfo& CommonInfo = {clang::SourceRange{}}

OMPDeclareVariantAttr(
    clang::ASTContext& Ctx,
    const clang::AttributeCommonInfo& CommonInfo,
    clang::Expr* VariantFuncRef,
    clang::OMPTraitInfo* TraitInfos,
    clang::Expr** AdjustArgsNothing,
    unsigned int AdjustArgsNothingSize,
    clang::Expr** AdjustArgsNeedDevicePtr,
    unsigned int AdjustArgsNeedDevicePtrSize,
    clang::OMPDeclareVariantAttr::InteropType*
        AppendArgs,
    unsigned int AppendArgsSize)

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

Parameters

clang::ASTContext& Ctx
const clang::AttributeCommonInfo& CommonInfo
clang::Expr* VariantFuncRef
clang::OMPTraitInfo* TraitInfos
clang::Expr** AdjustArgsNothing
unsigned int AdjustArgsNothingSize
clang::Expr** AdjustArgsNeedDevicePtr
unsigned int AdjustArgsNeedDevicePtrSize
clang::OMPDeclareVariantAttr::InteropType* AppendArgs
unsigned int AppendArgsSize

OMPDeclareVariantAttr(
    clang::ASTContext& Ctx,
    const clang::AttributeCommonInfo& CommonInfo,
    clang::Expr* VariantFuncRef,
    clang::OMPTraitInfo* TraitInfos)

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

Parameters

clang::ASTContext& Ctx
const clang::AttributeCommonInfo& CommonInfo
clang::Expr* VariantFuncRef
clang::OMPTraitInfo* TraitInfos

llvm::iterator_range<
    adjustArgsNeedDevicePtr_iterator>
adjustArgsNeedDevicePtr() const

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

clang::OMPDeclareVariantAttr::
    adjustArgsNeedDevicePtr_iterator
    adjustArgsNeedDevicePtr_begin() const

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

clang::OMPDeclareVariantAttr::
    adjustArgsNeedDevicePtr_iterator
    adjustArgsNeedDevicePtr_end() const

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

unsigned int adjustArgsNeedDevicePtr_size() const

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

llvm::iterator_range<adjustArgsNothing_iterator>
adjustArgsNothing() const

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

clang::OMPDeclareVariantAttr::
    adjustArgsNothing_iterator
    adjustArgsNothing_begin() const

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

clang::OMPDeclareVariantAttr::
    adjustArgsNothing_iterator
    adjustArgsNothing_end() const

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

unsigned int adjustArgsNothing_size() const

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

llvm::iterator_range<appendArgs_iterator>
appendArgs() const

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

clang::OMPDeclareVariantAttr::appendArgs_iterator
appendArgs_begin() const

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

clang::OMPDeclareVariantAttr::appendArgs_iterator
appendArgs_end() const

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

unsigned int appendArgs_size() const

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

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

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

Parameters

const clang::Attr* A

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

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

Parameters

clang::ASTContext& C

const char* getSpelling() const

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

clang::OMPTraitInfo& getTraitInfo()

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

clang::OMPTraitInfo* getTraitInfos() const

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

clang::Expr* getVariantFuncRef() const

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

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

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

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:7304

Parameters

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