<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Say, I have the following program:</p>
    <div><font face="Courier New, Courier, monospace">   #include
        <iostream><br>
           int main(){<br>
             std::cout << "hello\n";<br>
             return 0;</font></div>
    <div><font face="Courier New, Courier, monospace">   }</font><br>
    </div>
    <div><br>
    </div>
    <div>After generating llvm bitcode using the following command: </div>
    <div>      $ <font face="Courier New, Courier, monospace">clang++
        -c -emit-llvm -O -Xclang -disable-llvm-passes a.cpp</font><br>
    </div>
    <div>the bitcode has the following function with define.</div>
    <div>      <font face="Courier New, Courier, monospace">__cxx_global_var_init<br>
           main<br>
           _ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc<br>
          
        _ZNSt9basic_iosIcSt11char_traitsIcEE8setstateESt12_Ios_Iostate<br>
           _ZNSt11char_traitsIcE6lengthEPKc<br>
           _ZStorSt12_Ios_IostateS_<br>
           _ZNKSt9basic_iosIcSt11char_traitsIcEE7rdstateEv<br>
           _GLOBAL__sub_I_a.cpp<br>
      </font></div>
    <div><br>
    </div>
    <div>In a pass, I want to know what are the functions defined by the
      user e.g 'main' and what are not e.g. other than 'main'.</div>
    <div><br>
    </div>
    <div>Regards,</div>
    <div>   Sunil</div>
  </body>
</html>