================
@@ -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">>;
----------------
pcc wrote:

> Based on the docs, I have no idea how this new option differs from 
> -ffunction-alignment which sets the default function alignment.

Let me add an explanation to UsersManual.rst based on the LangRef update in 
#155527.

> Also, what happens when the user sets both on the command line? (This should 
> be added as a test case.)

In that case, the preferred alignment is ignored. I'll add a test case for that.

https://github.com/llvm/llvm-project/pull/155528
_______________________________________________
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to