[llvm-dev] RFC: Improving the performance of ItaniumDemangle

Rafael EspĂ­ndola via llvm-dev llvm-dev at lists.llvm.org
Thu Apr 27 07:29:32 PDT 2017


On 25 April 2017 at 15:36, Vedant Kumar <vsk at apple.com> wrote:
>
>> On Apr 25, 2017, at 12:24 PM, Scott Smith <scott.smith at purestorage.com> wrote:
>>
>> well, top-of-branch lldb uses this code, that's how I found it.  Do you mean libc++'s demangler?
>
> Thanks for explaining, this is the first time I'm looking at the demangler situation. It looks like libcxxabi has an arena-based demangler, and that the one in llvm is different.
>
> I'm confused by this because the comment in llvm says that libcxxabi is supposed to reuse the llvm demangler. This doesn't seem to be happening, right?

The one in llvm required a few changes to be more portable. If it can
be made faster that is a good thing.

If possible you should make the change in libcxxabi and copy the code
to llvm given the license difference between the two.

Cheers,
Rafael


More information about the llvm-dev mailing list