search for: __imp__foo

Displaying 2 results from an estimated 2 matches for "__imp__foo".

Did you mean: __imp_foo
2010 Dec 25
2
[LLVMdev] LLVM dllimport
?Hi all, Can someone tell me how to import functions from shared libraries and use them in LLVM assembly Regards, Dylan Borg +356 99214902 borgdylan at hotmail.com borgdylang at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20101225/77e1182c/attachment.html>
2010 Dec 27
0
[LLVMdev] LLVM dllimport
...2 @foo(i32) @quux = dllimport global i32 define i32 @bar() nounwind { %a = load i32* @quux %r = call i32 @foo(i32 %a) ret i32 %r } .globl _bar _bar: subl $4, %esp movl __imp__quux, %eax movl (%eax), %eax movl %eax, (%esp) calll *__imp__foo addl $4, %esp ret If you have clang or llvm-gcc, you can confirm outputs with clang foo.c -S -emit-llvm -o foo.ll clang foo.c -S -o foo.s ...Takumi