[all-commits] [llvm/llvm-project] 05ad8e: [AIX] Implement AIX special alignment rule about d...

xiangling-liao via All-commits all-commits at lists.llvm.org
Mon Jul 27 12:14:25 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 05ad8e942996f36cc694478542ccd84aa5bbb80f
      https://github.com/llvm/llvm-project/commit/05ad8e942996f36cc694478542ccd84aa5bbb80f
  Author: Xiangling Liao <Xiangling.Liao at ibm.com>
  Date:   2020-07-27 (Mon, 27 Jul 2020)

  Changed paths:
    M clang/include/clang/AST/RecordLayout.h
    M clang/include/clang/Basic/TargetInfo.h
    M clang/lib/AST/ASTContext.cpp
    M clang/lib/AST/RecordLayout.cpp
    M clang/lib/AST/RecordLayoutBuilder.cpp
    M clang/lib/Basic/Targets/OSTargets.h
    M clang/lib/Basic/Targets/PPC.h
    A clang/test/Layout/aix-Wpacked-expecting-diagnostics.cpp
    A clang/test/Layout/aix-Wpacked-no-diagnostics.cpp
    A clang/test/Layout/aix-double-struct-member.cpp
    A clang/test/Layout/aix-no-unique-address-with-double.cpp
    A clang/test/Layout/aix-pack-attr-on-base.cpp
    A clang/test/Layout/aix-power-alignment-typedef-2.cpp
    A clang/test/Layout/aix-power-alignment-typedef.cpp
    A clang/test/Layout/aix-virtual-function-and-base-with-double.cpp

  Log Message:
  -----------
  [AIX] Implement AIX special alignment rule about double/long double

Implement AIX default `power` alignment rule by adding `PreferredAlignment` and
`PreferredNVAlignment` in ASTRecordLayout class.

The patchh aims at returning correct value for `__alignof(x)` and `alignof(x)`
under `power` alignment rules.

Differential Revision: https://reviews.llvm.org/D79719




More information about the All-commits mailing list