[LLVMdev] the definitions of internal functions and external functions

huwei8717 huwei8717 at yahoo.com.cn
Mon Nov 29 20:42:50 PST 2010


Hi, 

I have a llvm pass in hand written by other people. There are following statements that I couldn't understand:

-------------------------------program----------------------------------------------------
...
  // Calls to internal functions.
  if (!F->isDeclaration()) {
    DOUT << " internal call" << opcode << ": " << name << "\n";
    return ...;
  }
  // Calls to external functions
...
-------------------------------------------------------------------------------------------

My question is:

What's the definitions of internal functions and external functions? In c, internal functions is functions that it is only called in the file where it defines using keyword "static", external functions is functions that can be called by other files, defining using keyword "external". Are these definitions identical with the definitions in llvm? 

Thank you very much.

Best Regards




2010-11-30 



WeiHu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20101130/84ca4d08/attachment.html>


More information about the llvm-dev mailing list