[llvm-branch-commits] CodeGen, Driver: Introduce -fpreferred-function-alignment option. (PR #155528)
Peter Collingbourne via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Tue Aug 26 17:12:34 PDT 2025
https://github.com/pcc created https://github.com/llvm/llvm-project/pull/155528
This option may be used to specify a function's preferred alignment.
The -falign-functions option and the aligned attribute now control
both the minimum alignment and the preferred alignment for consistency
with gcc. In contrast to the previous approach implemented in #149444
the preferred alignment is retained for member functions.
Part of this RFC:
https://discourse.llvm.org/t/rfc-enhancing-function-alignment-attributes/88019
More information about the llvm-branch-commits
mailing list