Displaying 3 results from an estimated 3 matches for "myownfunction".
2011 Mar 05
2
[LLVMdev] how to use external function?
Hi there,
It will be appreciated if you help me :
I need to call an external function in LLVM bitcode but don't know how :
;ModuleID = 'm1'
define i32 @main() {
entry:
%tmp0 = call i32 @MyOwnFunction()
ret i32 0
}
declare i32 @MyOwnFunction()
I use below codes to run it
$ llvm-as -f m1 -o m1.bc
$ lli 1.bc
(before it I have compiled MyOwnFunction module)
when I run this program i receive this error :
LLVM ERROR: Program used external function 'MyOwnFunction' which could not
be res...
2011 Mar 05
0
[LLVMdev] how to use external function?
...M, Amir Mofakhar <pangan at gmail.com> wrote:
> Hi there,
>
> It will be appreciated if you help me :
>
> I need to call an external function in LLVM bitcode but don't know how :
>
> ;ModuleID = 'm1'
> define i32 @main() {
> entry:
> %tmp0 = call i32 @MyOwnFunction()
> ret i32 0
> }
> declare i32 @MyOwnFunction()
>
> I use below codes to run it
>
> $ llvm-as -f m1 -o m1.bc
> $ lli 1.bc
>
> (before it I have compiled MyOwnFunction module)
>
> when I run this program i receive this error :
> LLVM ERROR: Program used ext...
2011 Mar 09
1
[LLVMdev] how to use external function?
Eli Friedman <eli.friedman <at> gmail.com> writes:
>
> Try something like the following?
>
> llvm-link MyOwnFunction.bc m1.bc -o - | lli
>
> -Eli
>
same error again!