This is an archive of the discontinued LLVM Phabricator instance.

[AIX] SelectionDAGNodes.h: Pack bit-fields that are meant to be packed
ClosedPublic

Authored by hubert.reinterpretcast on Apr 2 2019, 4:17 PM.

Details

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.

Diff Detail

Repository
rL LLVM

Event Timeline

Herald added a project: Restricted Project. · View Herald TranscriptApr 2 2019, 4:17 PM
Herald added a subscriber: jsji. · View Herald Transcript
xingxue accepted this revision.Apr 3 2019, 5:50 AM

LGTM.

This revision is now accepted and ready to land.Apr 3 2019, 5:50 AM
This revision was automatically updated to reflect the committed changes.