blob: 118b08a831d11edc0bbd1d075c3a469b043cf312 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
// slang-check.h
#pragma once
// This file provides the public interface to the semantic
// checking infrastructure in `slang-check-*`.
#include "slang-syntax.h"
namespace Slang
{
class DiagnosticSink;
class EntryPoint;
class Linkage;
class Module;
class ShaderCompiler;
class ShaderLinkInfo;
class ShaderSymbol;
class TranslationUnitRequest;
bool isGlobalShaderParameter(VarDeclBase* decl);
bool isFromCoreModule(Decl* decl);
void registerBuiltinDecl(SharedASTBuilder* sharedASTBuilder, Decl* decl);
void registerBuiltinDecl(ASTBuilder* astBuilder, Decl* decl);
void registerBuiltinDecls(Session* session, Decl* decl);
void collectBuiltinDeclsThatNeedRegistration(ModuleDecl* moduleDecl, List<Decl*>& outDecls);
Type* unwrapArrayType(Type* type);
Type* unwrapModifiedType(Type* type);
OrderedDictionary<GenericTypeParamDeclBase*, List<Type*>> getCanonicalGenericConstraints(
ASTBuilder* builder,
DeclRef<ContainerDecl> genericDecl);
OrderedDictionary<Type*, List<Type*>> getCanonicalGenericConstraints2(
ASTBuilder* builder,
DeclRef<ContainerDecl> genericDecl);
// General utility function to collect all referenced declarations from a value
void collectReferencedDecls(Val* val, HashSet<Decl*>& outDecls);
} // namespace Slang
|