Displaying 14 results from an estimated 14 matches for "alecbenzer".
2010 Aug 12
0
[LLVMdev] Instruction does not dominate all uses?
You need to insert v into the basic block before the return. Note
that %calltmp is absent from the dump of the function. The verifier
is complaining because it found this pointer to %calltmp, but it
didn't find the definition anywhere above its use.
Reid
On Thu, Aug 12, 2010 at 1:04 PM, alecbenzer <alecbenzer at gmail.com> wrote:
>
> This has been driving me crazy. In order to JIT stuff in a simple REPL I'm
> trying to wrap them in anonymous functions and then evaluate them (as per
> recommendation of the Kaleidoscope guide).
>
> With simple expressions it works f...
2010 Aug 12
2
[LLVMdev] Instruction does not dominate all uses?
This has been driving me crazy. In order to JIT stuff in a simple REPL I'm
trying to wrap them in anonymous functions and then evaluate them (as per
recommendation of the Kaleidoscope guide).
With simple expressions it works fine. Like if I try and add 4 and 5, I get
this from the bare llvm::Value dump:
double 9.000000e+00
and this after it's wrapped in a function:
define double @0() {
2010 Aug 20
3
[LLVMdev] using external functions from llvm
Alec Benzer <alecbenzer at gmail.com> writes:
> Ok, so calling lle_X_FUNCTIONNAME instead of FUNCTIONNAME works (is there
> any reason the post used the lle_X_ prefix other than convention? was it
> once possible to call external functions as I was originally trying, or, why
> did the blog post think it wa...
2010 Aug 20
0
[LLVMdev] using external functions from llvm
...at I was trying to do seems to be working
how I expect it to.
On Thu, Aug 19, 2010 at 8:55 PM, Óscar Fuentes <ofv at wanadoo.es> wrote:
> The following message is a courtesy copy of an article
> that has been posted to gmane.comp.compilers.llvm.devel as well.
>
> Alec Benzer <alecbenzer at gmail.com> writes:
>
> > Ok, so calling lle_X_FUNCTIONNAME instead of FUNCTIONNAME works (is there
> > any reason the post used the lle_X_ prefix other than convention? was it
> > once possible to call external functions as I was originally trying, or,
> why
> >...
2010 Aug 12
1
[LLVMdev] error when trying to create a JIT execution engine "Interpreter has not been linked in"
I've been following this guide: http://llvm.org/docs/tutorial/LangImpl4.html
and am getting an error when trying to create an execution engine. When
running this code:
executionEngine = llvm::EngineBuilder(module).setErrorStr(&errStr).create();
errStr contains: "Interpreter has not been linked in." I'm using this
command to build:
g++ -g errors.o lexer.o parser.o lang.o
2010 Aug 16
1
[LLVMdev] "UNREACHABLE executed!" error?
...;
>
> ---------- Forwarded message ----------
> From: Nick Lewycky <nicholas at mxc.ca>
> Date: Mon, Aug 16, 2010 at 01:34
> Subject: Re: [LLVMdev] "UNREACHABLE executed!" error?
> To: Anton Korobeynikov <anton at korobeynikov.info>
> Cc: Alec Benzer <alecbenzer at gmail.com>, llvmdev at cs.uiuc.edu
>
>
> Anton Korobeynikov wrote:
>>
>> Hello
>>
>>> I just noticed that my union seems to look like an array....is that actually
>>> a union or do I have a problem somewhere?
>>
>> Yes. Unions are...
2010 Aug 20
0
[LLVMdev] using external functions from llvm
...guments however.
printing args.size() from the function yields 12105250188025543488. The
generated call to it looks like:
%object_tmp = call %object_structure* @lle_X_create_number_object(double
5.000000e+00) ; <%object_structure*> [#uses=1]
On Thu, Aug 19, 2010 at 6:56 PM, Alec Benzer <alecbenzer at gmail.com> wrote:
> The blog post I linked to implied that adding a symbol in the form
> lle_X_FUNCTIONNAME would allow you to call a function called FUNCTIONNAME.
> Is this not the case?
>
>
> On Thu, Aug 19, 2010 at 6:46 PM, <o.j.sivart at gmail.com> wrote:
>
>...
2010 Aug 19
3
[LLVMdev] using external functions from llvm
The blog post I linked to implied that adding a symbol in the form
lle_X_FUNCTIONNAME would allow you to call a function called FUNCTIONNAME.
Is this not the case?
On Thu, Aug 19, 2010 at 6:46 PM, <o.j.sivart at gmail.com> wrote:
> You are adding the symbol as "lle_X_create_number_object" yet your error
> message implies you have tried to lookup and use
2010 Aug 15
7
[LLVMdev] "UNREACHABLE executed!" error?
The dump from the function I'm running:
define %object_structure @0() {
entry:
ret %object_structure { i8 0, %object_union [double 5.000000e+00, double
false] }
}
the only output I get after the runFunction() call is:
UNREACHABLE executed!
Stack dump:
0. Running pass 'X86 DAG->DAG Instruction Selection' on function '@0'
I just noticed that my union seems to look like
2010 Aug 16
0
[LLVMdev] "UNREACHABLE executed!" error?
...---- Forwarded message ----------
>> From: Nick Lewycky <nicholas at mxc.ca>
>> Date: Mon, Aug 16, 2010 at 01:34
>> Subject: Re: [LLVMdev] "UNREACHABLE executed!" error?
>> To: Anton Korobeynikov <anton at korobeynikov.info>
>> Cc: Alec Benzer <alecbenzer at gmail.com>, llvmdev at cs.uiuc.edu
>>
>>
>> Anton Korobeynikov wrote:
>>>
>>> Hello
>>>
>>>> I just noticed that my union seems to look like an array....is that actually
>>>> a union or do I have a problem somewhere?
>>...
2010 Aug 16
4
[LLVMdev] dynamic typing system
This isn't a strictly llvm-related problem, but I thought I'd ask anyway to
see if anyone can help.
I'm trying to write a dynamically typed language on top of llvm. My initial
idea was to have a general object type for all objects in my language. I
came up with:
{ i8, i8* }
the first element of the structure would hold the type of the object, and
the second is a pointer to the
2010 Aug 15
2
[LLVMdev] "UNREACHABLE executed!" error?
What does this error mean? I'm getting it from an
ExecutionEngine::runFunction() call. The function I'm passing it was run
through verifyFunction() right before the runFunction() call. I can't seem
to find anything that tells me what causes this, only specific
(but seemingly unrelated to my problem) cases of it happening.
-------------- next part --------------
An HTML attachment was
2010 Aug 19
2
[LLVMdev] using external functions from llvm
Is there documentation somewhere on how to call external functions from
llvm? The only guide I found was this: http://www.gearleaf.com/blog/post/44,
and it doesn't seem to be working for me.
I have a function:
llvm::GenericValue lle_X_create_number_object(llvm::FunctionType* ft, const
std::vector<llvm::GenericValue>& args)
{
llvm_object_structure* result = new
2010 Aug 15
1
[LLVMdev] "UNREACHABLE executed!" error?
Tthe IRBuilder APIs for unions or unions in general? Either way, I was using
unions as a temporary solution for a problem I was too lazy to fully figure
out anyway.
On Sun, Aug 15, 2010 at 4:54 PM, Nick Lewycky <nicholas at mxc.ca> wrote:
> Alec Benzer wrote:
>
>> The dump from the function I'm running:
>>
>> define %object_structure @0() {
>> entry: