clang 20.0.0git
|
#include "clang/Sema/SemaAMDGPU.h"
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) | |
ASTContext & | getASTContext () const |
DiagnosticsEngine & | getDiagnostics () const |
const LangOptions & | getLangOpts () 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 | |
Sema & | SemaRef |
Definition at line 23 of file SemaAMDGPU.h.
clang::SemaAMDGPU::SemaAMDGPU | ( | Sema & | S | ) |
Definition at line 23 of file SemaAMDGPU.cpp.
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().
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().
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().
Definition at line 25 of file SemaAMDGPU.cpp.
References clang::SemaBase::Diag(), clang::ActionResult< PtrTy, Compress >::get(), clang::CallExpr::getArg(), clang::SemaBase::getASTContext(), clang::Expr::getExprLoc(), clang::APValue::getInt(), clang::Stmt::getSourceRange(), clang::ActionResult< PtrTy, Compress >::isInvalid(), clang::SemaBase::SemaRef, clang::Expr::EvalResult::Val, and clang::Sema::VerifyIntegerConstantExpression().
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().
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().
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().
void clang::SemaAMDGPU::handleAMDGPUFlatWorkGroupSizeAttr | ( | Decl * | D, |
const ParsedAttr & | AL | ||
) |
Definition at line 160 of file SemaAMDGPU.cpp.
References addAMDGPUFlatWorkGroupSizeAttr(), D, and clang::ParsedAttr::getArgAsExpr().
Referenced by ProcessDeclAttribute().
void clang::SemaAMDGPU::handleAMDGPUMaxNumWorkGroupsAttr | ( | Decl * | D, |
const ParsedAttr & | AL | ||
) |
Definition at line 304 of file SemaAMDGPU.cpp.
References addAMDGPUMaxNumWorkGroupsAttr(), D, clang::ParsedAttr::getArgAsExpr(), and clang::ParsedAttr::getNumArgs().
Referenced by ProcessDeclAttribute().
void clang::SemaAMDGPU::handleAMDGPUNumSGPRAttr | ( | Decl * | D, |
const ParsedAttr & | AL | ||
) |
Definition at line 230 of file SemaAMDGPU.cpp.
References clang::Sema::checkUInt32Argument(), D, clang::ParsedAttr::getArgAsExpr(), clang::SemaBase::getASTContext(), and clang::SemaBase::SemaRef.
Referenced by ProcessDeclAttribute().
void clang::SemaAMDGPU::handleAMDGPUNumVGPRAttr | ( | Decl * | D, |
const ParsedAttr & | AL | ||
) |
Definition at line 240 of file SemaAMDGPU.cpp.
References clang::Sema::checkUInt32Argument(), D, clang::ParsedAttr::getArgAsExpr(), clang::SemaBase::getASTContext(), and clang::SemaBase::SemaRef.
Referenced by ProcessDeclAttribute().
void clang::SemaAMDGPU::handleAMDGPUWavesPerEUAttr | ( | Decl * | D, |
const ParsedAttr & | AL | ||
) |
Definition at line 220 of file SemaAMDGPU.cpp.
References addAMDGPUWavesPerEUAttr(), clang::ParsedAttr::checkAtLeastNumArgs(), clang::ParsedAttr::checkAtMostNumArgs(), D, clang::ParsedAttr::getArgAsExpr(), clang::ParsedAttr::getNumArgs(), and clang::SemaBase::SemaRef.
Referenced by ProcessDeclAttribute().