Displaying 4 results from an estimated 4 matches for "simple_foo".
2017 Oct 12
1
[GlobalISel] [X86] unable to legalize instruction
...t’ll print the instruction it failed to legalize.
Sent from my iPhone
> On Oct 11, 2017, at 6:44 PM, S. Bharadwaj Yadavalli via llvm-dev <llvm-dev at lists.llvm.org> wrote:
>
> Thanks for your quick reply.
>
> Here its is:
>
> ===========
>
> ; ModuleID = 'simple_foo.c'
> source_filename = "simple_foo.c"
> target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"
> target triple = "x86_64-apple-macosx10.13.0"
>
> ; Function Attrs: noinline nounwind optnone ssp uwtable
> define i32 @foo(i32 %a, i32 %b, i32 %...
2017 Oct 12
2
[GlobalISel] [X86] unable to legalize instruction
Thanks for your quick reply.
Here its is:
===========
; ModuleID = 'simple_foo.c'
source_filename = "simple_foo.c"
target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-apple-macosx10.13.0"
; Function Attrs: noinline nounwind optnone ssp uwtable
define i32 @foo(i32 %a, i32 %b, i32 %c) #0 {
entry:
%retval = all...
2017 Nov 09
2
[GlobalISel] [X86] unable to legalize instruction
Hi ,
Currently GobalIsel like FastIsel designed to use fallback to DAGIsel in case of failure.
You can use -global-isel-abort=2 option.
llc -global-isel -pass-remarks-missed="gisel-*" -global-isel-abort=2 simple_foo.ll
Regards,
Igor
From: S. Bharadwaj Yadavalli [mailto:bharadwajy at gmail.com]
Sent: Thursday, November 09, 2017 03:36
To: Aditya Nandakumar <proaditya at gmail.com>
Cc: Craig Topper <craig.topper at gmail.com>; llvm-dev <llvm-dev at lists.llvm.org>; Breger, Igor <igor.breger...
2017 Oct 12
2
[GlobalISel] [X86] unable to legalize instruction
...e 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 W...