[PATCH] D87080: [AST] Reduce the size of TemplateArgumentLocInfo.

Haojian Wu via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Sep 3 02:58:31 PDT 2020


hokein created this revision.
hokein added a reviewer: sammccall.
Herald added a subscriber: martong.
Herald added a reviewer: shafik.
Herald added a project: clang.
hokein requested review of this revision.

heap-allocate the Template kind, this would reduce AST memory usage

- TemplateArgumentLocInfo from 24 bytes to 8 bytes;
- TemplateARgumentLoc from 56 bytes to 40 bytes;


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D87080

Files:
  clang/include/clang/AST/TemplateBase.h
  clang/lib/AST/ASTImporter.cpp
  clang/lib/AST/TypeLoc.cpp
  clang/lib/Sema/SemaTemplate.cpp
  clang/lib/Sema/SemaTemplateDeduction.cpp
  clang/lib/Sema/SemaTemplateInstantiateDecl.cpp
  clang/lib/Sema/SemaTemplateVariadic.cpp
  clang/lib/Sema/TreeTransform.h
  clang/lib/Serialization/ASTReader.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D87080.289671.patch
Type: text/x-patch
Size: 14308 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200903/0f87a74a/attachment-0001.bin>


More information about the cfe-commits mailing list