Add HLSL Language Option and Preprocessor
authorChris Bieneman <chris.bieneman@me.com>
Mon, 28 Mar 2022 20:01:41 +0000 (15:01 -0500)
committerChris Bieneman <chris.bieneman@me.com>
Mon, 28 Mar 2022 21:16:17 +0000 (16:16 -0500)
commitd394f9f8970d758cb39151328dd3040ba7f414ae
treec5f740d80e33f85ddfe1ff4d431ec372b2ebda10
parent577827cbbf1033612d6ce15169f33ee5709abbfc
Add HLSL Language Option and Preprocessor

Bringing in HLSL as a language as well as language options for each of
the HLSL language standards.

While the HLSL language is unimplemented, this patch adds the
HLSL-specific preprocessor defines which enables testing of the command
line options through the driver.

Reviewed By: pete, rnk

Differential Revision: https://reviews.llvm.org/D122087
13 files changed:
clang/include/clang/Basic/LangOptions.def
clang/include/clang/Basic/LangOptions.h
clang/include/clang/Basic/LangStandard.h
clang/include/clang/Basic/LangStandards.def
clang/include/clang/Driver/Types.def
clang/lib/ExtractAPI/Serialization/SymbolGraphSerializer.cpp
clang/lib/Frontend/CompilerInvocation.cpp
clang/lib/Frontend/FrontendActions.cpp
clang/lib/Frontend/InitPreprocessor.cpp
clang/test/Driver/lit.local.cfg
clang/test/Preprocessor/predefined-macros-hlsl.c [new file with mode: 0644]
clang/test/lit.cfg.py
llvm/lib/Support/Triple.cpp