|
clang 24.0.0git
|
#include "clang/Sema/HLSLExternalSemaSource.h"#include "HLSLBuiltinTypeDeclBuilder.h"#include "clang/AST/ASTContext.h"#include "clang/AST/Attr.h"#include "clang/AST/Decl.h"#include "clang/AST/DeclCXX.h"#include "clang/AST/DeclTemplate.h"#include "clang/AST/Expr.h"#include "clang/AST/Type.h"#include "clang/Basic/AddressSpaces.h"#include "clang/Basic/SourceLocation.h"#include "clang/Lex/Preprocessor.h"#include "clang/Sema/Lookup.h"#include "clang/Sema/Sema.h"#include "clang/Sema/SemaHLSL.h"#include "llvm/ADT/BitmaskEnum.h"#include "llvm/ADT/STLExtras.h"#include "llvm/ADT/SmallVector.h"Go to the source code of this file.
Classes | |
| class | BuiltinTypeDeclBuilder |
Enumerations | |
| enum class | HLSLBufferType { Typed , Structured , Constant } |
Variables | |
| static const TextureTypeInfo | TextureTypes [] |
|
strong |
| Enumerator | |
|---|---|
| Typed | |
| Structured | |
| Constant | |
Definition at line 564 of file HLSLExternalSemaSource.cpp.
|
static |
Definition at line 404 of file HLSLExternalSemaSource.cpp.
References clang::TemplateArgumentListInfo::addArgument(), clang::DeclContext::addDecl(), clang::ClassTemplateDecl::AddPartialSpecialization(), clang::Class, clang::ASTTemplateArgumentListInfo::Create(), clang::ClassTemplatePartialSpecializationDecl::Create(), clang::DeclRefExpr::Create(), clang::NonTypeTemplateParmDecl::Create(), clang::TemplateParameterList::Create(), clang::TemplateTypeParmDecl::Create(), clang::CanQual< Type >::CreateUnsafe(), clang::IdentifierTable::get(), clang::Sema::getASTContext(), clang::ASTContext::getCanonicalType(), clang::ASTContext::getDependentSizedExtVectorType(), clang::ASTContext::getTemplateSpecializationType(), clang::ASTContext::getTemplateTypeParmType(), clang::Sema::getTrivialTemplateArgumentLoc(), clang::ASTContext::getTrivialTypeSourceInfo(), clang::ASTContext::Idents, clang::ASTContext::IntTy, and clang::VK_LValue.
|
static |
Definition at line 826 of file HLSLExternalSemaSource.cpp.
References clang::Decl::addAttr(), clang::DeclContext::addDecl(), clang::FunctionDecl::Create(), clang::ParmVarDecl::Create(), clang::IdentifierTable::get(), clang::ASTContext::getAddrSpaceQualType(), clang::Sema::getASTContext(), clang::ASTContext::getFunctionType(), clang::Preprocessor::getIdentifierTable(), clang::ASTContext::getLValueReferenceType(), clang::Sema::getPreprocessor(), clang::ASTContext::getTrivialTypeSourceInfo(), clang::ASTContext::Idents, clang::SC_Extern, clang::SC_None, clang::Decl::setImplicit(), clang::ParmVarDecl::setScopeInfo(), and clang::ASTContext::VoidTy.
Referenced by defineHLSLInterlockedFunc().
|
static |
Definition at line 566 of file HLSLExternalSemaSource.cpp.
References clang::DeclContext::addDecl(), Constant, constructConstantBufferConstraintExpr(), constructStructuredBufferConstraintExpr(), constructTypedBufferConstraintExpr(), clang::ConceptDecl::Create(), clang::TemplateParameterList::Create(), clang::TemplateTypeParmDecl::Create(), clang::Sema::getASTContext(), clang::Decl::getDeclContext(), clang::TemplateDecl::setTemplateParameters(), Structured, clang::T, and Typed.
|
static |
Definition at line 492 of file HLSLExternalSemaSource.cpp.
References clang::TypeTraitExpr::Create(), clang::Sema::getASTContext(), and clang::T.
Referenced by constructBufferConceptDecl().
|
static |
Definition at line 518 of file HLSLExternalSemaSource.cpp.
References clang::BinaryOperator::Create(), clang::IntegerLiteral::Create(), clang::TypeTraitExpr::Create(), clang::UnaryOperator::Create(), clang::Sema::getASTContext(), clang::OK_Ordinary, clang::T, and clang::VK_LValue.
Referenced by constructBufferConceptDecl().
|
static |
Definition at line 467 of file HLSLExternalSemaSource.cpp.
References clang::TypeTraitExpr::Create(), clang::Sema::getASTContext(), and clang::T.
Referenced by constructBufferConceptDecl().
|
static |
Definition at line 876 of file HLSLExternalSemaSource.cpp.
References buildAtomicOverload(), clang::Sema::getASTContext(), clang::hlsl_device, clang::hlsl_groupshared, clang::ASTContext::IntTy, clang::ASTContext::LongTy, clang::ASTContext::UnsignedIntTy, and clang::ASTContext::UnsignedLongTy.
|
static |
Set up common members and attributes for buffer types.
Definition at line 237 of file HLSLExternalSemaSource.cpp.
References clang::hlsl::BuiltinTypeDeclBuilder::addBufferHandles(), clang::hlsl::BuiltinTypeDeclBuilder::addCopyAssignmentOperator(), clang::hlsl::BuiltinTypeDeclBuilder::addCopyConstructor(), clang::hlsl::BuiltinTypeDeclBuilder::addDefaultHandleConstructor(), and clang::hlsl::BuiltinTypeDeclBuilder::addStaticInitializationFunctions().
|
static |
Set up common members and attributes for sampler types.
Definition at line 249 of file HLSLExternalSemaSource.cpp.
References clang::hlsl::BuiltinTypeDeclBuilder::addCopyAssignmentOperator(), clang::hlsl::BuiltinTypeDeclBuilder::addCopyConstructor(), clang::hlsl::BuiltinTypeDeclBuilder::addDefaultHandleConstructor(), clang::hlsl::BuiltinTypeDeclBuilder::addSamplerHandle(), and clang::hlsl::BuiltinTypeDeclBuilder::addStaticInitializationFunctions().
|
static |
Definition at line 342 of file HLSLExternalSemaSource.cpp.
References clang::hlsl::BuiltinTypeDeclBuilder::addArraySubscriptOperators(), clang::hlsl::BuiltinTypeDeclBuilder::addCalculateLodMethods(), clang::hlsl::BuiltinTypeDeclBuilder::addCopyAssignmentOperator(), clang::hlsl::BuiltinTypeDeclBuilder::addCopyConstructor(), clang::hlsl::BuiltinTypeDeclBuilder::addDefaultHandleConstructor(), clang::hlsl::BuiltinTypeDeclBuilder::addGatherCmpMethods(), clang::hlsl::BuiltinTypeDeclBuilder::addGatherMethods(), clang::hlsl::BuiltinTypeDeclBuilder::addGetDimensionsMethods(), clang::hlsl::BuiltinTypeDeclBuilder::addMipsMember(), clang::hlsl::BuiltinTypeDeclBuilder::addRWTextureLoadMethods(), clang::hlsl::BuiltinTypeDeclBuilder::addSampleBiasMethods(), clang::hlsl::BuiltinTypeDeclBuilder::addSampleCmpLevelZeroMethods(), clang::hlsl::BuiltinTypeDeclBuilder::addSampleCmpMethods(), clang::hlsl::BuiltinTypeDeclBuilder::addSampleGradMethods(), clang::hlsl::BuiltinTypeDeclBuilder::addSampleLevelMethods(), clang::hlsl::BuiltinTypeDeclBuilder::addSampleMethods(), clang::hlsl::BuiltinTypeDeclBuilder::addStaticInitializationFunctions(), clang::hlsl::BuiltinTypeDeclBuilder::addTextureHandle(), clang::hlsl::BuiltinTypeDeclBuilder::addTextureLoadMethods(), clang::hlsl::BuiltinTypeDeclBuilder::addTextureLoadMSMethods(), clang::Sema::BuildDeclRefExpr(), clang::cast(), clang::Dim, clang::TemplateParameterList::getParam(), clang::TemplateDecl::getTemplateParameters(), clang::T, and clang::VK_PRValue.
|
static |
Definition at line 304 of file HLSLExternalSemaSource.cpp.