[HLSL] Enable vector types for hlsl.
authorXiang Li <python3kgae@outlook.com>
Thu, 5 May 2022 22:31:22 +0000 (15:31 -0700)
committerXiang Li <python3kgae@outlook.com>
Tue, 31 May 2022 20:54:17 +0000 (13:54 -0700)
commit13e1a653278ba4a9805f0247c5bc92dad720aab3
tree4cfee4192938d701a73b1abe35873bea7c9dfa37
parent8579db96e8c319acb02064542632f42dd63039ba
[HLSL] Enable vector types for hlsl.

Vector types in hlsl is using clang ext_vector_type.
Declaration of vector types is in builtin header hlsl.h.
hlsl.h will be included by default for hlsl shader.

Reviewed By: Anastasia

Differential Revision: https://reviews.llvm.org/D125052
clang/include/clang/Driver/Options.td
clang/lib/Basic/LangOptions.cpp
clang/lib/Driver/ToolChains/Clang.cpp
clang/lib/Frontend/CompilerInvocation.cpp
clang/lib/Frontend/InitPreprocessor.cpp
clang/lib/Headers/CMakeLists.txt
clang/lib/Headers/hlsl.h [new file with mode: 0644]
clang/lib/Headers/hlsl/hlsl_basic_types.h [new file with mode: 0644]
clang/test/CodeGenHLSL/basic_types.hlsl [new file with mode: 0644]
clang/test/Driver/hlsl_no_stdinc.hlsl [new file with mode: 0644]