Displaying 6 results from an estimated 6 matches for "gearleaf".
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 llvm_object_structure;
result->typeIdx = Typ...
2010 Aug 20
0
[LLVMdev] using external functions from llvm
> I'm afraid that you might be utterly confused about how to use LLVM.
Er, I don't think so? I think I was mostly just confused about interfacing
with external functions, since whoever wrote that blog post (
http://www.gearleaf.com/blog/post/44) didn't seem to know what he was
talking about (or he was doing stuff that once worked but now doesn't? I
don't know). If you glance at that post I think you'll understand why I was
doing what I was doing.
anyway, I think I get it now, what I was trying to do seems...
2010 Aug 19
3
[LLVMdev] using external functions from llvm
...ied to lookup and use "create_number_object". Can
> you provide the code for the lookup?
>
> On 20/08/2010, at 8:07 AM, Alec Benzer wrote:
>
> 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 llvm_object...
2010 Aug 19
0
[LLVMdev] using external functions from llvm
...message implies you have tried to lookup and use "create_number_object". Can you provide the code for the lookup?
On 20/08/2010, at 8:07 AM, Alec Benzer wrote:
> 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 llvm_object_structu...
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 was possible?)
AFAIK you can name the function as you please (with some
2010 Aug 20
0
[LLVMdev] using external functions from llvm
...create_number_object". Can
>> you provide the code for the lookup?
>>
>> On 20/08/2010, at 8:07 AM, Alec Benzer wrote:
>>
>> 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_str...