clang 20.0.0git
|
#include "clang/Sema/SemaHLSL.h"
#include "clang/AST/ASTContext.h"
#include "clang/AST/Attr.h"
#include "clang/AST/Attrs.inc"
#include "clang/AST/Decl.h"
#include "clang/AST/DeclBase.h"
#include "clang/AST/DeclCXX.h"
#include "clang/AST/DynamicRecursiveASTVisitor.h"
#include "clang/AST/Expr.h"
#include "clang/AST/Type.h"
#include "clang/AST/TypeLoc.h"
#include "clang/Basic/Builtins.h"
#include "clang/Basic/DiagnosticSema.h"
#include "clang/Basic/LLVM.h"
#include "clang/Basic/SourceLocation.h"
#include "clang/Basic/TargetInfo.h"
#include "clang/Sema/Initialization.h"
#include "clang/Sema/ParsedAttr.h"
#include "clang/Sema/Sema.h"
#include "clang/Sema/Template.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/StringExtras.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/Support/Casting.h"
#include "llvm/Support/DXILABI.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/TargetParser/Triple.h"
#include <iterator>
#include <utility>
Go to the source code of this file.
Typedefs | |
using | RegisterType = HLSLResourceBindingAttr::RegisterType |
using RegisterType = HLSLResourceBindingAttr::RegisterType |
Definition at line 43 of file SemaHLSL.cpp.
|
static |
Definition at line 2274 of file SemaHLSL.cpp.
References clang::CXXRecordDecl::bases(), BuildFlattenedTypeList(), clang::RecordDecl::fields(), clang::RecordType::getDecl(), clang::CXXRecordDecl::getStandardLayoutBaseWithFields(), clang::ValueDecl::getType(), clang::CXXRecordDecl::isStandardLayout(), clang::TagDecl::isUnion(), and clang::T.
Referenced by BuildFlattenedTypeList(), and clang::SemaHLSL::IsScalarizedLayoutCompatible().
|
static |
Definition at line 169 of file SemaHLSL.cpp.
References calculateLegacyCbufferSize(), clang::RecordDecl::fields(), clang::Type::getAs(), clang::ASTContext::getAsConstantArrayType(), clang::ASTContext::getTypeSize(), clang::Type::isAggregateType(), and clang::T.
Referenced by clang::SemaHLSL::ActOnFinishBuffer(), and calculateLegacyCbufferSize().
|
static |
Definition at line 471 of file SemaHLSL.cpp.
References E, and clang::Sema::ImpCastExprToType().
|
static |
Definition at line 463 of file SemaHLSL.cpp.
References E, clang::Type::getAs(), clang::Sema::getASTContext(), clang::ASTContext::getExtVectorType(), and clang::Sema::ImpCastExprToType().
Definition at line 1757 of file SemaHLSL.cpp.
References CheckAllArgTypesAreCorrect(), clang::Sema::Context, and clang::ASTContext::FloatTy.
Referenced by clang::SemaHLSL::CheckBuiltinFunctionCall().
|
static |
Definition at line 1745 of file SemaHLSL.cpp.
References CheckArgTypeIsCorrect(), clang::CallExpr::getArg(), and clang::CallExpr::getNumArgs().
Referenced by CheckAllArgsHaveFloatRepresentation(), CheckFloatingOrIntRepresentation(), CheckFloatOrHalfRepresentations(), CheckNoDoubleVectors(), and CheckUnsignedIntRepresentation().
Definition at line 1840 of file SemaHLSL.cpp.
References clang::SemaBase::Diag(), clang::CallExpr::getArg(), clang::Type::getAs(), clang::Stmt::getBeginLoc(), clang::CallExpr::getNumArgs(), clang::Expr::getType(), and clang::Type::isScalarType().
Referenced by clang::SemaHLSL::CheckBuiltinFunctionCall().
|
static |
Definition at line 1730 of file SemaHLSL.cpp.
References clang::Sema::Context, clang::SemaBase::Diag(), clang::Type::getAs(), clang::Stmt::getBeginLoc(), clang::Expr::getType(), and clang::ASTContext::getVectorType().
Referenced by CheckAllArgTypesAreCorrect().
Definition at line 1720 of file SemaHLSL.cpp.
References clang::SemaBase::Diag(), clang::Sema::getASTContext(), clang::Stmt::getBeginLoc(), clang::Expr::getType(), and clang::ASTContext::hasSameUnqualifiedType().
Referenced by clang::SemaHLSL::CheckBuiltinFunctionCall().
Definition at line 1856 of file SemaHLSL.cpp.
References clang::Sema::Context, clang::SemaBase::Diag(), clang::CallExpr::getArg(), clang::CallExpr::getBeginLoc(), clang::CallExpr::getNumArgs(), clang::Stmt::getSourceRange(), clang::Expr::getType(), clang::ASTContext::hasSameUnqualifiedType(), and clang::Expr::setType().
Referenced by clang::SemaHLSL::CheckBuiltinFunctionCall().
Definition at line 1797 of file SemaHLSL.cpp.
References CheckAllArgTypesAreCorrect(), clang::Sema::Context, and clang::ASTContext::IntTy.
Referenced by clang::SemaHLSL::CheckBuiltinFunctionCall().
Definition at line 1765 of file SemaHLSL.cpp.
References CheckAllArgTypesAreCorrect(), clang::Sema::Context, clang::ASTContext::FloatTy, clang::Type::isFloat32Type(), clang::Type::isHalfType(), and clang::Type::isVectorType().
Referenced by clang::SemaHLSL::CheckBuiltinFunctionCall().
Definition at line 1777 of file SemaHLSL.cpp.
References clang::Sema::Context, clang::SemaBase::Diag(), clang::CallExpr::getArg(), clang::Expr::getExprLoc(), clang::Expr::IgnoreCasts(), clang::Expr::isModifiableLvalue(), and clang::Expr::MLV_Valid.
Referenced by clang::SemaHLSL::CheckBuiltinFunctionCall().
Definition at line 1788 of file SemaHLSL.cpp.
References CheckAllArgTypesAreCorrect(), clang::Sema::Context, and clang::ASTContext::FloatTy.
Referenced by clang::SemaHLSL::CheckBuiltinFunctionCall().
|
static |
Definition at line 1912 of file SemaHLSL.cpp.
References clang::SemaBase::Diag(), clang::CallExpr::getArg(), clang::Type::getAs(), clang::Stmt::getBeginLoc(), clang::Expr::getExprLoc(), clang::CallExpr::getNumArgs(), clang::Expr::getType(), and clang::QualType::getTypePtr().
Referenced by clang::SemaHLSL::CheckBuiltinFunctionCall().
|
static |
Definition at line 1823 of file SemaHLSL.cpp.
References clang::Sema::Context, clang::SemaBase::Diag(), clang::CallExpr::getArg(), clang::Type::getAs(), clang::Stmt::getBeginLoc(), clang::CallExpr::getNumArgs(), clang::Expr::getType(), and clang::ASTContext::hasSameUnqualifiedType().
Referenced by clang::SemaHLSL::CheckBuiltinFunctionCall().
Definition at line 1806 of file SemaHLSL.cpp.
References CheckAllArgTypesAreCorrect(), clang::Sema::Context, and clang::ASTContext::UnsignedIntTy.
Referenced by clang::SemaHLSL::CheckBuiltinFunctionCall().
Definition at line 1670 of file SemaHLSL.cpp.
References clang::SemaBase::Diag(), clang::ActionResult< PtrTy, Compress >::get(), clang::CallExpr::getArg(), clang::Type::getAs(), clang::CallExpr::getBeginLoc(), clang::Stmt::getBeginLoc(), clang::CallExpr::getDirectCallee(), clang::Stmt::getEndLoc(), clang::CallExpr::getNumArgs(), and clang::Expr::getType().
Referenced by clang::SemaHLSL::CheckBuiltinFunctionCall().
Definition at line 1872 of file SemaHLSL.cpp.
References clang::Sema::Context, clang::SemaBase::Diag(), clang::CallExpr::getArg(), clang::Type::getAs(), clang::CallExpr::getBeginLoc(), clang::Stmt::getBeginLoc(), clang::CallExpr::getDirectCallee(), clang::CallExpr::getNumArgs(), clang::VectorType::getNumElements(), clang::Stmt::getSourceRange(), clang::Expr::getType(), clang::ASTContext::hasSameUnqualifiedType(), clang::Type::isVectorType(), and clang::Expr::setType().
Referenced by clang::SemaHLSL::CheckBuiltinFunctionCall().
|
static |
Definition at line 61 of file SemaHLSL.cpp.
Referenced by clang::SemaHLSL::handleResourceBindingAttr().
|
static |
Definition at line 1207 of file SemaHLSL.cpp.
References D, DiagnoseLocalRegisterBinding(), and ValidateMultipleRegisterAnnotations().
Referenced by clang::SemaHLSL::handleResourceBindingAttr().
|
static |
Definition at line 1108 of file SemaHLSL.cpp.
References D, clang::SemaBase::Diag(), clang::HLSLAttributedResourceType::findHandleTypeOnResource(), clang::Type::getArrayElementTypeNoTypeQual(), clang::Sema::getASTContext(), clang::Decl::getDeclContext(), clang::Decl::getLocation(), getRegisterType(), clang::ValueDecl::getType(), clang::QualType::getTypePtr(), clang::Decl::hasAttr(), clang::Type::isArithmeticType(), clang::Type::isArrayType(), clang::Type::isFloatingType(), clang::Type::isIntegralType(), and clang::Type::isRecordType().
Referenced by DiagnoseHLSLRegisterAttribute().
|
static |
Definition at line 45 of file SemaHLSL.cpp.
Referenced by DiagnoseLocalRegisterBinding().
|
static |
Definition at line 93 of file SemaHLSL.cpp.
|
static |
Definition at line 553 of file SemaHLSL.cpp.
References clang::Type::isIntegralType(), and clang::Type::isRealFloatingType().
Referenced by clang::SemaHLSL::handleVectorBinOpConversion().
|
static |
Definition at line 476 of file SemaHLSL.cpp.
References clang::Sema::getASTContext(), clang::ASTContext::getFloatingTypeOrder(), and clang::Type::isRealFloatingType().
Referenced by clang::SemaHLSL::handleVectorBinOpConversion().
|
static |
Definition at line 500 of file SemaHLSL.cpp.
References clang::Type::castAs(), clang::Sema::Context, clang::Sema::getASTContext(), clang::ASTContext::getIntegerTypeOrder(), clang::VectorType::getNumElements(), and clang::Type::hasSignedIntegerRepresentation().
Referenced by clang::SemaHLSL::handleVectorBinOpConversion().
Definition at line 701 of file SemaHLSL.cpp.
Referenced by clang::SemaHLSL::handleWaveSizeAttr().
Definition at line 1814 of file SemaHLSL.cpp.
References clang::Sema::Context, clang::Generic, clang::CallExpr::getArg(), clang::Type::getAs(), clang::Expr::getType(), clang::ASTContext::getVectorType(), and clang::Expr::setType().
Referenced by clang::SemaHLSL::CheckBuiltinFunctionCall().
|
static |
Definition at line 1182 of file SemaHLSL.cpp.
References clang::ast_matchers::attr, clang::Decl::attr_begin(), clang::Decl::attr_end(), clang::SemaBase::Diag(), and clang::Decl::getLocation().
Referenced by DiagnoseHLSLRegisterAttribute().