[LLVMdev] LLVM interpreter external function (Fulcrum TheFirst)

Qingan Li ww345ww at gmail.com
Fri Nov 21 19:38:53 PST 2014


It seems that, the work of the LLVM interpret (lli) is just to interpret
the IR code.
For external functions, as well as most library functions, the interpret
cannot interpret them, since there is no source IR code for these
functions.
So, you may try:
1) Compile the source code external functions together to obtain their IR
code; or,
2) Skip the external functions via comment the "LLVM ERROR" reporting code
to avoid early termination. But the simulation result is not correct since
the work of external functions is skipped.
-- 
Best regards,

Li Qingan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20141122/3bf0c0ae/attachment.html>


More information about the llvm-dev mailing list