Displaying 20 results from an estimated 50000 matches similar to: "[LLVMdev] Bitcode Instruction ID"
2012 Jun 14
0
[LLVMdev] Bitcode Instruction ID
Hi César,
> I'm modifying the LLI interpreter to count the number of times that
> each instruction in a bitcode file is interpreted, however to do this
> I need to assign an identifier to each instruction in the file. Is
> there currently any kind of instruction ID that I could use to solve
> this?
yes, the address of the instruction.
Ciao, Duncan.
2013 Jan 31
0
[LLVMdev] Edge Profiling
Hello,
See answers below
On 31/01/13 00:23, César wrote:
> Hello.
>
> I'm using these commands to compile the code below in order to collect
> edge/blocks profiling:
>
> clang -emit-llvm -c sort.c -o sort.bc
> opt -insert-edge-profiling sort.bc -o sort_prof.bc
> clang sort_prof.bc -lprofile_rt -L/llvms/lib -o sort_prof
>
> then I run the program and display the
2012 May 23
0
[LLVMdev] How to get llvm bitcode executed
Hi Xiaolong,
> As Duncan described, "lli -load=libstdc++.dylib ..." works. I,
> however, encounted an "Illegal instruction" message, while I was
> trying to interpret a large program.
are you using the interpreter or the JIT?
So, does lli have a debug switch
> for dumping out the details for errors?
>
> Using llc is not that simple, and I have not gotten
2010 Jan 28
3
[LLVMdev] llvm interpreter cannot execute llvm-gcc generated bitcode
Hi!
We are compiling a very large C project in llvm and trying to execute
it in interpreter. There is a problem with executing the generated
bitcode.
We are using lli.exe and llvm-gcc.exe from official 2.6 LLVM release.
We have localized the problem to following c code:
--------------------
int f(unsigned char x) __attribute__((noinline));
int f(unsigned char x)
{
return x - 1;
}
int main()
2010 Jan 28
0
[LLVMdev] llvm interpreter cannot execute llvm-gcc generated bitcode
Kristaps Straupe wrote:
> Hi!
>
> We are compiling a very large C project in llvm and trying to execute
> it in interpreter. There is a problem with executing the generated
> bitcode.
The interpreter is under-maintained in general, but this bug in
particular is fixed SVN as-of r86428. Are you on a platform that isn't
supported by llvm's jit?
Nick
> We are using
2012 May 22
2
[LLVMdev] How to get llvm bitcode executed
Thanks Duncan and Ashok,
As Duncan described, "lli -load=libstdc++.dylib ..." works. I,
however, encounted an "Illegal instruction" message, while I was
trying to interpret a large program. So, does lli have a debug switch
for dumping out the details for errors?
Using llc is not that simple, and I have not gotten through the
compilation process. For instance, "llc -o
2016 Jul 05
2
Adding a NOP bitcode instruction
Hi,
I'm trying to follow the instructions on how to add a new bitcode
instruction:
http://llvm.org/docs/ExtendingLLVM.html
This is my first foray into the guts of LLVM and I'm not sure I'm doing
things the right way. I came up with a patch that adds a NOP (no
operation) that will work with llvm-as, llvm-dis, and lli. It would be
nice if one of the experts could take a look and give
2019 Sep 19
2
Interpreter and arithmetic overflow intrinsics
Hi all,
I am trying to run LLI on an optimized bitcode file in interpreted
mode, and I get the following error message:
LLVM ERROR: Code generator does not support intrinsic function
'llvm.usub.with.overflow.i32'!
As the error message indicates, this intrinsic is not supported
(lib/CodeGen/IntrinsicLowering.cpp). Is there any way that I can get
the interpreter to work across this
2012 May 23
1
[LLVMdev] lli unable to resolve symbol _ZNKSt3__16locale9use_facetERNS0_2idE in bitcode
Hi Nick,
> Fundamentally the issue is that the system linker is supposed to define
> __dso_handle when linking, but since there is no system linker between
> your build of the .bc files and running lli, nobody has defined it.
>
> It seems reasonable to me that lli should define __dso_handle if it's
> declared in the module.
>
> You could module tools/lli/lli.cpp to add
2012 May 23
0
[LLVMdev] lli unable to resolve symbol _ZNKSt3__16locale9use_facetERNS0_2idE in bitcode
Ashok Nalkund wrote:
>
> Resending :(. Any pointers?
Fundamentally the issue is that the system linker is supposed to define
__dso_handle when linking, but since there is no system linker between
your build of the .bc files and running lli, nobody has defined it.
It seems reasonable to me that lli should define __dso_handle if it's
declared in the module.
You could module
2012 Sep 18
2
[LLVMdev] Problems on getting UNREACHABLE executed
Hi Andy,
> I am currently using llvm to compile memcache to get the bitcode. I simply
> change all the "gcc -c" command to "clang -emit-llvm -c", and output ".o" to
> ".bc". And all gcc link command to llvm-ld. By these means, I successfully get
> the bitcode file, but when I run it using "lli", it fails with the error:
>
>
2010 Nov 03
4
[LLVMdev] Fw: Forcing the Interpreter segfaults
[I assume you meant to send this to the list as well, not just me.]
Begin forwarded message:
Date: Wed, 3 Nov 2010 14:43:54 +0000
From: Salomon Brys <salomon.brys at gmail.com>
To: Török Edwin <edwintorok at gmail.com>
Subject: Re: [LLVMdev] Forcing the Interpreter segfaults
I have build LLVM in debug mode. Here are the informations of the
segfault : memcpy() at 0x7ffff6f6581e
2012 Feb 06
2
[LLVMdev] misc questions on opt and bitcode
Hi Eric,
Here's the C code (example.c):
include <stdio.h>
int main()
{
printf("testing\n");
}
Here's the LLVM IR (from llvm-gcc):
ModuleID = 'example.c'
target datalayout =
"e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64"
target triple =
2012 May 20
2
[LLVMdev] lli unable to resolve symbol _ZNKSt3__16locale9use_facetERNS0_2idE in bitcode
Hi,
LLVM/Clang version: 3.2svn (r156975). I have a bitcode file that I'm
trying to load/execute using lli as below but it reports an error about
unresolved symbol:
> LLVM ERROR: Program used external function '_ZNKSt3__16locale9use_facetERNS0_2idE' which could not be resolved!
> lli: /local/mnt/workspace/ashoknn/crd/neo/llvm/proto/llvmsvn/llvm/lib/Support/ThreadLocal.cpp:54:
2012 May 22
0
[LLVMdev] How to get llvm bitcode executed
Hi Xialong,
> I have a program that uses C++ STL a lot. To have the source code for
> STL functions, I undefined "_GLIBCXX_EXTERN_TEMPLATE" in
> c++config.h. In spite of this, after compilation (via clang) and
> linking (via llvm-ld), the resulting bitcode contains a few declared
> functions (with no definitions).
>
> My question is: In the scenario where some
2008 Apr 01
1
[LLVMdev] Advice on debugging?
> Ping? Still looking for advice in figuring out how and why my generated
> code is causing lli to crash...
Did you run your code through the verifier?
> > So for example, when I run lli on my program:
> > ----------------------------------------------------------
> > Assertion failed: (V == V2 && "Didn't find key?"), function RemoveKey,
> >
2010 May 29
1
[LLVMdev] Assertion when loading bitcode
>> I can cross-compile LLVM-2.5 to ARM and run lli on a simulator in debug
>> mode . However, when I now compile with optimization enabled, lli
>> triggers an assertion when loading bitcode files. The assertion looks
>> like this :
>are you not able to use a more recent version of LLVM like LLVM-2.7?
I tried out LLVM-2.7. It also triggers an assertion. This
2012 Feb 26
0
[LLVMdev] shared bitcode modules / dynamic linking.
On Saturday 11 of February 2012 14:29:10 Paweł Sikora wrote:
> Hi,
>
> afaics in manuals the llvm-{link,ld} tools only can merge bitcode files
> into one bigger piece which looks like a static-linking from the c/c++ world.
> i'm wondering is it any possibility to link bitcode elements dynamically
> in the same way as e.g. c#/msil assemblies? static linking into one
2010 Nov 03
0
[LLVMdev] Fw: Forcing the Interpreter segfaults
Hi Salomon, please don't forget to reply to the list too (I've CC'd the list).
> I don't think my code is doing anything worng...
No, it looks fine to me, and the interpreter certainly supports this. That
suggests that the value of %str is not being transmitted to the function right.
If it is getting the wrong pointer value, that would explain why it barfs.
Ciao,
Duncan.
2010 Jan 22
2
[LLVMdev] Exception handling question
Hi James,
> want to send us your testcase code? Then we can give it a whirl.
>
>
> Test code is at http://giantblob.com/ehtest.tar.gz
>
> Thanks for the help. I apologize in advance if it turns out I'm doing
> something stupid!
I hope you realise that by running llvm-ld without -native you are actually
executing your program from the JIT. I did a native