search for: lli

Displaying 20 results from an estimated 1623 matches for "lli".

Did you mean: cli
2019 Dec 19
2
Interpreter crash due to an "Unknown constant pointer type!"
Hi David, Thanks for the suggestions. I can definitely provide the example bc file and image ( please see the attachments ). For the debug + asserts I need a bit of more time. Anyway the full output of lli is: lli --force-interpreter examples/pngpixel_crash.bc 0 0 examples/mini.png png_ptr->width: 1 max_pixel_depth: 24 row_bytes: 28 Unknown constant pointer type! UNREACHABLE executed at /home/al/Desktop/llvm-6.0.1.src/lib/ExecutionEngine/ExecutionEngine.cpp:1007! LLVMSymbolizer: error reading fil...
2013 Aug 20
2
[LLVMdev] Trying to run qt app compiled to bit code Assertion failed: (Ty->isSized() && "Cannot getTypeInfo() on a type that is unsized!")
Hi,  I am trying to run a simple qt 5 application compiled to bitcode on OS X. I am getting the following error. I have modified lli to load qt libraries. When I use with option mcjit, I get the following error lli -use-mcjit -debug-ir bitcodetestqtapp Assertion failed: (Ty->isSized() && "Cannot getTypeInfo() on a type that is unsized!"), function getTypeSizeInBits, file /Users/shailesh/repos/llvm/include/...
2019 Dec 19
2
Interpreter crash due to an "Unknown constant pointer type!"
...etelementptr inbounds ([512 x %struct.code], [512 x %struct.code]* @fixedtables.lenfix.681, i64 0, i64 0), %struct.code* getelementptr inbounds ([32 x %struct.code], [32 x %struct.code]* @fixedtables.distfix.682, i64 0, i64 0)>, <2 x %struct.code*>* %96, align 8, !tbaa !46 The output from lli is: Unknown constant pointer type! UNREACHABLE executed at /home/al/Desktop/llvm-6.0.1.src/lib/ExecutionEngine/ExecutionEngine.cpp:1007! LLVMSymbolizer: error reading file: No such file or directory #0 0x0000000001765ee9 (lli+0x1765ee9) #1 0x0000000001766099 (lli+0x1766099) #2 0x0000000001764643 (...
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 0x0000000103518b6e _ZL1...
2019 Dec 24
2
Interpreter crash due to an "Unknown constant pointer type!"
...arbaro.alberto at gmail.com> wrote: > >> Hi David, >> Thanks for the suggestions. I can definitely provide the example bc file >> and image ( please see the attachments ). For the debug + asserts I need a >> bit of more time. >> >> Anyway the full output of lli is: >> >> lli --force-interpreter examples/pngpixel_crash.bc 0 0 examples/mini.png >> png_ptr->width: 1 >> max_pixel_depth: 24 >> row_bytes: 28 >> Unknown constant pointer type! >> UNREACHABLE executed at >> /home/al/Desktop/llvm-6.0.1.src/lib/Exec...
2013 Aug 20
0
[LLVMdev] Trying to run qt app compiled to bit code Assertion failed: (Ty->isSized() && "Cannot getTypeInfo() on a type that is unsized!")
...Subject: [LLVMdev] Trying to run qt app compiled to bit code Assertion failed: (Ty->isSized() && "Cannot getTypeInfo() on a type that is unsized!") Hi, I am trying to run a simple qt 5 application compiled to bitcode on OS X. I am getting the following error. I have modified lli to load qt libraries. When I use with option mcjit, I get the following error lli -use-mcjit -debug-ir bitcodetestqtapp Assertion failed: (Ty->isSized() && "Cannot getTypeInfo() on a type that is unsized!"), function getTypeSizeInBits, file /Users/shailesh/repos/llvm/include/...
2010 Jun 01
2
[LLVMdev] Assertion when loading bitcode
>>>>> I am using GCC 4.3.2 ( Debian 4.3.2-1.1) on x86. I will try out a different compiler. I tried out Sourcery G++ Lite 2009q1-203 (GCC 4.3.3). I still can't get lli to run. This time the error is like this: 0 lli 0x00651128 1 lli 0x00651960 2 libc.so.6 0x40212600 __default_sa_restorer_v1 + 0 3 lli 0x00282ef0 4 lli 0x00283cec llvm::SelectionDAG::LegalizeTypes() + 608 5 lli 0x00233a10 llvm::SelectionDAGISel::CodeGenAndEmitDAG...
2020 Jan 03
3
Interpreter crash due to an "Unknown constant pointer type!"
...managed to compile llvm Debug with asserts release. I have used the following commands: cmake -DLLVM_TARGETS_TO_BUILD=X86 -DLLVM_ENABLE_RTTI=ON -DLLVM_ENABLE_FFI=ON -DCMAKE_BUILD_TYPE=Debug -DLLVM_ENABLE_ASSERTIONS=ON .. cmake --build . -- -j8 && sudo cmake --build . --target install Once lli was installed it was enough to use the .bc /usr/local/bin/lli --debug --force-interpreter pngpixel_crash.bc 0 0 mini.png ... png_ptr->width: 1 max_pixel_depth: 24 row_bytes: 28 ... About to interpret: store <2 x %struct.code*> <%struct.code* getelementptr inbounds ([512 x %struct.cod...
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...
2009 Oct 19
3
[LLVMdev] Objective-C code in lli
Hi, Is it possible to run Objective-C code in lli? lli does not seem to want to load Foundation.framework. Please see below. Thanks, Eric Brunstad #import <Foundation/Foundation.h> int main(int argc, char *argv[]) { NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; NSLog(@"test!"); [pool drain]; return EXIT_SU...
2013 Oct 06
1
[LLVMdev] Resolving a function symbol using JIT.
...separate implementation of that function using JIT. The scenario is like this: 1. A test code or client code calls a function A() for which a dummy implementation is provided in a library which the test code/client links with during compilation. 2. I create the .bc using -emit-llvm and run it with lli. 3. Now, in the JIT, I have provided the concrete implementation of the function A(). I have to intercept this call to function A() and return a pointer to the concrete implementation in JIT. I tried the way external library symbols are being resolved in JITMemoryManager.cpp but the error I get is...
2014 Mar 21
3
[LLVMdev] lli crashes when running cpp programs
Hi all, I need to run c++ prgrams using lli. However, I find lli cannot handle the alias instruction correctly. Following is an example: ------------ example.cc ------------- #include <iostream> using namespace std; class cls { public: cls(); ~cls(); }; cls::cls() { cout << "constructor" << end...
2020 Feb 10
2
Interpreter crash due to an "Unknown constant pointer type!"
...ed the >> following commands: >> >> cmake -DLLVM_TARGETS_TO_BUILD=X86 -DLLVM_ENABLE_RTTI=ON >> -DLLVM_ENABLE_FFI=ON -DCMAKE_BUILD_TYPE=Debug -DLLVM_ENABLE_ASSERTIONS=ON .. >> cmake --build . -- -j8 && sudo cmake --build . --target install >> >> Once lli was installed it was enough to use the .bc >> >> /usr/local/bin/lli --debug --force-interpreter pngpixel_crash.bc 0 0 >> mini.png >> ... >> png_ptr->width: 1 >> max_pixel_depth: 24 >> row_bytes: 28 >> ... >> About to interpret: store <2...
2009 Jul 14
0
[LLVMdev] "Recursive compilation detected" and signals
Hello, Platform is RHEL5, GCC 4.2.4, x86-32, and LLVM/LLVM-GCC from subversion (yesterday evening). I'm compiling C code into bitcode, and then executing the bitcode using the JIT compiler (lli). I've managed to reproduce a problem when multiple signals go off around the same time. A sample program is below. The result is the "recursive compilation detected" JIT compiler error. The same program compiled via GCC works fine. Note that the sample program uses the preproces...
2008 Mar 29
3
[LLVMdev] Advice on debugging?
I've been using lli to do most of my unit tests for the compiler that I'm writing. However, when I get a test that crashes, its difficult to find which instruction it was that caused the crash. I tried running bugpoint, but it didn't seem to work for me, and upon reading the documentation, it seems to be i...
2009 Oct 31
3
[LLVMdev] Something wrong with my libpthread.so
Hi,all I tried to run the generated whole-program bitcode of BIND,but I got some information: 0 lli 0x0000000000feda16 1 lli 0x0000000000fed88f 2 libpthread.so.0 0x0000003df340eee0 3 libc.so.6 0x0000003df28332f5 gsignal + 53 4 libc.so.6 0x0000003df2834b20 abort + 384 5 libc.so.6 0x0000003df282c2fa __assert_fail + 234 6 lli 0x000000...
2009 Dec 31
3
[LLVMdev] How does JIT/lli work with bc file?
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 main() function in bc file. If this was true, then lli does not have any control to the e...
2009 Oct 19
0
[LLVMdev] Objective-C code in lli
On Oct 18, 2009, at 6:32 PM, Eric Brunstad wrote: > Hi, > > Is it possible to run Objective-C code in lli? lli does not seem to > want to load Foundation.framework. It is definitely possible, but we're not there yet. LLI would have to know about objective-c metadata to register it properly with the runtime. This is important for things like classes etc. This isn't conceptually h...
2008 Apr 01
0
[LLVMdev] Advice on debugging?
Ping? Still looking for advice in figuring out how and why my generated code is causing lli to crash... Talin wrote: > I've been using lli to do most of my unit tests for the compiler that > I'm writing. However, when I get a test that crashes, its difficult to > find which instruction it was that caused the crash. I tried running > bugpoint, but it didn't seem...
2020 Feb 01
0
Interpreter crash due to an "Unknown constant pointer type!"
...g commands: >>> >>> cmake -DLLVM_TARGETS_TO_BUILD=X86 -DLLVM_ENABLE_RTTI=ON >>> -DLLVM_ENABLE_FFI=ON -DCMAKE_BUILD_TYPE=Debug -DLLVM_ENABLE_ASSERTIONS=ON .. >>> cmake --build . -- -j8 && sudo cmake --build . --target install >>> >>> Once lli was installed it was enough to use the .bc >>> >>> /usr/local/bin/lli --debug --force-interpreter pngpixel_crash.bc 0 0 >>> mini.png >>> ... >>> png_ptr->width: 1 >>> max_pixel_depth: 24 >>> row_bytes: 28 >>> ... >>&gt...