Displaying 8 results from an estimated 8 matches for "llvmaddglobalmap".
2015 Feb 18
3
[LLVMdev] Calling into non-linked function via a pointer
I'm having a problem of being unable to call into an arbitrary function
that is loaded into memory whose pointer address is known to me but was not
linked into LLVM.
I have added the function and called LLVMAddGlobalMapping with the pointer,
and the program segfaults.
I was wondering if it is a supported scenario that LLVM can generate a call
into an arbitrary function that is not linked.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/a...
2015 Aug 25
2
Problem with local context getType() == global context getType()
...) calls to
create the types. The assert fails since the optimizer replaces some
numbers with a global type. The values are equal but the types are not. I
did patch some calls to compare on getTypeID() but got another assert a
couple of days later in another source file.
I needed 3.7 because of the LLVMAddGlobalMapping C api fixes.
Could someone help me out ? Or point me in the right direction? I'm using
the C api.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150825/02ab74c3/attachment.html>
2015 Feb 18
3
[LLVMdev] Calling into non-linked function via a pointer
...halivingston at gmail.com
> > wrote:
>
>> I'm having a problem of being unable to call into an arbitrary function
>> that is loaded into memory whose pointer address is known to me but was not
>> linked into LLVM.
>>
>> I have added the function and called LLVMAddGlobalMapping with the
>> pointer, and the program segfaults.
>>
>> I was wondering if it is a supported scenario that LLVM can generate a
>> call into an arbitrary function that is not linked.
>>
>>
>>
>> _______________________________________________
>>...
2014 Apr 04
2
[LLVMdev] Weird problems on calling an external function from MCJIT on Windows(mingw)
...NamedFunction(m,"a_outside_func")
>
> On Fri, Apr 4, 2014 at 12:25 PM, waxiadao at gmail.com <waxiadao at gmail.com>
> wrote:
> > Hello
> > I quite thank you for your advice,but I have to tell that it made no
> > difference too calling
> >
> "LLVMAddGlobalMapping(ee,LLVMGetNamedFunction(m,"_a_outside_func"),(void*)(&a_outside_func));".
> >
> >
> > 2014-04-04 16:10 GMT+08:00 Anton Korobeynikov <anton at korobeynikov.info>:
> >
> >> Hello
> >>
> >> While there is a symbol in the o...
2014 Apr 04
2
[LLVMdev] Weird problems on calling an external function from MCJIT on Windows(mingw)
Hello
I quite thank you for your advice,but I have to tell that it made no
difference too calling
"LLVMAddGlobalMapping(ee,LLVMGetNamedFunction(m,"_a_outside_func"),(void*)(&a_outside_func));".
2014-04-04 16:10 GMT+08:00 Anton Korobeynikov <anton at korobeynikov.info>:
> Hello
>
> While there is a symbol in the object file, there is nothing like this
> in the final executa...
2010 Aug 12
0
[LLVMdev] LLVM-C: Calling functions contained in other libraries
On Aug 12, 2010, at 10:43 AM, F van der Meeren wrote:
> Where am I going wrong here?
>
Did you link against the library that contains the function?
-eric
2010 Aug 12
3
[LLVMdev] LLVM-C: Calling functions contained in other libraries
Hello,
I have a question concerning llvm-c.
I have set up a function that needs to invoke an external method, in a other library. It has the following signature: void* NSFullUserName(void);
The void* can be replaced with a i8*, that far I was able to get, but when my call is invoked, the engine gives me the following message:
LLVM ERROR: Tried to execute an unknown external function: i8* ()*
2014 Apr 04
2
[LLVMdev] Weird problems on calling an external function from MCJIT on Windows(mingw)
Hi,
I have a IR file generated by Clang:
; ModuleID = 'test_load_lib.c'
target datalayout =
"e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-f80:128:128-v64:64:64-v128:128:128-a0:0:64-f80:32:32-n8:16:32-S32"
target triple = "i686-pc-mingw32"
declare i32 @a_outside_func(i32)
define i32 @test_func() {
entry:
%call = call i32