diff options
author | Xiang Li <python3kgae@outlook.com> | 2022-10-05 19:26:25 +0300 |
---|---|---|
committer | Xiang Li <python3kgae@outlook.com> | 2022-10-07 20:49:21 +0300 |
commit | 6a6f10fd23b2730e2c01051541c5a83f5df9131b (patch) | |
tree | 9278fe704b94a65ca2dd283dd07bcf2cfc881877 | |
parent | 395d261de779ac1fa85df3757053bc962156f985 (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.rst | 9 |
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 ------- |