[llvm-branch-commits] [clang] CodeGen, Driver: Introduce -fpreferred-function-alignment option. (PR #155528)
Fangrui Song via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Mon Jan 19 20:13:34 PST 2026
================
@@ -8695,6 +8697,9 @@ def fencode_extended_block_signature : Flag<["-"], "fencode-extended-block-signa
def function_alignment : Separate<["-"], "function-alignment">,
HelpText<"default alignment for functions">,
MarshallingInfoInt<LangOpts<"FunctionAlignment">>;
+def preferred_function_alignment : Separate<["-"], "preferred-function-alignment">,
+ HelpText<"preferred alignment for functions">,
+ MarshallingInfoInt<LangOpts<"PreferredFunctionAlignment">>;
----------------
MaskRay wrote:
OK, the CC1 option preferred_function_alignment records the log2 value. Then I think this separation is fine.
https://github.com/llvm/llvm-project/pull/155528
More information about the llvm-branch-commits
mailing list