clang 20.0.0git
Public Member Functions | List of all members
clang::SemaAMDGPU Class Reference

#include "clang/Sema/SemaAMDGPU.h"

Inheritance diagram for clang::SemaAMDGPU:
Inheritance graph
[legend]

Public Member Functions

 SemaAMDGPU (Sema &S)
 
bool CheckAMDGCNBuiltinFunctionCall (unsigned BuiltinID, CallExpr *TheCall)
 
AMDGPUFlatWorkGroupSizeAttr * CreateAMDGPUFlatWorkGroupSizeAttr (const AttributeCommonInfo &CI, Expr *Min, Expr *Max)
 Create an AMDGPUWavesPerEUAttr attribute.
 
void addAMDGPUFlatWorkGroupSizeAttr (Decl *D, const AttributeCommonInfo &CI, Expr *Min, Expr *Max)
 addAMDGPUFlatWorkGroupSizeAttr - Adds an amdgpu_flat_work_group_size attribute to a particular declaration.
 
AMDGPUWavesPerEUAttr * CreateAMDGPUWavesPerEUAttr (const AttributeCommonInfo &CI, Expr *Min, Expr *Max)
 Create an AMDGPUWavesPerEUAttr attribute.
 
void addAMDGPUWavesPerEUAttr (Decl *D, const AttributeCommonInfo &CI, Expr *Min, Expr *Max)
 addAMDGPUWavePersEUAttr - Adds an amdgpu_waves_per_eu attribute to a particular declaration.
 
AMDGPUMaxNumWorkGroupsAttr * CreateAMDGPUMaxNumWorkGroupsAttr (const AttributeCommonInfo &CI, Expr *XExpr, Expr *YExpr, Expr *ZExpr)
 Create an AMDGPUMaxNumWorkGroupsAttr attribute.
 
void addAMDGPUMaxNumWorkGroupsAttr (Decl *D, const AttributeCommonInfo &CI, Expr *XExpr, Expr *YExpr, Expr *ZExpr)
 addAMDGPUMaxNumWorkGroupsAttr - Adds an amdgpu_max_num_work_groups attribute to a particular declaration.
 
void handleAMDGPUWavesPerEUAttr (Decl *D, const ParsedAttr &AL)
 
void handleAMDGPUNumSGPRAttr (Decl *D, const ParsedAttr &AL)
 
void handleAMDGPUNumVGPRAttr (Decl *D, const ParsedAttr &AL)
 
void handleAMDGPUMaxNumWorkGroupsAttr (Decl *D, const ParsedAttr &AL)
 
void handleAMDGPUFlatWorkGroupSizeAttr (Decl *D, const ParsedAttr &AL)
 
- Public Member Functions inherited from clang::SemaBase
 SemaBase (Sema &S)
 
ASTContextgetASTContext () const
 
DiagnosticsEnginegetDiagnostics () const
 
const LangOptionsgetLangOpts () const
 
SemaDiagnosticBuilder Diag (SourceLocation Loc, unsigned DiagID, bool DeferHint=false)
 Emit a diagnostic.
 
SemaDiagnosticBuilder Diag (SourceLocation Loc, const PartialDiagnostic &PD, bool DeferHint=false)
 Emit a partial diagnostic.
 
PartialDiagnostic PDiag (unsigned DiagID=0)
 Build a partial diagnostic.
 

Additional Inherited Members

- Public Attributes inherited from clang::SemaBase
SemaSemaRef
 

Detailed Description

Definition at line 23 of file SemaAMDGPU.h.

Constructor & Destructor Documentation

◆ SemaAMDGPU()

clang::SemaAMDGPU::SemaAMDGPU ( Sema S)

Definition at line 23 of file SemaAMDGPU.cpp.

Member Function Documentation

◆ addAMDGPUFlatWorkGroupSizeAttr()

void clang::SemaAMDGPU::addAMDGPUFlatWorkGroupSizeAttr ( Decl D,
const AttributeCommonInfo CI,
Expr Min,
Expr Max 
)

addAMDGPUFlatWorkGroupSizeAttr - Adds an amdgpu_flat_work_group_size attribute to a particular declaration.

Definition at line 153 of file SemaAMDGPU.cpp.

References CreateAMDGPUFlatWorkGroupSizeAttr(), and D.

Referenced by handleAMDGPUFlatWorkGroupSizeAttr(), and instantiateDependentAMDGPUFlatWorkGroupSizeAttr().

◆ addAMDGPUMaxNumWorkGroupsAttr()

void clang::SemaAMDGPU::addAMDGPUMaxNumWorkGroupsAttr ( Decl D,
const AttributeCommonInfo CI,
Expr XExpr,
Expr YExpr,
Expr ZExpr 
)

addAMDGPUMaxNumWorkGroupsAttr - Adds an amdgpu_max_num_work_groups attribute to a particular declaration.

Definition at line 296 of file SemaAMDGPU.cpp.

References CreateAMDGPUMaxNumWorkGroupsAttr(), and D.

Referenced by handleAMDGPUMaxNumWorkGroupsAttr(), and instantiateDependentAMDGPUMaxNumWorkGroupsAttr().

◆ addAMDGPUWavesPerEUAttr()

void clang::SemaAMDGPU::addAMDGPUWavesPerEUAttr ( Decl D,
const AttributeCommonInfo CI,
Expr Min,
Expr Max 
)

addAMDGPUWavePersEUAttr - Adds an amdgpu_waves_per_eu attribute to a particular declaration.

Definition at line 214 of file SemaAMDGPU.cpp.

References CreateAMDGPUWavesPerEUAttr(), and D.

Referenced by handleAMDGPUWavesPerEUAttr(), and instantiateDependentAMDGPUWavesPerEUAttr().

◆ CheckAMDGCNBuiltinFunctionCall()

bool clang::SemaAMDGPU::CheckAMDGCNBuiltinFunctionCall ( unsigned  BuiltinID,
CallExpr TheCall 
)

◆ CreateAMDGPUFlatWorkGroupSizeAttr()

AMDGPUFlatWorkGroupSizeAttr * clang::SemaAMDGPU::CreateAMDGPUFlatWorkGroupSizeAttr ( const AttributeCommonInfo CI,
Expr Min,
Expr Max 
)

Create an AMDGPUWavesPerEUAttr attribute.

Definition at line 142 of file SemaAMDGPU.cpp.

References clang::checkAMDGPUFlatWorkGroupSizeArguments(), clang::SemaBase::getASTContext(), and clang::SemaBase::SemaRef.

Referenced by addAMDGPUFlatWorkGroupSizeAttr().

◆ CreateAMDGPUMaxNumWorkGroupsAttr()

AMDGPUMaxNumWorkGroupsAttr * clang::SemaAMDGPU::CreateAMDGPUMaxNumWorkGroupsAttr ( const AttributeCommonInfo CI,
Expr XExpr,
Expr YExpr,
Expr ZExpr 
)

Create an AMDGPUMaxNumWorkGroupsAttr attribute.

Definition at line 283 of file SemaAMDGPU.cpp.

References clang::checkAMDGPUMaxNumWorkGroupsArguments(), clang::SemaBase::getASTContext(), and clang::SemaBase::SemaRef.

Referenced by addAMDGPUMaxNumWorkGroupsAttr().

◆ CreateAMDGPUWavesPerEUAttr()

AMDGPUWavesPerEUAttr * clang::SemaAMDGPU::CreateAMDGPUWavesPerEUAttr ( const AttributeCommonInfo CI,
Expr Min,
Expr Max 
)

Create an AMDGPUWavesPerEUAttr attribute.

Definition at line 203 of file SemaAMDGPU.cpp.

References clang::checkAMDGPUWavesPerEUArguments(), clang::SemaBase::getASTContext(), and clang::SemaBase::SemaRef.

Referenced by addAMDGPUWavesPerEUAttr().

◆ handleAMDGPUFlatWorkGroupSizeAttr()

void clang::SemaAMDGPU::handleAMDGPUFlatWorkGroupSizeAttr ( Decl D,
const ParsedAttr AL 
)

◆ handleAMDGPUMaxNumWorkGroupsAttr()

void clang::SemaAMDGPU::handleAMDGPUMaxNumWorkGroupsAttr ( Decl D,
const ParsedAttr AL 
)

◆ handleAMDGPUNumSGPRAttr()

void clang::SemaAMDGPU::handleAMDGPUNumSGPRAttr ( Decl D,
const ParsedAttr AL 
)

◆ handleAMDGPUNumVGPRAttr()

void clang::SemaAMDGPU::handleAMDGPUNumVGPRAttr ( Decl D,
const ParsedAttr AL 
)

◆ handleAMDGPUWavesPerEUAttr()

void clang::SemaAMDGPU::handleAMDGPUWavesPerEUAttr ( Decl D,
const ParsedAttr AL 
)

The documentation for this class was generated from the following files: