clang 20.0.0git
Functions
SemaHLSL.cpp File Reference
#include "clang/Sema/SemaHLSL.h"
#include "clang/AST/Decl.h"
#include "clang/AST/Expr.h"
#include "clang/AST/RecursiveASTVisitor.h"
#include "clang/Basic/DiagnosticSema.h"
#include "clang/Basic/LLVM.h"
#include "clang/Basic/TargetInfo.h"
#include "clang/Sema/ParsedAttr.h"
#include "clang/Sema/Sema.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/StringExtras.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/Support/Casting.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/TargetParser/Triple.h"
#include <iterator>

Go to the source code of this file.

Functions

static unsigned calculateLegacyCbufferSize (const ASTContext &Context, QualType T)
 
static bool isLegalTypeForHLSLSV_DispatchThreadID (QualType T)
 
bool CheckVectorElementCallArgs (Sema *S, CallExpr *TheCall)
 
bool CheckArgsTypesAreCorrect (Sema *S, CallExpr *TheCall, QualType ExpectedType, llvm::function_ref< bool(clang::QualType PassedType)> Check)
 
bool CheckAllArgsHaveFloatRepresentation (Sema *S, CallExpr *TheCall)
 
bool CheckFloatOrHalfRepresentations (Sema *S, CallExpr *TheCall)
 
bool CheckNoDoubleVectors (Sema *S, CallExpr *TheCall)
 
bool CheckUnsignedIntRepresentation (Sema *S, CallExpr *TheCall)
 
void SetElementTypeAsReturnType (Sema *S, CallExpr *TheCall, QualType ReturnType)
 

Function Documentation

◆ calculateLegacyCbufferSize()

static unsigned calculateLegacyCbufferSize ( const ASTContext Context,
QualType  T 
)
static

◆ CheckAllArgsHaveFloatRepresentation()

bool CheckAllArgsHaveFloatRepresentation ( Sema S,
CallExpr TheCall 
)

◆ CheckArgsTypesAreCorrect()

bool CheckArgsTypesAreCorrect ( Sema S,
CallExpr TheCall,
QualType  ExpectedType,
llvm::function_ref< bool(clang::QualType PassedType)>  Check 
)

◆ CheckFloatOrHalfRepresentations()

bool CheckFloatOrHalfRepresentations ( Sema S,
CallExpr TheCall 
)

◆ CheckNoDoubleVectors()

bool CheckNoDoubleVectors ( Sema S,
CallExpr TheCall 
)

◆ CheckUnsignedIntRepresentation()

bool CheckUnsignedIntRepresentation ( Sema S,
CallExpr TheCall 
)

◆ CheckVectorElementCallArgs()

bool CheckVectorElementCallArgs ( Sema S,
CallExpr TheCall 
)

◆ isLegalTypeForHLSLSV_DispatchThreadID()

static bool isLegalTypeForHLSLSV_DispatchThreadID ( QualType  T)
static

◆ SetElementTypeAsReturnType()

void SetElementTypeAsReturnType ( Sema S,
CallExpr TheCall,
QualType  ReturnType 
)