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

Anton Bikineev via cfe-commits cfe-commits at lists.llvm.org
Fri Feb 9 04:28:37 PST 2024


AntonBikineev wrote:

> Aligning the targets of branches is a different thing from what you've implemented. There are basic blocks which are not branch targets, and there are branch targets which are not at the beginning of a basic block. (Branch targets that aren't at the beginning of a basic block are rare on most targets, but it doesn't seem like something we should completely ignore.)

That makes sense, thanks. Would there be an interest in something like [[clang::x86_align_branch_boundary]] that would align branch instructions per function?

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


More information about the cfe-commits mailing list