[clang] [llvm] [clang] Support per-function [[clang::code_align(N)]] attribute. (PR #80765)

Anton Bikineev via cfe-commits cfe-commits at lists.llvm.org
Sun Feb 11 02:57:35 PST 2024


AntonBikineev wrote:

> I am not sure a case where people care for specific functions and want annotating them.

Our (V8 and Chromium) use case is that we know some hot functions that suffer from misaligned jumps. These functions would ideally be annotated with the attribute. We don't want to use the option for the entire binary as it'd significantly increase the binary size.

The alternative would be moving those functions into a separate TU(s), but it's just cumbersome.

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


More information about the cfe-commits mailing list