| /llvm-project-15.0.7/clang/docs/ |
| H A D | HLSLSupport.rst | 2 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 D | prohibit_pointer.hlsl | 3 // 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 D | prohibit_reference.hlsl | 3 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 D | LangStandards.def | 211 // 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 D | LangStandard.h | 43 HLSL, enumerator 63 HLSL = (1 << 15) enumerator
|
| H A D | LangOptions.def | 260 LANGOPT(HLSL, 1, 0, "HLSL") 261 ENUM_LANGOPT(HLSLVersion, HLSLLangStd, 16, HLSL_Unset, "HLSL Version")
|
| H A D | DiagnosticParseKinds.td | 1604 // 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 D | access_specifiers.hlsl | 12 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 D | semantic_parsing.hlsl | 3 // 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 D | vector-errors.hlsl | 17 // 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 D | vector-constructors-erros.hlsl | 17 // These _should_ work in HLSL but aren't yet supported.
|
| /llvm-project-15.0.7/clang/lib/Basic/ |
| H A D | LangOptions.cpp | 119 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 D | LangStandards.cpp | 86 case Language::HLSL: in getDefaultLanguageStandard()
|
| /llvm-project-15.0.7/clang/lib/Sema/ |
| H A D | HLSLExternalSemaSource.cpp | 25 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 D | HLSL.cmake | 9 # HLSL support is currently limted to clang, eventually it will expand to
|
| /llvm-project-15.0.7/clang/lib/Driver/ |
| H A D | CMakeLists.txt | 63 ToolChains/HLSL.cpp
|
| /llvm-project-15.0.7/llvm/utils/gn/secondary/clang/lib/Driver/ |
| H A D | BUILD.gn | 77 "ToolChains/HLSL.cpp",
|
| /llvm-project-15.0.7/llvm/include/llvm/DebugInfo/CodeView/ |
| H A D | CodeView.h | 163 HLSL = 0x10, enumerator
|
| /llvm-project-15.0.7/llvm/lib/Target/SPIRV/MCTargetDesc/ |
| H A D | SPIRVBaseInfo.h | 163 HLSL = 5, enumerator
|
| /llvm-project-15.0.7/clang/lib/ExtractAPI/Serialization/ |
| H A D | SymbolGraphSerializer.cpp | 180 case Language::HLSL: in getLanguageName()
|
| /llvm-project-15.0.7/clang/include/clang/Driver/ |
| H A D | Types.def | 57 TYPE("hlsl", HLSL, PP_CXX, "hlsl", phases::Preprocess, phase…
|
| /llvm-project-15.0.7/llvm/lib/DebugInfo/PDB/ |
| H A D | PDBExtras.cpp | 231 CASE_OUTPUT_ENUM_CLASS_NAME(PDB_Lang, HLSL, OS) in operator <<()
|
| /llvm-project-15.0.7/clang/lib/Parse/ |
| H A D | ParseDeclCXX.cpp | 2148 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 D | EnumTables.cpp | 106 CV_ENUM_ENT(SourceLanguage, HLSL), CV_ENUM_ENT(SourceLanguage, D),
|
| /llvm-project-15.0.7/clang/lib/Frontend/ |
| H A D | CompilerInvocation.cpp | 2678 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()
|