Displaying 5 results from an estimated 5 matches for "codegencontext".
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;
}
Il 08/01/2013 16:38, Manue...
2013 Jan 08
0
[LLVMdev] ExecutionEngine always comes back NULL
On Jan 8, 2013, at 8:09 , Manuele Conti <manuele.conti at sirius-es.it> wrote:
> 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();
> <
> div class="line" id="LC37" style="margin: 0px; padding: 0px 0px 0px 10px; border: 0px;">
> vector<GenericValue>...
2013 Jan 09
1
[LLVMdev] ExecutionEngine always comes back NULL
...Cheers,
Manuele
Il 08/01/2013 20:27, Rick Mann ha scritto:
> On Jan 8, 2013, at 8:09 , Manuele Conti <manuele.conti at sirius-es.it> wrote:
>
>> 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();
>> <
>> div class="line" id="LC37" style="margin: 0px; padding: 0px 0px 0px 10px; border: 0px;">
>> vector&...
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
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.