[all-commits] [llvm/llvm-project] 68494a: [XRay] xray_fn_idx: fix alignment directive

Fangrui Song via All-commits all-commits at lists.llvm.org
Tue Jul 8 21:53:16 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 68494ae072676726722d87af6d9fd9e7c8b808bb
      https://github.com/llvm/llvm-project/commit/68494ae072676726722d87af6d9fd9e7c8b808bb
  Author: Fangrui Song <i at maskray.me>
  Date:   2025-07-08 (Tue, 08 Jul 2025)

  Changed paths:
    M llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
    M llvm/test/CodeGen/PowerPC/xray-attribute-instrumentation.ll
    M llvm/test/CodeGen/SystemZ/xray.ll
    M llvm/test/CodeGen/X86/xray-attribute-instrumentation.ll

  Log Message:
  -----------
  [XRay] xray_fn_idx: fix alignment directive

Use `emitValueToAlignment` as the section does not contain code.
`emitCodeAlignment` would lead to ALIGN relocations on RISC-V and
LoongArch with linker relaxation.

In addition, change the alignment to wordsize, sufficient for the
runtime requirement (`XRayFunctionSledIndex`).

Related to #147322



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list