[llvm-dev] [GlobalISel] [X86] unable to legalize instruction

S. Bharadwaj Yadavalli via llvm-dev llvm-dev at lists.llvm.org
Wed Oct 11 17:39:40 PDT 2017


Hi,

Can someone please let me know if I can expect GlobalISel to be functional
for x86/x86-64 targets?

$ uname -a

Darwin <Machine-Name> 17.0.0 Darwin Kernel Version 17.0.0: Thu Aug 24
21:48:19 PDT 2017; root:xnu-4570.1.46~2/RELEASE_X86_64 x86_64
Following is the command I used that resulted in an error :

~/github/build/llvm/Debug/bin/llc -global-isel -O0 simple_foo.ll

LLVM ERROR: unable to legalize instruction (in function: foo)

llc without the -global-isel option works fine.
I built clang/llc using the sources with the following tips:

LLVM

761e543ac73 (HEAD -> master, origin/master, origin/HEAD) [Transforms] Fix
some Clang-tidy modernize and Include What You Use warnings; other minor
fixes (NFC).

clang

9563977e8b (HEAD -> master, origin/master, origin/HEAD) [X86] Add support
for 'amdfam17h' to __builtin_cpu_is to match gcc.

Thanks,

Bharadwaj
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20171011/31ef61e7/attachment.html>


More information about the llvm-dev mailing list