Displaying 5 results from an estimated 5 matches for "babai".
Did you mean:
babak
2012 Feb 05
2
[LLVMdev] misc questions on opt and bitcode
...le example below, I get *Unknown instruction error from
lli and llvm-dis*, while* llc does not print anything*. Not sure what is
that I am missing here. My llvm-gcc version
is i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build
5658) (LLVM build 2336.1.00)
1-39-155-188:pastebin Babai$ cat example.c
#include <stdio.h>
void hello()
{
printf("testing\n");
}
int main()
{
hello();
}
1-39-155-188:pastebin Babai$ llvm-gcc example.c -emit-llvm -c -o example.bc
1-39-155-188:pastebin Babai$ lli example.bc
lli: example.bc: Unknown instruction
1-39-155-188:pastebin Ba...
2012 Feb 06
2
[LLVMdev] misc questions on opt and bitcode
...; <i32> [#uses=1]
ret i32 %retval1
}
declare i32 @puts(i8*)
And when I run llc with this IR I get nothing printed on screen. Not sure
if my LLVM revision is corrupted and needs a fresh install. When I ran with
the bitcode and lli here's what I get:
42-105-250-151:pastebin Babai$ llvm-gcc example.c -c -emit-llvm -o
example.bc
42-105-250-151:pastebin Babai$ lli example.bc
lli: example.bc: Invalid ALLOCA record
Pretty confusing.
Thanks,
Arpan
On Mon, Feb 6, 2012 at 6:16 AM, Eric Christopher <echristo at apple.com> wrote:
>
> On Feb 5, 2012, at 11:32 AM, Ar...
2012 Feb 06
0
[LLVMdev] misc questions on opt and bitcode
...e example below, I get Unknown instruction error from lli and llvm-dis, while llc does not print anything. Not sure what is that I am missing here. My llvm-gcc version is i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.1.00)
> 1-39-155-188:pastebin Babai$ llvm-gcc example.c -emit-llvm -c -o example.bc
>
> Any ideas?
On which instruction is illegal? Not offhand, but you can use llvm-gcc -S -emit-llvm example.c -o example.ll to get an llvm bitcode file as text and take a look.
-eric
-------------- next part --------------
An HTML attachmen...
2012 Feb 06
0
[LLVMdev] misc questions on opt and bitcode
...> ret i32 %retval1
> }
>
> declare i32 @puts(i8*)
>
> And when I run llc with this IR I get nothing printed on screen. Not sure if my LLVM revision is corrupted and needs a fresh install. When I ran with the bitcode and lli here's what I get:
> 42-105-250-151:pastebin Babai$ llvm-gcc example.c -c -emit-llvm -o example.bc
> 42-105-250-151:pastebin Babai$ lli example.bc
> lli: example.bc: Invalid ALLOCA record
>
> Pretty confusing.
>
> Thanks,
> Arpan
>
>
> On Mon, Feb 6, 2012 at 6:16 AM, Eric Christopher <echristo at apple.com&g...
2017 Aug 01
7
[RFC] Add IR level interprocedural outliner for code size.
>
>
>
> Also as a side note, I think in the original MachineOutliner RFC thread
> there was some confusion as to whether it was possible to solve the code
> folding outlining problem exactly as a graph problem on SSA using standard
> value numbering algorithms in polynomial time.
>
> I can elaborate further, but
> 1. it is easy to see that you can map an arbitrary