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

#include "clang/Sema/SemaHLSL.h"

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

Public Member Functions

 SemaHLSL (Sema &S)
 
DeclActOnStartBuffer (Scope *BufferScope, bool CBuffer, SourceLocation KwLoc, IdentifierInfo *Ident, SourceLocation IdentLoc, SourceLocation LBrace)
 
void ActOnFinishBuffer (Decl *Dcl, SourceLocation RBrace)
 
HLSLNumThreadsAttr * mergeNumThreadsAttr (Decl *D, const AttributeCommonInfo &AL, int X, int Y, int Z)
 
HLSLWaveSizeAttr * mergeWaveSizeAttr (Decl *D, const AttributeCommonInfo &AL, int Min, int Max, int Preferred, int SpelledArgsCount)
 
HLSLShaderAttr * mergeShaderAttr (Decl *D, const AttributeCommonInfo &AL, llvm::Triple::EnvironmentType ShaderType)
 
HLSLParamModifierAttr * mergeParamModifierAttr (Decl *D, const AttributeCommonInfo &AL, HLSLParamModifierAttr::Spelling Spelling)
 
void ActOnTopLevelFunction (FunctionDecl *FD)
 
void ActOnVariableDeclarator (VarDecl *VD)
 
void CheckEntryPoint (FunctionDecl *FD)
 
void CheckSemanticAnnotation (FunctionDecl *EntryPoint, const Decl *Param, const HLSLAnnotationAttr *AnnotationAttr)
 
void DiagnoseAttrStageMismatch (const Attr *A, llvm::Triple::EnvironmentType Stage, std::initializer_list< llvm::Triple::EnvironmentType > AllowedStages)
 
void DiagnoseAvailabilityViolations (TranslationUnitDecl *TU)
 
QualType handleVectorBinOpConversion (ExprResult &LHS, ExprResult &RHS, QualType LHSType, QualType RHSType, bool IsCompAssign)
 
void emitLogicalOperatorFixIt (Expr *LHS, Expr *RHS, BinaryOperatorKind Opc)
 
void handleNumThreadsAttr (Decl *D, const ParsedAttr &AL)
 
void handleWaveSizeAttr (Decl *D, const ParsedAttr &AL)
 
void handleSV_DispatchThreadIDAttr (Decl *D, const ParsedAttr &AL)
 
void handleSV_GroupThreadIDAttr (Decl *D, const ParsedAttr &AL)
 
void handleSV_GroupIDAttr (Decl *D, const ParsedAttr &AL)
 
void handlePackOffsetAttr (Decl *D, const ParsedAttr &AL)
 
void handleShaderAttr (Decl *D, const ParsedAttr &AL)
 
void handleResourceBindingAttr (Decl *D, const ParsedAttr &AL)
 
void handleParamModifierAttr (Decl *D, const ParsedAttr &AL)
 
bool handleResourceTypeAttr (QualType T, const ParsedAttr &AL)
 
bool CheckBuiltinFunctionCall (unsigned BuiltinID, CallExpr *TheCall)
 
QualType ProcessResourceTypeAttributes (QualType Wrapped)
 
HLSLAttributedResourceLocInfo TakeLocForHLSLAttribute (const HLSLAttributedResourceType *RT)
 
bool IsScalarizedLayoutCompatible (QualType T1, QualType T2) const
 
bool IsTypedResourceElementCompatible (QualType T1)
 
bool CheckCompatibleParameterABI (FunctionDecl *New, FunctionDecl *Old)
 
bool diagnoseInputIDType (QualType T, const ParsedAttr &AL)
 
ExprResult ActOnOutParamExpr (ParmVarDecl *Param, Expr *Arg)
 
QualType getInoutParameterType (QualType Ty)
 
- 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 85 of file SemaHLSL.h.

Constructor & Destructor Documentation

◆ SemaHLSL()

SemaHLSL::SemaHLSL ( Sema S)

Definition at line 142 of file SemaHLSL.cpp.

Member Function Documentation

◆ ActOnFinishBuffer()

void SemaHLSL::ActOnFinishBuffer ( Decl Dcl,
SourceLocation  RBrace 
)

◆ ActOnOutParamExpr()

ExprResult SemaHLSL::ActOnOutParamExpr ( ParmVarDecl Param,
Expr Arg 
)

◆ ActOnStartBuffer()

Decl * SemaHLSL::ActOnStartBuffer ( Scope BufferScope,
bool  CBuffer,
SourceLocation  KwLoc,
IdentifierInfo Ident,
SourceLocation  IdentLoc,
SourceLocation  LBrace 
)

◆ ActOnTopLevelFunction()

void SemaHLSL::ActOnTopLevelFunction ( FunctionDecl FD)

◆ ActOnVariableDeclarator()

void SemaHLSL::ActOnVariableDeclarator ( VarDecl VD)

◆ CheckBuiltinFunctionCall()

bool SemaHLSL::CheckBuiltinFunctionCall ( unsigned  BuiltinID,
CallExpr TheCall 
)

◆ CheckCompatibleParameterABI()

bool SemaHLSL::CheckCompatibleParameterABI ( FunctionDecl New,
FunctionDecl Old 
)

◆ CheckEntryPoint()

void SemaHLSL::CheckEntryPoint ( FunctionDecl FD)

◆ CheckSemanticAnnotation()

void SemaHLSL::CheckSemanticAnnotation ( FunctionDecl EntryPoint,
const Decl Param,
const HLSLAnnotationAttr AnnotationAttr 
)

◆ DiagnoseAttrStageMismatch()

void SemaHLSL::DiagnoseAttrStageMismatch ( const Attr A,
llvm::Triple::EnvironmentType  Stage,
std::initializer_list< llvm::Triple::EnvironmentType >  AllowedStages 
)

◆ DiagnoseAvailabilityViolations()

void SemaHLSL::DiagnoseAvailabilityViolations ( TranslationUnitDecl TU)

◆ diagnoseInputIDType()

bool SemaHLSL::diagnoseInputIDType ( QualType  T,
const ParsedAttr AL 
)

◆ emitLogicalOperatorFixIt()

void SemaHLSL::emitLogicalOperatorFixIt ( Expr LHS,
Expr RHS,
BinaryOperatorKind  Opc 
)

◆ getInoutParameterType()

QualType SemaHLSL::getInoutParameterType ( QualType  Ty)

◆ handleNumThreadsAttr()

void SemaHLSL::handleNumThreadsAttr ( Decl D,
const ParsedAttr AL 
)

◆ handlePackOffsetAttr()

void SemaHLSL::handlePackOffsetAttr ( Decl D,
const ParsedAttr AL 
)

◆ handleParamModifierAttr()

void SemaHLSL::handleParamModifierAttr ( Decl D,
const ParsedAttr AL 
)

◆ handleResourceBindingAttr()

void SemaHLSL::handleResourceBindingAttr ( Decl D,
const ParsedAttr AL 
)

◆ handleResourceTypeAttr()

bool SemaHLSL::handleResourceTypeAttr ( QualType  T,
const ParsedAttr AL 
)

◆ handleShaderAttr()

void SemaHLSL::handleShaderAttr ( Decl D,
const ParsedAttr AL 
)

◆ handleSV_DispatchThreadIDAttr()

void SemaHLSL::handleSV_DispatchThreadIDAttr ( Decl D,
const ParsedAttr AL 
)

◆ handleSV_GroupIDAttr()

void SemaHLSL::handleSV_GroupIDAttr ( Decl D,
const ParsedAttr AL 
)

◆ handleSV_GroupThreadIDAttr()

void SemaHLSL::handleSV_GroupThreadIDAttr ( Decl D,
const ParsedAttr AL 
)

◆ handleVectorBinOpConversion()

QualType SemaHLSL::handleVectorBinOpConversion ( ExprResult LHS,
ExprResult RHS,
QualType  LHSType,
QualType  RHSType,
bool  IsCompAssign 
)

◆ handleWaveSizeAttr()

void SemaHLSL::handleWaveSizeAttr ( Decl D,
const ParsedAttr AL 
)

◆ IsScalarizedLayoutCompatible()

bool SemaHLSL::IsScalarizedLayoutCompatible ( QualType  T1,
QualType  T2 
) const

◆ IsTypedResourceElementCompatible()

bool SemaHLSL::IsTypedResourceElementCompatible ( clang::QualType  QT)

◆ mergeNumThreadsAttr()

HLSLNumThreadsAttr * SemaHLSL::mergeNumThreadsAttr ( Decl D,
const AttributeCommonInfo AL,
int  X,
int  Y,
int  Z 
)

◆ mergeParamModifierAttr()

HLSLParamModifierAttr * SemaHLSL::mergeParamModifierAttr ( Decl D,
const AttributeCommonInfo AL,
HLSLParamModifierAttr::Spelling  Spelling 
)

◆ mergeShaderAttr()

HLSLShaderAttr * SemaHLSL::mergeShaderAttr ( Decl D,
const AttributeCommonInfo AL,
llvm::Triple::EnvironmentType  ShaderType 
)

◆ mergeWaveSizeAttr()

HLSLWaveSizeAttr * SemaHLSL::mergeWaveSizeAttr ( Decl D,
const AttributeCommonInfo AL,
int  Min,
int  Max,
int  Preferred,
int  SpelledArgsCount 
)

◆ ProcessResourceTypeAttributes()

QualType SemaHLSL::ProcessResourceTypeAttributes ( QualType  Wrapped)

◆ TakeLocForHLSLAttribute()

HLSLAttributedResourceLocInfo SemaHLSL::TakeLocForHLSLAttribute ( const HLSLAttributedResourceType RT)

Definition at line 1053 of file SemaHLSL.cpp.

References clang::HLSLAttributedResourceLocInfo::Range.


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