[M68k] Update pointer data layout
authorRicky Taylor <rickytaylor26@gmail.com>
Thu, 26 Aug 2021 21:13:28 +0000 (22:13 +0100)
committerRicky Taylor <rickytaylor26@gmail.com>
Fri, 27 Aug 2021 10:47:27 +0000 (11:47 +0100)
commit8d3f112f0cdbed2311aead86bcd72e763ad55255
tree901bdfd2435cd0440d280f42ee28cabc52389e2d
parentd4d459e7475b4bb0d15280f12ed669342fa5edcd
[M68k] Update pointer data layout

Fixes PR51626.

The M68k requires that all instruction, word and long word reads are
aligned to word boundaries. From the 68020 onwards, there is a
performance benefit from aligning long words to long word boundaries.

The M68k uses the same data layout for pointers and integers.

In line with this, this commit updates the pointer data layout to
match the layout already set for 32-bit integers: 32:16:32.

Differential Revision: https://reviews.llvm.org/D108792
clang/lib/Basic/Targets/M68k.cpp
llvm/lib/Target/M68k/M68kTargetMachine.cpp