[all-commits] [llvm/llvm-project] 0d8de5: D41416: [modules] [pch] Do not deserialize all laz...

Chuanqi Xu via All-commits all-commits at lists.llvm.org
Fri Nov 8 00:50:47 PST 2024


  Branch: refs/heads/users/ChuanqiXu9/D41416_on_disk_hash_table_polishing
  Home:   https://github.com/llvm/llvm-project
  Commit: 0d8de5186b065a256f9afbc08faf775916591403
      https://github.com/llvm/llvm-project/commit/0d8de5186b065a256f9afbc08faf775916591403
  Author: Vassil Vassilev <v.g.vassilev at gmail.com>
  Date:   2024-10-22 (Tue, 22 Oct 2024)

  Changed paths:
    M clang/include/clang/AST/DeclTemplate.h
    M clang/lib/AST/DeclTemplate.cpp
    M clang/lib/AST/ODRHash.cpp
    M clang/lib/Serialization/ASTReader.cpp
    M clang/lib/Serialization/ASTReaderDecl.cpp
    M clang/lib/Serialization/ASTWriter.cpp
    M clang/lib/Serialization/ASTWriterDecl.cpp
    M clang/test/Modules/cxx-templates.cpp
    M clang/test/Modules/odr_hash.cpp

  Log Message:
  -----------
  D41416: [modules] [pch] Do not deserialize all lazy template specializations when looking for one.


  Commit: d4928baeca0bea606282cc24fd43102ab46b2d88
      https://github.com/llvm/llvm-project/commit/d4928baeca0bea606282cc24fd43102ab46b2d88
  Author: Chuanqi Xu <yedeng.yd at linux.alibaba.com>
  Date:   2024-10-22 (Tue, 22 Oct 2024)

  Changed paths:
    M clang/include/clang/AST/ExternalASTSource.h
    M clang/include/clang/Sema/MultiplexExternalSemaSource.h
    M clang/include/clang/Serialization/ASTBitCodes.h
    M clang/include/clang/Serialization/ASTReader.h
    M clang/include/clang/Serialization/ASTWriter.h
    M clang/lib/AST/DeclTemplate.cpp
    M clang/lib/AST/ExternalASTSource.cpp
    M clang/lib/Sema/MultiplexExternalSemaSource.cpp
    M clang/lib/Serialization/ASTReader.cpp
    M clang/lib/Serialization/ASTReaderDecl.cpp
    M clang/lib/Serialization/ASTReaderInternals.h
    M clang/lib/Serialization/ASTWriter.cpp
    M clang/lib/Serialization/ASTWriterDecl.cpp
    M clang/unittests/Serialization/CMakeLists.txt
    A clang/unittests/Serialization/LoadSpecLazilyTest.cpp

  Log Message:
  -----------
  [Serialization] Introduce OnDiskHashTable for specializations

Following up for https://github.com/llvm/llvm-project/pull/83108

This follows the suggestion literally from
https://github.com/llvm/llvm-project/pull/76774#issuecomment-1951172457

which introduces OnDiskHashTable for specializations based on
D41416.

Note that I didn't polish this patch to reduce the diff from D41416
to it easier to review. I'll make the polishing patch later. So that we
can focus what we're doing in this patch and focus on the style in the
next patch.


  Commit: 27cea97f229f17142d4d25ec9402a7deb647432d
      https://github.com/llvm/llvm-project/commit/27cea97f229f17142d4d25ec9402a7deb647432d
  Author: Chuanqi Xu <yedeng.yd at linux.alibaba.com>
  Date:   2024-10-28 (Mon, 28 Oct 2024)

  Changed paths:
    M clang/include/clang/AST/DeclTemplate.h
    M clang/include/clang/AST/ExternalASTSource.h
    M clang/include/clang/Sema/MultiplexExternalSemaSource.h
    M clang/include/clang/Serialization/ASTBitCodes.h
    M clang/include/clang/Serialization/ASTReader.h
    M clang/lib/AST/DeclTemplate.cpp
    M clang/lib/AST/ExternalASTSource.cpp
    M clang/lib/AST/ODRHash.cpp
    M clang/lib/Sema/MultiplexExternalSemaSource.cpp
    M clang/lib/Serialization/ASTCommon.h
    M clang/lib/Serialization/ASTReader.cpp
    M clang/lib/Serialization/ASTReaderDecl.cpp
    M clang/lib/Serialization/ASTReaderInternals.h
    M clang/lib/Serialization/ASTWriter.cpp
    M clang/lib/Serialization/ASTWriterDecl.cpp
    M clang/lib/Serialization/CMakeLists.txt
    A clang/lib/Serialization/TemplateArgumentHasher.cpp
    A clang/lib/Serialization/TemplateArgumentHasher.h
    M clang/test/Modules/cxx-templates.cpp
    A clang/test/Modules/recursive-instantiations.cppm
    M clang/test/OpenMP/target_parallel_ast_print.cpp
    M clang/test/OpenMP/target_teams_ast_print.cpp
    M clang/test/OpenMP/task_ast_print.cpp
    M clang/test/OpenMP/teams_ast_print.cpp

  Log Message:
  -----------
  [Serialization] Code cleanups and polish 83233

fmt

load specializations before writing specialization decls

address comments

Revert "load specializations before writing specialization decls"

This reverts commit 61c451d2cce4d9b613de93aedd3f3fd4dcc296ee.

Do not omit data from imported modules with same key

Handle merging spec info manually


  Commit: 3b60dc2eca041770a420614025e75e21f27719a4
      https://github.com/llvm/llvm-project/commit/3b60dc2eca041770a420614025e75e21f27719a4
  Author: Chuanqi Xu <yedeng.yd at linux.alibaba.com>
  Date:   2024-10-31 (Thu, 31 Oct 2024)

  Changed paths:
    M clang/lib/Serialization/TemplateArgumentHasher.cpp

  Log Message:
  -----------
  Add deduced template argument


  Commit: e975c2e96c16e24e3d6437fe5c3708355059c133
      https://github.com/llvm/llvm-project/commit/e975c2e96c16e24e3d6437fe5c3708355059c133
  Author: Chuanqi Xu <yedeng.yd at linux.alibaba.com>
  Date:   2024-11-08 (Fri, 08 Nov 2024)

  Changed paths:
    M clang/include/clang/Serialization/ASTBitCodes.h
    M clang/include/clang/Serialization/ASTReader.h
    M clang/include/clang/Serialization/ASTWriter.h
    M clang/lib/Serialization/ASTReader.cpp
    M clang/lib/Serialization/ASTReaderDecl.cpp
    M clang/lib/Serialization/ASTReaderInternals.h
    M clang/lib/Serialization/ASTWriter.cpp
    M clang/lib/Serialization/ASTWriterDecl.cpp
    M clang/test/Modules/cxx-templates.cpp

  Log Message:
  -----------
  Split partial specializations from the lookup table


Compare: https://github.com/llvm/llvm-project/compare/5df9f526236c...e975c2e96c16

To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list