This is an archive of the discontinued LLVM Phabricator instance.

Add documentation for force_align_arg_pointer function attribute
ClosedPublic

Authored by anatol.pomozov on Aug 30 2017, 2:25 PM.

Diff Detail

Repository
rL LLVM

Event Timeline

anatol.pomozov created this revision.Aug 30 2017, 2:25 PM
anatol.pomozov added inline comments.Aug 30 2017, 2:27 PM
include/clang/Basic/AttrDocs.td
2809 ↗(On Diff #113314)

Feel free to reword the documentation (English is not my native language).

Let me know if something is not clear about force_align_arg_pointer functionality, I'll provide more info.

erichkeane edited edge metadata.Aug 30 2017, 2:31 PM

Aaron should have final say, but I've included my 2 cents.

include/clang/Basic/AttrDocs.td
2816 ↗(On Diff #113314)

that the x86_64 ABI..

"call site" instead of "caller side".

2817 ↗(On Diff #113314)

Instead of "Taking it into account", perhaps, "Because of this,"

2818 ↗(On Diff #113314)

align the stack correctly

anatol.pomozov marked 3 inline comments as done.

Looks good to me, but I want to give @aaron.ballman a chance to take a look before this gets accepted.

aaron.ballman added inline comments.Aug 31 2017, 11:32 AM
include/clang/Basic/AttrDocs.td
2812 ↗(On Diff #113340)

work with stack -> work with the stack

2813 ↗(On Diff #113340)

realigns stack -> realigns the stack

2817 ↗(On Diff #113340)

at x86_64 except rare cases when caller -> on x86_64, except in rare cases where the caller

anatol.pomozov marked 3 inline comments as done.
aaron.ballman accepted this revision.Aug 31 2017, 1:24 PM

LGTM! Thank you for working on this!

This revision is now accepted and ready to land.Aug 31 2017, 1:24 PM

LGTM! Thank you for working on this!

Did you want to land this, or should I?

This revision was automatically updated to reflect the committed changes.

Thank you folks for your work.

By the way when these changes are going to be released? clang 6.0?

Thank you folks for your work.

By the way when these changes are going to be released? clang 6.0?

Most likely. Its too late to get into 5.0, and 6.0 hasn't been branched yet.