[llvm-dev] allocsize: change from 3.9 to 4.0

Johan Engelen via llvm-dev llvm-dev at lists.llvm.org
Wed May 3 14:35:02 PDT 2017


On Wed, May 3, 2017 at 8:04 PM, George Burgess IV
<george.burgess.iv at gmail.com> wrote:
> Hello!
>
> The short story is ...

Thanks for the explanation and links.

>
>> (if the call is to "malloc", it is removed because LLVM recognizes the
>> function name)
>
> FWIW, the prior behavior was that we'd pretend any `allocsize` function was
> present in
> http://llvm.org/docs/doxygen/html/MemoryBuiltins_8cpp_source.html#l00054 and
> was "MallocLike". Looks like our friends in the Rust world keep
> https://github.com/rust-lang/llvm/commit/cca16c06fbec672b7d1dd9753491783a006bdfe5
> for just this purpose. :)

Yeah that is exactly the reason I want it :-)  (we use vanilla LLVM for LDC)
Perhaps the best solution is to add functions that enables users (us)
to append to `AllocationFnData` and friends.

cheers,
  Johan


More information about the llvm-dev mailing list