search for: object_structure

Displaying 9 results from an estimated 9 matches for "object_structure".

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 tha...
2010 Aug 20
3
[LLVMdev] using external functions from llvm
...s you please (with some reasonable restrictions on the character set, etc) > I'm now running into trouble when trying to access arguments 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] You are calling a function that takes a single argument of type `double'. But on a previous post you showed the function with this signature: llvm::GenericValue lle_X_create_number_object(llvm::Funct...
2010 Aug 20
0
[LLVMdev] using external functions from llvm
...l external functions as I was originally trying, or, why did the blog post think it was possible?) I'm now running into trouble when trying to access arguments 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 f...
2010 Aug 15
0
[LLVMdev] "UNREACHABLE executed!" error?
Alec Benzer wrote: > 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] } > } Unions are almost entirely unimplemented. Sorry. > the only output I get after the runFunction() call is: > > UNREACHABLE executed! > Stack dump: > 0. Running pa...
2010 Aug 15
1
[LLVMdev] "UNREACHABLE executed!" error?
...ther 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: >> ret %object_structure { i8 0, %object_union [double 5.000000e+00, >> double false] } >> } >> > > Unions are almost entirely unimplemented. Sorry. > > the only output I get after the runFunction() call is: >> >> UNREACHABLE...
2010 Aug 20
0
[LLVMdev] using external functions from llvm
...> restrictions on the character set, etc) > > > I'm now running into trouble when trying to access arguments 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] > > You are calling a function that takes a single argument of type > `double'. But on a previous post you showed the function with this > signature: > > llvm::GenericValue >...
2010 Aug 19
3
[LLVMdev] using external functions from llvm
...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 llvm_object_structure; > result->typeIdx = TypeSystem::number; > result->data = reinterpret_cast<unsigned char*>(new > double(args[0].DoubleVal)); > llvm::GenericValue gv; > gv.PointerVal = reinterpret_cast<void*>(result); > return gv; &gt...
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 15
0
[LLVMdev] "UNREACHABLE executed!" error?
On Aug 15, 2010, at 1:06 PM, Alec Benzer wrote: > 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. Which