Make use of LLVM allocation site information in DWARF
https://github.com/llvm/llvm-project/pull/132073
We can and should use this information although I suspect it won't absolve us from analysing sizeof around allocation sites at least in some cases, e.g. wrapper functions.
Thanks @jryans for flagging this addition.
FYI, with that PR applied, allocation site information is mostly only created for C++ new operators. (Though I am looking to also add sizeof support.)
FYI, with that PR applied, allocation site information is mostly only created for C++
newoperators. (Though I am looking to also addsizeofsupport.)
Understood, and thanks for the tip-off! Just operator new is useful already, but adding sizeof support would be great. Section 4 in this paper describes how I did it in my side-band (out-of-DWARF) solution....
[Leaving a note for my future self here.]