This is an archive of the discontinued LLVM Phabricator instance.

[LLVM][Alignment] Introduce Alignment In MachineFrameInfo
ClosedPublic

Authored by gchatelet on Aug 6 2019, 5:12 AM.

Details

Summary

This is patch is part of a serie to introduce an Alignment type.
See this thread for context: http://lists.llvm.org/pipermail/llvm-dev/2019-July/133851.html
See this patch for the introduction of the type: https://reviews.llvm.org/D64790

Diff Detail

Repository
rL LLVM

Event Timeline

gchatelet created this revision.Aug 6 2019, 5:12 AM
gchatelet updated this revision to Diff 213621.Aug 6 2019, 8:27 AM

Converting all alignements in MachineFrameInfo.

All the tests are passing but I'm not entirely sure of the validity of this patch.
Alignment, StackAlignment seems to be always defined alignment (aka. Align) but I'm not so sure of MaxAlignment and LocalFrameMaxAlign.
Hexagon/HexagonFrameLowering.cpp seem to rely on the fact that LocalFrameMaxAlign is undefined.
I'm not sure about MaxAlignment.

gchatelet updated this revision to Diff 214148.Aug 8 2019, 7:13 AM
  • Using Align for LocalFrameMaxAlign instead of MaybeAlign

The Hexagon part looks ok.

The Hexagon part looks ok.

Thx!

hfinkel accepted this revision.Aug 21 2019, 6:16 AM
hfinkel added a subscriber: hfinkel.

LGTM

This revision is now accepted and ready to land.Aug 21 2019, 6:16 AM
This revision was automatically updated to reflect the committed changes.