[llvm-branch-commits] CodeGen: Introduce MachineFunction::getPreferredAlignment(). (PR #158368)

Peter Collingbourne via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Fri Sep 12 14:34:24 PDT 2025


https://github.com/pcc created https://github.com/llvm/llvm-project/pull/158368

MachineFunction can now be queried for the preferred alignment which
comes from the function attributes (optsize, minsize, prefalign) and
TargetLowering.

Part of this RFC:
https://discourse.llvm.org/t/rfc-enhancing-function-alignment-attributes/88019





More information about the llvm-branch-commits mailing list