[PATCH] D108858: TypeInfo records more information about align requirement

Steven Wan via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Aug 27 21:40:29 PDT 2021


stevewan created this revision.
stevewan requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

Extend the information preserved in `TypeInfo` by replacing the
`AlignIsRequired` bool flag with a three-valued enum, the enum also
indicates where the alignment attribute come from, which could be
helpful in determining whether the attribute should overrule.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D108858

Files:
  clang/include/clang/AST/ASTContext.h
  clang/lib/AST/ASTContext.cpp
  clang/lib/AST/RecordLayoutBuilder.cpp
  clang/lib/CodeGen/CGDebugInfo.cpp
  clang/lib/CodeGen/MicrosoftCXXABI.cpp
  clang/lib/CodeGen/TargetInfo.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D108858.369233.patch
Type: text/x-patch
Size: 9782 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210828/a63d50d9/attachment.bin>


More information about the cfe-commits mailing list