[llvm-branch-commits] [clang] CodeGen, Driver: Introduce -fpreferred-function-alignment option. (PR #155528)

Peter Collingbourne via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Wed Jan 14 11:20:08 PST 2026


================
@@ -0,0 +1,4 @@
+// RUN: %clang_cc1 -emit-llvm -triple x86_64-unknown-linux -preferred-function-alignment 4 %s -o - | FileCheck %s
----------------
pcc wrote:

`-preferred-function-alignment` is the cc1 option. Because it takes log2 of the alignment it uses a different spelling. This is similar to the cc1 `-function-alignment` which also takes log2 of the alignment.

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


More information about the llvm-branch-commits mailing list