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.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
clang/docs/HLSL/HLSLSupport.rst | ||
---|---|---|
98 | We can probably generalize this to something like: When precompiled headers are used compiling HLSL, the ``ExternalSemaSource`` will be a ``MultiplexExternalSemaSource`` which include 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. |
We can probably generalize this to something like: