[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:12:16 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:

For newer options, prefer to have unified spelling for the driver and cc1 option (`Joined` with `=`, no `Separate`).

https://github.com/llvm/llvm-project/pull/155528


More information about the llvm-branch-commits mailing list