OSDN Git Service

[AIX] SelectionDAGNodes.h: Pack bit-fields that are meant to be packed
authorHubert Tong <hubert.reinterpretcast@gmail.com>
Thu, 4 Apr 2019 00:33:57 +0000 (00:33 +0000)
committerHubert Tong <hubert.reinterpretcast@gmail.com>
Thu, 4 Apr 2019 00:33:57 +0000 (00:33 +0000)
commit7582b90456e08729ca2570f9ef21476a95b7fda9
treeb488414540289973e1a31847db75465e9906dcd7
parentfe2046590d77fe74bf2d48a5335367749aaaadff
[AIX] SelectionDAGNodes.h: Pack bit-fields that are meant to be packed

Summary:
Certain classes in the subject file are expected to provide different
views of a two-byte field as a collection of various bit-fields. On AIX,
the canonical layout of bit-fields would cause these classes to span
four bytes. Applying the `pack` pragma for compilers that employ the AIX
canonical layout allows these classes to fit within the expected two
bytes. In the future, the pragma would also likely need to be applied
when building with Clang on AIX.

Reviewers: xingxue, sfertile, jasonliu

Reviewed By: xingxue

Subscribers: jsji, llvm-commits

Tags: #llvm

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@357661 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/SelectionDAGNodes.h