[llvm] [SHT_LLVM_BB_ADDR_MAP] Encode and decode callsite offsets in a newly-introduced SHT_LLVM_BB_ADDR_MAP version. (PR #144426)

Rahman Lavaee via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 17 08:25:49 PDT 2025


rlavaee wrote:

> > We would have to support every architecture separately, whereas here it's architecture-independent.
> 
> Ah, true. I would think `MCInstrDesc::isCall()` would handle most of it though assuming you can get the architecture from a user-provided target triple or the binary itself?

Correct. We will be using the Codegen intrinsic here too.

> 
> > What's your specific objection to this approach? We have extended the section multiple times so far (BB-relative offsets, BB ranges).
> 
> No specific objection, I just want to make sure the additional complexity/version bump has sufficient motivation and isn't something that can just be trivially reconstructed from the binary.
> 
> The CI failures also look relevant: https://github.com/llvm/llvm-project/actions/runs/15690836465?pr=144426

Thanks. Fixed the issues.



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


More information about the llvm-commits mailing list