Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/llvm/llvm-project.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXiang Li <python3kgae@outlook.com>2022-10-05 19:26:25 +0300
committerXiang Li <python3kgae@outlook.com>2022-10-07 20:49:21 +0300
commit6a6f10fd23b2730e2c01051541c5a83f5df9131b (patch)
tree9278fe704b94a65ca2dd283dd07bcf2cfc881877
parent395d261de779ac1fa85df3757053bc962156f985 (diff)
[Docs] [HLSL] Add note about PCH support
PCH supported for HLSL is added when compile in -cc1 mode using -include-pch for test AST. This change add some notes about the support of PCH for HLSL. Reviewed By: beanz Differential Revision: https://reviews.llvm.org/D134330
-rw-r--r--clang/docs/HLSL/HLSLSupport.rst9
1 files changed, 9 insertions, 0 deletions
diff --git a/clang/docs/HLSL/HLSLSupport.rst b/clang/docs/HLSL/HLSLSupport.rst
index a8c9c09b2e9f..b091c17fd2a7 100644
--- a/clang/docs/HLSL/HLSLSupport.rst
+++ b/clang/docs/HLSL/HLSLSupport.rst
@@ -89,6 +89,15 @@ types and built-in templates. Clang is already designed to allow an attached
``ExternalSemaSource`` to lazily complete data types, which is a **huge**
performance win for HLSL.
+If precompiled headers are used when compiling HLSL, the ``ExternalSemaSource``
+will be a ``MultiplexExternalSemaSource`` which includes both the ``ASTReader``
+and ``HLSLExternalSemaSource``. For Built-in declarations that are already
+completed in the serialized AST, the ``HLSLExternalSemaSource`` will reuse the
+existing declarations and not introduce new declarations. If the built-in types
+are not completed in the serialized AST, the ``HLSLExternalSemaSource`` will
+create new declarations and connect the de-serialized decls as the previous
+declaration.
+
CodeGen
-------