Displaying 3 results from an estimated 3 matches for "tmpvar1".
Did you mean:
tmpvar
2009 Jun 20
0
[LLVMdev] How to call C++ code from LLVM
...39;xyz'
internal constant [5 x i8] c"ello\00" ; <[5 x i8]*>:0 [#uses=1]
declare void @printInt(i32)
define i32 @main() {
entry:
call void @printString(i8* getelementptr ([5 x i8]* @0, i32 0, i32 0))
%tmpvar = alloca i32 ; <i32*> [#uses=2]
store i32 0, i32* %tmpvar
%tmpvar1 = load i32* %tmpvar ; <i32> [#uses=1]
ret i32 %tmpvar1
}
/////////////////////////////
Second possibility is try lli :working:
but when I try to:
LD_LIBRARY_PATH=/home/mylinux/Desktop/test lli prog.bc
i have:
ERROR: Program used external function 'printString' which could not be
r...
2009 Jun 19
0
[LLVMdev] How to call C++ code from LLVM
On Thu, Jun 18, 2009 at 3:57 PM, Jules Jacobs<julesjacobs at gmail.com> wrote:
> How can I call C++ libraries (LLVM & Qt for example) from a language that's
> implemented on top of LLVM?
You can call them the same way a C++ file compiled with llvm-g++ would
call them. Essentially, it's complicated enough that you probably
don't want to do it for any interface of
2009 Jun 18
3
[LLVMdev] How to call C++ code from LLVM
Hi,
How can I call C++ libraries (LLVM & Qt for example) from a language that's
implemented on top of LLVM?
Thanks,
Jules
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20090619/4621508b/attachment.html>