[PATCH] D134330: [Docs] [HLSL] Add note about PCH support
Xiang Li via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Sep 20 18:00:21 PDT 2022
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
-------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D134330.461771.patch
Type: text/x-patch
Size: 792 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220921/cb517dd8/attachment.bin>
More information about the cfe-commits
mailing list