From: Xiang Li Date: Wed, 5 Oct 2022 16:26:25 +0000 (-0700) Subject: [Docs] [HLSL] Add note about PCH support X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6a6f10fd23b2730e2c01051541c5a83f5df9131b;p=platform%2Fupstream%2Fllvm.git [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 --- diff --git a/clang/docs/HLSL/HLSLSupport.rst b/clang/docs/HLSL/HLSLSupport.rst index a8c9c09..b091c17 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 -------