[PATCH] D54675: [AST] Store the expressions in ParenListExpr in a trailing array

Bruno Ricci via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sun Nov 18 05:51:04 PST 2018


riccibruno created this revision.
riccibruno added a reviewer: rjmccall.
riccibruno added a project: clang.
Herald added a reviewer: shafik.
Herald added a subscriber: cfe-commits.

Use the newly available space in the bit-fields of `Stmt`
and store the expressions in a trailing array.

This saves 2 pointer per `ParenListExpr`.


Repository:
  rC Clang

https://reviews.llvm.org/D54675

Files:
  include/clang/AST/Expr.h
  include/clang/AST/Stmt.h
  lib/AST/ASTImporter.cpp
  lib/AST/Expr.cpp
  lib/Sema/SemaCoroutine.cpp
  lib/Sema/SemaDeclCXX.cpp
  lib/Sema/SemaExpr.cpp
  lib/Serialization/ASTReaderStmt.cpp
  lib/Serialization/ASTWriterStmt.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D54675.174537.patch
Type: text/x-patch
Size: 11406 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20181118/38d37582/attachment-0001.bin>


More information about the cfe-commits mailing list