Displaying 20 results from an estimated 20000 matches similar to: "[LLVMdev] Error while creating ExecutionEngine"
2008 Oct 26
1
[LLVMdev] Error while creating ExecutionEngine
Thanks Bill! But it does not work. I get the error given below when I try to load LLVMExecutionEngine.o in the opt command.
Error opening '../../../build/Release/lib/LLVMExecutionEngine.o': ../../../build/Release/lib/LLVMExecutionEngine.o: only ET_DYN and ET_EXEC can be loaded
-load request ignored.
Any ideas?? Please help me out here.
Thanks,
Bhavani
--- On Sun, 10/26/08, Bill
2008 Oct 26
2
[LLVMdev] Error while creating ExecutionEngine
Hi,
I am completely new to llvm. I am trying to build an optimization pass. I need to interpret some instructions in the pass. To begin with, I used the exact same code as HowtoUseJIT example. It compiles fine. While executing using opt, I get the following error at the point where th executionengine is created:
opt: symbol lookup error: ../../../Release/lib/Try.so: undefined symbol:
2008 Oct 26
0
[LLVMdev] Error while creating ExecutionEngine
On Oct 25, 2008, at 9:51 PM, bhavani krishnan wrote:
> Hi,
>
> I am completely new to llvm. I am trying to build an optimization
> pass. I need to interpret some instructions in the pass. To begin
> with, I used the exact same code as HowtoUseJIT example. It compiles
> fine. While executing using opt, I get the following error at the
> point where th executionengine
2008 Oct 27
0
[LLVMdev] Is it possible to use EE within optimization pass?
bhavani krishnan wrote:
> I realize my questions may not have been so clear. To give more details. I am writing a fuction pass. I want to interpret some of the instructions within the function pass. In order to do so, I need to create an EE object within the function pass. Now, If I compile and execute using opt. I get an error(Error loading symbol) at the line where I am creating EE.
>
2008 Oct 27
2
[LLVMdev] Is it possible to use EE within optimization pass?
I realize my questions may not have been so clear. To give more details. I am writing a fuction pass. I want to interpret some of the instructions within the function pass. In order to do so, I need to create an EE object within the function pass. Now, If I compile and execute using opt. I get an error(Error loading symbol) at the line where I am creating EE.
opt: symbol lookup error:
2010 Sep 28
0
[LLVMdev] ExecutionEngine::create returns 0
On Sep 28, 2010, at 1:53 AM, Subramanyam P.U.R. wrote:
> I am using Fedora 10 and I installed LLVM2.6 from binaries. I use gcc front-end(not Clang). Do I need to install something else, to be able to add JIT support?
>
I don't know, I don't package it.
> I am able to compile HowToUseJIT example. The compilation command is
> g++ -g -rdynamic toy.cpp `llvm-config --cppflags
2008 Oct 27
0
[LLVMdev] Is it possible to use EE within optimization pass?
bhavani krishnan wrote:
> Thanks John! My pass is registered only in 1 cpp file. It registers and executes fine without the EE.
>
> I only get the Pass registered multiple times error when I try to link to the EE by using LINK_COMPONENTS=engine in the Makefile. Without that line in the Makefile, my pass gets registered fine but it is not able to create EE(Error reading Symbol). So, how do
2008 Oct 27
3
[LLVMdev] Is it possible to use EE within optimization pass?
Thanks John! My pass is registered only in 1 cpp file. It registers and executes fine without the EE.
I only get the Pass registered multiple times error when I try to link to the EE by using LINK_COMPONENTS=engine in the Makefile. Without that line in the Makefile, my pass gets registered fine but it is not able to create EE(Error reading Symbol). So, how do I link LLVMExecutionEngine.o without
2013 Jan 08
0
[LLVMdev] ExecutionEngine always comes back NULL
Hi Rick,
I had the same problem last week I understand that I didn't initialized
target.
Cheers,
Manuele
Il 08/01/2013 16:08, Rick Mann ha scritto:
> I wrote a little OS X app to assemble some LLVM (human-readable) code and run it. Unfortunately, my ExecutionEngine won't create. Just comes back NULL.
>
> This is the code that builds it:
>
> http://pastebin.com/8cexgPj7
2013 Jan 08
0
[LLVMdev] ExecutionEngine always comes back NULL
Hi Rick,
You need to include 'llvm/ExecutionEngine/JIT.h' (or 'llvm/ExecutionEngine/JIT.h' if you want that engine) from your main file. Including that file forces the JIT static constructor to be linked into your executable. Without it, the JIT static constructor gets optimized out and you get the result you're seeing.
-Andy
-----Original Message-----
From:
2013 Jan 08
4
[LLVMdev] ExecutionEngine always comes back NULL
I wrote a little OS X app to assemble some LLVM (human-readable) code and run it. Unfortunately, my ExecutionEngine won't create. Just comes back NULL.
This is the code that builds it:
http://pastebin.com/8cexgPj7
This is the code it seems to successfully assemble, but it can't build the ExecutionEngine. You can see I tried several different ways of building it.
2013 Jan 08
2
[LLVMdev] ExecutionEngine always comes back NULL
Sorry I forgot to add code that I use to run code:
/* Executes the AST by running the main function */
GenericValue CodeGenContext::runCode() {
std::cout << "Running code...\n";
ExecutionEngine *ee = EngineBuilder(module).create();
vector<GenericValue> noargs;
GenericValue v = ee->runFunction(mainFunction, noargs);
std::cout << "Code was run.\n";
return v;
2008 Oct 27
0
[LLVMdev] Is it possible to use EE within optimization pass?
bhavani krishnan wrote:
> Hi all,
>
> I am repeating my question from yesterday coz I need to find a solution to this ASAP.
>
> How do I link the executionengine to an optimization pass. If I use LINK_COMPONENTS=engine in the Makefile, I get the Pass registered multiple times error. And if i dont use anything, it is not able to load the EE. It gives error loading symbol error. So,
2010 Sep 28
2
[LLVMdev] ExecutionEngine::create returns 0
Hendrik Boom-2 wrote:
>
> On Tue, 10 Jun 2008 07:07:35 +0530, Mahadevan R wrote:
>
>>> Now to compare it in detail with the much smaller program I've got and
>>> maybe I'll figure out what's wrong with my call to
>>> ExecutionEngine::create.
>>
>> That call is perfectly valid, actually. It works for me when linked
>> with:
2008 Oct 27
2
[LLVMdev] Is it possible to use EE within optimization pass?
Hi all,
I am repeating my question from yesterday coz I need to find a solution to this ASAP.
How do I link the executionengine to an optimization pass. If I use LINK_COMPONENTS=engine in the Makefile, I get the Pass registered multiple times error. And if i dont use anything, it is not able to load the EE. It gives error loading symbol error. So,
1. Is it possible to use the EE within an
2008 Nov 17
1
[LLVMdev] How do I get the result of an instruction?
ok. I think I get it now. I need to create the instructions as you have given. For eg: I could pass Instruction*(for storing the result of this instruction) while creating the store instruction. This is what you meant rite??
Thanks,
Bhavani
--- On Mon, 11/17/08, bhavani krishnan <bhavi63 at yahoo.com> wrote:
> From: bhavani krishnan <bhavi63 at yahoo.com>
> Subject: Re:
2008 Nov 17
1
[LLVMdev] Assertion `InReg && "Value not in map!"' failed
Thanks Nick! ok. I ran through the verifier and this is the issue:
verifying... Instruction does not dominate all uses!
%tmp3 = add i32 %b, %a ; <i32> [#uses=2]
store i32 %tmp3, i32* %0, align 4
Broken module found, compilation aborted!
add is existing instruction in function. store is the instruction I have added to the function. How do I fix this now :(?
Thanks,
Bhavani
--- On Mon,
2008 Nov 17
0
[LLVMdev] Assertion `InReg && "Value not in map!"' failed
ok 1 last question for the day...
I created a function in C.
void writeToFile(char *str)
{
FILE *f;
if((f=fopen("example","a"))==NULL){
printf("could not open file");
}
else{
fprintf(f,str);
fclose(f);}
}
used this to create .bc then using llc -march=cpp I got the cpp code to create this function.
While instrumenting my code, I place call to this function.
2004 Aug 10
1
[LLVMdev] API on JIT, code snippets
Valery,
Your JIT sample program has been added to projects/HowToUseJIT.
I have defaulted the license to the standard UIUC license. Let me know if
that's not okay and I'll fix it.
If you continue to work on this (providing a command line option to use either
interpreter or JIT would be nice), please provide patches against these files
and I'll commit them for you.
Here's the
2008 Nov 17
1
[LLVMdev] Assertion `InReg && "Value not in map!"' failed
Ah! I get it now. Thanks a lot !
I changed it to BitCastInst(AI,VoidPtrTy,"",j);
And now I am getting the following error :(. I have been stuck with this error before also. I know I am missing out something silly. What is the cause of this error and Please let me know how to fix it.
/home/bhavani/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:1130: llvm::SDOperand