python3kgae created this revision. python3kgae added reviewers: beanz, pow2clk, bogner, bob80905. Herald added a subscriber: Anastasia. Herald added a project: All. python3kgae requested review of this revision. Herald added a project: clang. Herald added a subscriber: cfe-commits.
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. Repository: rG LLVM Github Monorepo https://reviews.llvm.org/D134330 Files: clang/docs/HLSL/HLSLSupport.rst Index: clang/docs/HLSL/HLSLSupport.rst =================================================================== --- clang/docs/HLSL/HLSLSupport.rst +++ clang/docs/HLSL/HLSLSupport.rst @@ -89,6 +89,14 @@ ``ExternalSemaSource`` to lazily complete data types, which is a **huge** performance win for HLSL. +In case PCH is include when compile HLSL in cc1 mode, the ``ExternalSemaSource`` +will be a ``MultiplexExternalSemaSource`` which include both the ``PCH`` and +``HLSLExternalSemaSource``. For Built-in data/templates in PCH are already +define completed, ``HLSLExternalSemaSource`` will just reuse them. +If the Built-in data/templates are not define completed, +``HLSLExternalSemaSource`` will create new decls and use the old decls as +argument for setPreviousDecl. + CodeGen -------
Index: clang/docs/HLSL/HLSLSupport.rst =================================================================== --- clang/docs/HLSL/HLSLSupport.rst +++ clang/docs/HLSL/HLSLSupport.rst @@ -89,6 +89,14 @@ ``ExternalSemaSource`` to lazily complete data types, which is a **huge** performance win for HLSL. +In case PCH is include when compile HLSL in cc1 mode, the ``ExternalSemaSource`` +will be a ``MultiplexExternalSemaSource`` which include both the ``PCH`` and +``HLSLExternalSemaSource``. For Built-in data/templates in PCH are already +define completed, ``HLSLExternalSemaSource`` will just reuse them. +If the Built-in data/templates are not define completed, +``HLSLExternalSemaSource`` will create new decls and use the old decls as +argument for setPreviousDecl. + CodeGen -------
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits