Home
last modified time | relevance | path

Searched refs:HLSL (Results 1 – 25 of 50) sorted by relevance

12

/llvm-project-15.0.7/clang/docs/
H A DHLSLSupport.rst2 HLSL Support
90 performance win for HLSL.
108 HLSL Language
115 C++ code is valid HLSL. HLSL has some key differences from C & C++ which we will
125 Due to HLSL being a GPU targeted language HLSL is a Single Program Multiple Data
142 &). While HLSL disallows pointers and references in the syntax, HLSL does use
146 HLSL ``this`` Keyword
149 HLSL does support member functions, and (in HLSL 2021) limited operator
166 In HLSL 2018 and earlier, HLSL supported logical operators (and the ternary
206 HLSL does not support the C or C++ standard libraries. Like OpenCL, HLSL
[all …]
/llvm-project-15.0.7/clang/test/SemaHLSL/
H A Dprohibit_pointer.hlsl3 // expected-error@+1 {{pointers are unsupported in HLSL}}
5 void* bark(int); // expected-error {{pointers are unsupported in HLSL}}
11 } *bad; // expected-error {{pointers are unsupported in HLSL}}
13 // expected-error@+1 {{pointers are unsupported in HLSL}}
20 // expected-error@+2 {{the '&' operator is unsupported in HLSL}}
21 // expected-error@+1 {{pointers are unsupported in HLSL}}
25 // expected-error@+1 {{the '&' operator is unsupported in HLSL}}
29 // expected-error@+1 {{the '&' operator is unsupported in HLSL}}
33 // expected-error@+1 {{the '&' operator is unsupported in HLSL}}
52 // not-expected-error@+1 {{pointers are unsupported in HLSL}}
[all …]
H A Dprohibit_reference.hlsl3 int& bark(int); // expected-error {{references are unsupported in HLSL}}
4 void meow(int&); // expected-error {{references are unsupported in HLSL}}
5 void chirp(int &&); // expected-error {{references are unsupported in HLSL}}
15 int &Y = X; // expected-error {{references are unsupported in HLSL}}
18 int roar(Foo &F) { // expected-error {{references are unsupported in HLSL}}
/llvm-project-15.0.7/clang/include/clang/Basic/
H A DLangStandards.def211 // HLSL
213 HLSL, "High Level Shader Language",
214 LineComment | HLSL | CPlusPlus )
217 HLSL, "High Level Shader Language 2015",
218 LineComment | HLSL | CPlusPlus )
221 HLSL, "High Level Shader Language 2016",
222 LineComment | HLSL | CPlusPlus )
225 HLSL, "High Level Shader Language 2017",
226 LineComment | HLSL | CPlusPlus )
230 LineComment | HLSL | CPlusPlus )
[all …]
H A DLangStandard.h43 HLSL, enumerator
63 HLSL = (1 << 15) enumerator
H A DLangOptions.def260 LANGOPT(HLSL, 1, 0, "HLSL")
261 ENUM_LANGOPT(HLSLVersion, HLSLLangStd, 16, HLSL_Unset, "HLSL Version")
H A DDiagnosticParseKinds.td1604 // HLSL Parser Diagnostics
1607 "expected HLSL Semantic identifier">;
1608 def err_unknown_hlsl_semantic : Error<"unknown HLSL semantic %0">;
1610 "access specifiers are a clang HLSL extension">,
/llvm-project-15.0.7/clang/test/ParserHLSL/
H A Daccess_specifiers.hlsl12 protected: // expected-warning {{access specifiers are a clang HLSL extension}}
14 private: // expected-warning {{access specifiers are a clang HLSL extension}}
18 KEYWORD Shiba : public Doggo { // expected-warning {{access specifiers are a clang HLSL extension}}
26 KEYWORD Chow : private Doggo { // expected-warning {{access specifiers are a clang HLSL extension}…
30 KEYWORD Dachshund : protected Doggo { // expected-warning {{access specifiers are a clang HLSL ext…
H A Dsemantic_parsing.hlsl3 // expected-error@+1 {{expected HLSL Semantic identifier}}
6 // expected-error@+1 {{unknown HLSL semantic 'SV_IWantAPony'}}
/llvm-project-15.0.7/clang/test/SemaHLSL/BuiltIns/
H A Dvector-errors.hlsl17 // This code is rejected by clang because clang puts the HLSL built-in types
18 // into the HLSL namespace.
23 // This code is rejected by dxc because dxc puts the HLSL built-in types
H A Dvector-constructors-erros.hlsl17 // These _should_ work in HLSL but aren't yet supported.
/llvm-project-15.0.7/clang/lib/Basic/
H A DLangOptions.cpp119 Opts.HLSL = Lang == Language::HLSL; in setLangDefaults()
120 if (Opts.HLSL && Opts.IncludeDefaultHeader) in setLangDefaults()
199 Opts.Half = Opts.OpenCL || Opts.HLSL; in setLangDefaults()
H A DLangStandards.cpp86 case Language::HLSL: in getDefaultLanguageStandard()
/llvm-project-15.0.7/clang/lib/Sema/
H A DHLSLExternalSemaSource.cpp25 IdentifierInfo &HLSL = AST.Idents.get("hlsl", tok::TokenKind::identifier); in InitializeSema() local
28 SourceLocation(), SourceLocation(), &HLSL, nullptr); in InitializeSema()
/llvm-project-15.0.7/clang/cmake/caches/
H A DHLSL.cmake9 # HLSL support is currently limted to clang, eventually it will expand to
/llvm-project-15.0.7/clang/lib/Driver/
H A DCMakeLists.txt63 ToolChains/HLSL.cpp
/llvm-project-15.0.7/llvm/utils/gn/secondary/clang/lib/Driver/
H A DBUILD.gn77 "ToolChains/HLSL.cpp",
/llvm-project-15.0.7/llvm/include/llvm/DebugInfo/CodeView/
H A DCodeView.h163 HLSL = 0x10, enumerator
/llvm-project-15.0.7/llvm/lib/Target/SPIRV/MCTargetDesc/
H A DSPIRVBaseInfo.h163 HLSL = 5, enumerator
/llvm-project-15.0.7/clang/lib/ExtractAPI/Serialization/
H A DSymbolGraphSerializer.cpp180 case Language::HLSL: in getLanguageName()
/llvm-project-15.0.7/clang/include/clang/Driver/
H A DTypes.def57 TYPE("hlsl", HLSL, PP_CXX, "hlsl", phases::Preprocess, phase…
/llvm-project-15.0.7/llvm/lib/DebugInfo/PDB/
H A DPDBExtras.cpp231 CASE_OUTPUT_ENUM_CLASS_NAME(PDB_Lang, HLSL, OS) in operator <<()
/llvm-project-15.0.7/clang/lib/Parse/
H A DParseDeclCXX.cpp2148 if (getLangOpts().HLSL) in ParseBaseSpecifier()
3248 if (getLangOpts().HLSL) in ParseCXXClassMemberDeclarationWithPragmas()
3491 if (TagType == DeclSpec::TST_class && !getLangOpts().HLSL) in ParseCXXMemberSpecification()
4273 if (getLangOpts().MicrosoftExt || getLangOpts().HLSL) { in ParseCXX11AttributeArgs()
4285 if (getLangOpts().MicrosoftExt || getLangOpts().HLSL) { in ParseCXX11AttributeArgs()
4674 if (getLangOpts().HLSL || AttrKind != ParsedAttr::UnknownAttribute) { in ParseMicrosoftAttributes()
/llvm-project-15.0.7/llvm/lib/DebugInfo/CodeView/
H A DEnumTables.cpp106 CV_ENUM_ENT(SourceLanguage, HLSL), CV_ENUM_ENT(SourceLanguage, D),
/llvm-project-15.0.7/clang/lib/Frontend/
H A DCompilerInvocation.cpp2678 case Language::HLSL: in GenerateFrontendArgs()
2867 .Case("hlsl", Language::HLSL) in ParseFrontendArgs()
3252 case Language::HLSL: in IsInputCompatibleWithStandard()
3253 return S.getLanguage() == Language::HLSL; in IsInputCompatibleWithStandard()
3286 case Language::HLSL: in GetInputKindName()
4215 if (LangOpts.HLSL && I == "hlsl.h") in GeneratePreprocessorArgs()

12