[all-commits] [llvm/llvm-project] 6d209b: [NFC][clang] change remaining context-dependent ty...

Matheus Izvekov via All-commits all-commits at lists.llvm.org
Tue Oct 3 10:00:23 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6d209bd436292f77705c2890ed8965315e80f290
      https://github.com/llvm/llvm-project/commit/6d209bd436292f77705c2890ed8965315e80f290
  Author: Matheus Izvekov <mizvekov at gmail.com>
  Date:   2023-10-03 (Tue, 03 Oct 2023)

  Changed paths:
    M clang/include/clang/AST/ASTContext.h
    M clang/include/clang/AST/Type.h
    M clang/lib/AST/ASTContext.cpp
    M clang/lib/AST/Type.cpp

  Log Message:
  -----------
  [NFC][clang] change remaining context-dependent type nodes to ContextualFoldingSet (#67751)

With this change, we are avoiding storing one pointer per Type Node
instance, for the cost of one extra pointer per ASTContext, which is
negligible.

After we introduced `ContextualFoldingSet` a long time ago, we never
went back and updated these existing users.
This patch corrects that.




More information about the All-commits mailing list