[llvm] [bolt][aarch64] Change indirect call instrumentation snippet (PR #180229)

Alexey Moksyakov via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 12 04:51:05 PST 2026


yavtuk wrote:

@yozhu re-check comments and snippet, what we have
``` 
stp     CallSiteIDReg, x30, [sp, -16]!  
movz/k  CallSiteIDReg, 1 <- depends on call site id value (from 1 to 4 instructions)
stp     BlrReg, CallSiteIDReg, [sp, -16]! ; push address and id for lib
adrp    BlrReg, __bolt_instr_ind_call_handler_func
add     BlrReg, BlrReg, #:lo12:__bolt_instr_ind_call_handler_func
blr     BlrReg
ldr     BlrReg, [sp], 16
ldp     CallSiteIDReg, x30, [sp], 16
blr     BlrReg 
```

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


More information about the llvm-commits mailing list