[Webkit-unassigned] [Bug 154323] Remove LLVM dependencies from WebKit

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Feb 17 12:26:54 PST 2016


https://bugs.webkit.org/show_bug.cgi?id=154323

--- Comment #8 from Filip Pizlo <fpizlo at apple.com> ---
I've confirmed that the LLVM disassembler is only used when the FTL is used. For example:

#if !defined(USE_LLVM_DISASSEMBLER) && HAVE(LLVM) && (CPU(X86_64) || CPU(X86) || CPU(ARM64))
#define USE_LLVM_DISASSEMBLER 1
#endif

Notice that it's only enabled on platforms where we also have our own disassembler, and we will use our own disassembler on those platforms except for code generated by LLVM.

Also this:

    const char* triple;
#if CPU(X86_64)
    triple = "x86_64-apple-darwin";
#elif CPU(X86)
    triple = "x86-apple-darwin";
#elif CPU(ARM64)
    triple = "arm64-apple-darwin";
#else
#error "LLVM disassembler currently not supported on this CPU."
#endif

Clearly, if you tried to use the LLVM disassembler on any platform other than the ones where we also have our own disassemblers, you'd get a compile-time error.

Because of this, it's clear that the LLVM disassembler is dead code on every platform, including ARM traditional.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20160217/4a2bf9cd/attachment.html>


More information about the webkit-unassigned mailing list