similar to: [LLVMdev] How does JIT/lli work with bc file?

Displaying 20 results from an estimated 11000 matches similar to: "[LLVMdev] How does JIT/lli work with bc file?"

2009 Dec 31
0
[LLVMdev] How does JIT/lli work with bc file?
On Wed, Dec 30, 2009 at 7:53 PM, Heming Cui <heming at cs.columbia.edu> wrote: > Dear all, >      I hope you enjoy your christmas! Recently I started to play lli with > bc. I found that the lli only calls the main() function in bc file and then > does nothing before the main() function returns, which means that the > JIT::runFunction() function is involved only once with the
2009 Dec 31
2
[LLVMdev] How does JIT/lli work with bc file?
Hi Eli, Thanks for your reply. If I add -force-interpreter to lli, then it seems that it can not run external function like printf or malloc. Is there any easy way to solve this problem? On Wed, Dec 30, 2009 at 11:26 PM, Eli Friedman <eli.friedman at gmail.com>wrote: > On Wed, Dec 30, 2009 at 7:53 PM, Heming Cui <heming at cs.columbia.edu> > wrote: > > Dear all, >
2009 Dec 31
0
[LLVMdev] How does JIT/lli work with bc file?
On Thu, Dec 31, 2009 at 2:26 AM, Heming Cui <heming at cs.columbia.edu> wrote: > Hi Eli, >     Thanks for your reply. If I add -force-interpreter to lli, then it seems > that it can not run external function like printf or malloc. Is there any > easy way to solve this problem? Does the LLVM configure find libffi? -Eli
2010 Jan 01
1
[LLVMdev] How does JIT/lli work with bc file?
Hi Eli, I think the llvm configure has already configured with ffi. ../llvm-2.6/configure -help | grep ffi --enable-libffi Check for the presence of libffi (default is YES) In addition, the printf() can work in program, reflecting that libffi is working, right? How can I make Interpreter work with getpid(), fork(), and clone()? On Thu, Dec 31, 2009 at 2:33 AM, Eli
2010 Mar 24
1
[LLVMdev] How to add extern function declaratioin to llvm bc?
Dear all, I am wondering if there is some API to add extern function declaration to bc file. For example, as given below, I want to add the line "extern void foo();" to my bc file with some llvm methods, how can I do this, please? extern void foo(); // the llvm bc code is: declare void @_Z3foov(). How can I add this line to llvm bc using some llvm methods?
2010 Jan 01
1
[LLVMdev] Can Interpreter handle clone() call (with CLONE_VM flag)?
Dear all, May I know whether Interpreter in llvm-2.6 can handle clone() call (with CLONE_VM flag)? Another small question is: since JIT only invokes the main() function in a program once, and does not have control to the execution while main() is running, what is the benefit of using JIT? -- Regards, Heming Cui -------------- next part -------------- An HTML attachment was scrubbed...
2010 Oct 25
2
[LLVMdev] Is it possible to map an LLVM instruction to x86 assembly instructions?
Dear folks, If I want to setup a mapping between an LLVM instruction and the x86 assembly instructions it generates, is this possible? Or, an equavalent question is, when LLVM is emitting assebmly instructions, will it transform a set of LLVM instructions to a set of assembly instructions, or transform each LLVM instruction to assembly instructions independently? -- Regards, Heming Cui
2008 Oct 30
3
[LLVMdev] Problem executing code with lli...
Hi all, I am facing new problem with lli now. I am having a sample code in which I am doing malloc for two variables. If I compile the code with normal gcc the program runs without any warning of any sorts. If I compile the program to convert it into a bytecode file and then run it through lli it segfaults and the program aborts. This is the stack trace after execution. lli((anonymous
2010 Aug 08
1
[LLVMdev] What is the gcc optimization flag for "ENABLE_OPTIMIZED=1" in LLVM?
Dear LLVM developers, I am wondering the gcc optimization flag for "ENABLE_OPTIMIZED=1" in LLVM is -O2 or -O3. And what is the flag if I set "ENABLE_OPTIMIZED=0"? If I want to manually modify the flag for "ENABLE_OPTIMIZED=1" in LLVM, what file should I refer to? -- Regards, Heming Cui -------------- next part -------------- An HTML attachment was
2019 Jan 28
2
How to generate .bc file using configure && make on Mac OS X?
> > but doesn't emit optnone and nounwind attributes > s/nounwind/noinline On Mon, Jan 28, 2019 at 11:35 AM Jakub (Kuba) Kuderski < kubakuderski at gmail.com> wrote: > As far as I understand, gllvm doesn't run LTO pipeline or any cross-module > optimization, and the optimization level provided is only used to compile > each Translation Unit separately. > If you
2010 Oct 25
0
[LLVMdev] Is it possible to map an LLVM instruction to x86 assembly instructions?
On Mon, Oct 25, 2010 at 12:39 PM, Heming Cui <hc2428 at columbia.edu> wrote: > Dear folks, >     If I want to setup a mapping between an LLVM instruction and the x86 > assembly instructions it generates, is this possible? >     Or, an equavalent question is, when LLVM is emitting assebmly > instructions, will it transform a set of LLVM instructions to a set of > assembly
2009 Jun 28
3
[LLVMdev] Error when running llc to compile .bc to .s
Dear staff, I downloaded an llvm version from the svn trunk at June 12, because the released 2.5 version can not support "gcc -g -Ox", and x=1,2,3. I use the version in svn to compile an httpd.bc file succefully with dbgstoppoint() functions. However, when I use llc to compile the bc file to .s file (llc -f -o httpd.s httpd.bc), I met this error (the httpd.bc file will be
2020 Apr 02
2
lli cannot execute the bc file for RISCV, Unable to find target for this triple
*llvm-project version:dd8a2013dc1804be1b7d9cffacad2e984300bd22* *Instructons to build LLVM+clang:* ``` cmake -G Ninja -DCMAKE_INSTALL_PREFIX=/home/llvm/workspace/llvm/llvm-project/llvm_install -DCMAKE_BUILD_TYPE="Release" -DDEFAULT_SYSROOT="/home/llvm/workspace/riscv/riscv-tc-20200220/bin/riscv32-unknown-elf"
2010 Nov 19
3
[LLVMdev] lli can't read .bc files
Hi all I'm a new to LLVM. I was unable to browse all the archive since I couldn't locate any search option. So here is my issue: I installed LLVM under openSUSE 11.3 with the following llvm tools ---------- llvm-gcc (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2.8) ---------- Low Level Virtual Machine (http://llvm.org/): llvm version 2.6 Optimized build. Built Jul 24
2009 Oct 28
1
[LLVMdev] lli crashes when loading .bc files with debug informations
Hello, I'm trying to use DWARF informations to debug JITed code, but lli crashes when it tries to run any code coming from llvm-gcc or CLANG with the -g and -emit-llvm -c arguments. The target machine is an AMD 64 X2 processor on linux ubuntu 9.04 in x86_64 mode. Lli is generated from the current version of the svn repository. The backtrace and full bt from gdb are enclosed with this
2010 Nov 19
0
[LLVMdev] lli can't read .bc files
Hi Toussaint, > llvm-gcc (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2.8) version 2.8 > Low Level Virtual Machine (http://llvm.org/): > llvm version 2.6 version 2.6 You need lli from version 2.8 or later. Ciao, Duncan.
2012 Aug 06
2
[LLVMdev] Code-emission problem
Hi Everyone, When I compile a program with clang with debug symbols enabled and I try to run it using the JIT (lli) I get the following error message. I am running on Lion (10.7.4). Thanks. George >> pseudo instructions should be removed before code emission UNREACHABLE executed at /Users/JD/Software/llvm3.1/llvm-3.1.src/lib/Target/X86/X86CodeEmitter.cpp:736! 0 lli
2011 Jan 25
1
[LLVMdev] Can CallGraphSCCPass distinguish different function pointer types in CallGraphNode?
Dear folks, I am trying to handle function pointers at call graph, and I found that the CallGraphSCCPass makes function pointers as external node, which is actually an empty CallGraphNode (NULL pointer)? If I want to distinguish the function pointer types in the call graph (and I also want the SCC order in CallGraphSCCPass), can I do that easily? Or I have to inheritate the
2019 Jan 28
2
How to generate .bc file using configure && make on Mac OS X?
I did a sanity check and run some of the bitcode I complied with gllvm and it seems to work fine under lli. The only issues is to make sure you load all the (external) libraries the bitcode needs. I highly suggest you run a debug version of lli under a debugger and see what exactly happens. On Mon, Jan 28, 2019 at 12:45 PM Peng Yu <pengyu.ut at gmail.com> wrote: > It seems that it does
2019 Jan 26
2
How to debug .ll file with segmentation fault?
Hi, I edited a working .ll file and llvm-as it to a .bc file. But it causes segmentation fault. I don't know how to debug such errors. Could anybody show me the best way to debug such errors? Thanks. $ TRACE_OUTFILE=/tmp/trace.txt lli /tmp/y/bash_trcr.bc --norc __trace_init LLVMSymbolizer: error reading file: No such file or directory #0 0x00007f162b1ee0ea